Op 21-11-12 08:05, Felix Miata schreef:
On 2012-11-21 07:42 (GMT+0100) Oddball composed:
EeePc-Rob-SFN9:~ # cat /dmesg > /home/oddball/Documenten/dmesg_output.txt cat: /dmesg: Bestand of map bestaat niet (=file or directory does not exist) EeePc-Rob-SFN9:~ #
EeePc-Rob-SFN9:~ # cat /bin/dmesg > /home/oddball/Documenten/dmesg_output.txt EeePc-Rob-SFN9:~ #
Btw, the output is, like you say, completely unreadable, while #dmesg -x shows a normal, humanly readable output in the terminal window. But i can copy and paste this into a textfile to study.
EeePc-Rob-SFN9:~ # cat dmesg > /home/oddball/Documenten/dmesg_output.txt cat: dmesg: Bestand of map bestaat niet (=file or directory does not exist) EeePc-Rob-SFN9:~ #
Catting a binary file into a text file is a nonsense process. If you want to look inside a binary file, just use a file viewer (e.g. F3 running MC). That way you'll be able to see the whole thing instead of whatever content proceeds the EOF marker, not that you'll make sense of more than a few bunches of text strings.
Dmesg is a command. You don't cat it. Catting is for combining files, and viewing human readable files.
OTOH, 'dmesg > /home/oddball/Documenten/dmesg_output.txt' is all human readable, just like what's already in /var/log/messages. EeePc-Rob-SFN9:~ # dmesg > /home/oddball/Documenten/dmesg_output.txt EeePc-Rob-SFN9:~ #
Indeed it is, but the two files differ (#dmesg -x , dmesg > ~/Documenten/dmesg_output.txt) in this way, that: see example: dmesg -x kern :warn : [ 0.075449] ACPI: Dynamic OEM Table Load: kern :warn : [ 0.075456] ACPI: SSDT (null) 000CC (v01 PmRef Cpu1Ist 00003000 INTL 20060113) kern :warn : [ 0.075781] ACPI: SSDT 7f7ae3c0 00085 (v01 PmRef Cpu1Cst 00003000 INTL 20060113) kern :warn : [ 0.076618] ACPI: Dynamic OEM Table Load: kern :warn : [ 0.076624] ACPI: SSDT (null) 00085 (v01 PmRef Cpu1Cst 00003000 INTL 20060113) kern :info : [ 0.077558] ACPI: Interpreter enabled kern :info : [ 0.077577] ACPI: (supports S0 S3 S4 S5) kern :info : [ 0.077631] ACPI: Using IOAPIC for interrupt routing kern :info : [ 0.077715] PCI: MMCONFIG for domain 0000 [bus 00-3f] at [mem 0xe0000000-0xe3ffffff] (base 0xe0000000) kern :info : [ 0.079515] PCI: MMCONFIG at [mem 0xe0000000-0xe3ffffff] reserved in ACPI motherboard resources kern :info : [ 0.079520] PCI: Using MMCONFIG for extended config space ~/Documenten/dmesg_output.txt [ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 3.7.0-rc6-1-desktop (geeko@buildhost) (gcc version 4.7.2 20120920 [gcc-4_7-branch revision 191568] (SUSE Linux) ) #1 SMP PREEMPT Mon Nov 19 04:29:23 UTC 2012 (daac70a) [ 0.000000] Disabled fast string operations [ 0.000000] e820: BIOS-provided physical RAM map: [ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable [ 0.000000] BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved [ 0.000000] BIOS-e820: [mem 0x00000000000e0000-0x00000000000fffff] reserved [ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x000000007f79ffff] usable [ 0.000000] BIOS-e820: [mem 0x000000007f7a0000-0x000000007f7adfff] ACPI data [ 0.000000] BIOS-e820: [mem 0x000000007f7ae000-0x000000007f7effff] ACPI NVS [ 0.000000] BIOS-e820: [mem 0x000000007f7f0000-0x000000007f7fffff] reserved [ 0.000000] BIOS-e820: [mem 0x00000000fee00000-0x00000000fee00fff] reserved [ 0.000000] BIOS-e820: [mem 0x00000000fff80000-0x00000000ffffffff] reserved [ 0.000000] NX (Execute Disable) protection: active [ 0.000000] DMI present. [ 0.000000] DMI: ASUSTeK Computer INC. 901/901, BIOS 2103 06/11/2009 [ 0.000000] e820: update [mem 0x00000000-0x0000ffff] usable ==> reserved [ 0.000000] e820: remove [mem 0x000a0000-0x000fffff] usable [ 0.000000] e820: last_pfn = 0x7f7a0 max_arch_pfn = 0x1000000 I tried to find the similarities in the files but did not yet succeed.. -- Have a nice day, Oddball. OS: Linux 3.7.0-rc6-1-desktop i686 Huidige gebruiker: oddball@EeePc-Rob-SFN9 Systeem: openSUSE 12.2 (i586) KDE: 4.9.3 "release 520" -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org