albfneto
(usa openSUSE)
Enviado em 04/09/2014 - 12:44h
é isso, é como o trihup falou,
Ex
$ comando | more
todas as linhas vão aparecer, pouco a pouco, vc vai lendo e dando enter
se quiser um pouco menos de informação,pode usar assim:
$ comando | less
Exemplo, este comando mostra várias infos sôbre meu hardware, só mostra as primeiras 16 linhas:
$ dmesg ! less
$ dmesg | grep less
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 3.15.0-sabayon (root@andromeda.sabayon.org) (gcc version 4.7.3 (Gentoo Hardened 4.7.3-r1 p1.4, pie-0.5.5) ) #1 SMP Mon Aug 18 02:55:48 UTC 2014
[ 0.000000] Command line: root=/dev/sdb5 real_root=/dev/sdb5 ro ramdisk=8192 real_init=/sbin/init.d/sysvinit/final/init splash=silent,theme:sabayon vga=791 console=tty1 quiet zswap.enabled=1 dokeymap keymap=br-a resume=/dev/sdb6 real_resume=/dev/sdb6
[ 0.000000] e820: BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009ebff] usable
[ 0.000000] BIOS-e820: [mem 0x000000000009ec00-0x000000000009ffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000000e4000-0x00000000000fffff] reserved
[ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x00000000dff8ffff] usable
[ 0.000000] BIOS-e820: [mem 0x00000000dff90000-0x00000000dffa7fff] ACPI data
[ 0.000000] BIOS-e820: [mem 0x00000000dffa8000-0x00000000dffcffff] ACPI NVS
[ 0.000000] BIOS-e820: [mem 0x00000000dffd0000-0x00000000dfffffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000fff00000-0x00000000ffffffff] reserved
[ 0.000000] BIOS-e820: [mem 0x0000000100000000-0x000000021fffffff] usable
[ 0.000000] NX (Execute Disable) protection: active
lines 1-16
Para ver as outras linhas,eu vou dando enter. Para "sair do comando, aperte "q", quit.
Tem outro jeito, vamos supor que vc só queira ver as infos de memória de RAM (ou ram)
aí, vc pode fazer assim:
$ dmesg | grep -i ram
albfneto@sabayon ~ $ dmesg | grep -i ram
[ 0.000000] Command line: root=/dev/sdb5 real_root=/dev/sdb5 ro ramdisk=8192 real_init=/sbin/init.d/sysvinit/final/init splash=silent,theme:sabayon vga=791 console=tty1 quiet zswap.enabled=1 dokeymap keymap=br-a resume=/dev/sdb6 real_resume=/dev/sdb6
[ 0.000000] e820: BIOS-provided physical RAM map:
[ 0.000000] Base memory trampoline at [ffff880000098000] 98000 size 24576
[ 0.000000] RAMDISK: [mem 0x3715a000-0x37feffff]
[ 0.000000] Kernel command line: root=/dev/sdb5 real_root=/dev/sdb5 ro ramdisk=8192 real_init=/sbin/init.d/sysvinit/final/init splash=silent,theme:sabayon vga=791 console=tty1 quiet zswap.enabled=1 dokeymap keymap=br-a resume=/dev/sdb6 real_resume=/dev/sdb6
[ 0.000000] This costs you 64 MB of RAM
[ 0.000000] Mapping aperture over 65536 KB of RAM @ d4000000
[ 0.008029] Security Framework initialized
[ 0.008037] AppArmor: AppArmor disabled by boot time parameter
[ 0.124097] regulator-dummy: no parameters
[ 0.233145] e820: reserve RAM buffer [mem 0x0009ec00-0x0009ffff]
[ 0.233148] e820: reserve RAM buffer [mem 0xdff90000-0xdfffffff]
[ 0.671073] Trying to unpack rootfs image as initramfs...
[ 0.953165] vesafb: framebuffer at 0xf9000000, mapped to 0xffffc90010e80000, using 3072k, total 14336k
[ 0.965051] Console: switching to colour frame buffer device 128x48
[ 0.976796] fb0: VESA VGA frame buffer device
[ 1.011155] rtc_cmos 00:02: alarms up to one month, y3k, 114 bytes nvram, hpet irqs
[ 1.497107] sr0: scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray
[ 14.505327] REISERFS (device sdb5): journal params: device sdb5, size 8192, journal first block 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30
[ 24.191594] r8169 0000:02:00.0 eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko]
[ 25.079057] EDAC amd64: DRAM ECC disabled.
veja que só aparecem linhas que tem a ver com RAM. A opção "-i" é para aparece,tudo onde tem "ram" ou "RAM", isto é, maiúsculas ou minúsculas.