1 頁 (共 1 頁)

zcat 檢視被壓縮為「gz」格式的記錄檔

發表於 : 2014-08-20, 06:42
tony

代碼: 選擇全部

zcat /var/log/dmesg.1.gz | head -n 20
jerry@jerry-P5Q-office:~$ zcat /var/log/dmesg.1.gz |head -n 20
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 3.2.0-36-generic (buildd@allspice) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #57-Ubuntu SMP Tue Jan 8 21:44:52 UTC 2013 (Ubuntu 3.2.0-36.57-generic 3.2.35)
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-3.2.0-36-generic root=UUID=9e79e24b-e341-452c-baeb-d5ef9c376d22 ro quiet splash vt.handoff=7
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Centaur CentaurHauls
[ 0.000000] BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: 0000000000000000 - 000000000009cc00 (usable)
[ 0.000000] BIOS-e820: 000000000009cc00 - 00000000000a0000 (reserved)
[ 0.000000] BIOS-e820: 00000000000e4000 - 0000000000100000 (reserved)
[ 0.000000] BIOS-e820: 0000000000100000 - 00000000cff70000 (usable)
[ 0.000000] BIOS-e820: 00000000cff70000 - 00000000cff7e000 (ACPI data)
[ 0.000000] BIOS-e820: 00000000cff7e000 - 00000000cffd0000 (ACPI NVS)
[ 0.000000] BIOS-e820: 00000000cffd0000 - 00000000d0000000 (reserved)
[ 0.000000] BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
[ 0.000000] BIOS-e820: 00000000fff00000 - 0000000100000000 (reserved)
[ 0.000000] BIOS-e820: 0000000100000000 - 00000001b0000000 (usable)
[ 0.000000] NX (Execute Disable) protection: active