Linux - more command

more

more --help

# more --help

Usage:
 more [options] <file>...

A file perusal filter for CRT viewing.

Options:
 -d          display help instead of ringing bell
 -f          count logical rather than screen lines
 -l          suppress pause after form feed
 -c          do not scroll, display text and clean line ends
 -p          do not scroll, clean screen and display text
 -s          squeeze multiple blank lines into one
 -u          suppress underlining
 -<number>   the number of lines per screenful
 +<number>   display file beginning from line number
 +/<string>  display file beginning from search string match

     --help     display this help
 -V, --version  display version

For more details see more(1).

man more

# man more
MORE(1)                                User Commands                               MORE(1)

NAME
       more - file perusal filter for crt viewing

SYNOPSIS
       more [options] file...

DESCRIPTION
       more  is a filter for paging through text one screenful at a time.  This version is
       especially primitive.  Users should realize that less(1) provides more(1) emulation
       plus extensive enhancements.

OPTIONS
       Options  are  also  taken  from the environment variable MORE (make sure to precede
       them with a dash (-)) but command-line options will override those.

       -d     Prompt with "[Press space to continue, 'q' to quit.]", and  display  "[Press
              'h'  for  instructions.]" instead of ringing the bell when an illegal key is
              pressed.

       -l     Do not pause after any line containing a ^L (form feed).

       -f     Count logical lines, rather than screen lines  (i.e.,  long  lines  are  not
              folded).

       -p     Do  not  scroll.  Instead, clear the whole screen and then display the text.
              Notice that this option is switched on automatically if  the  executable  is
              named page.

       -c     Do  not  scroll.   Instead,  paint  each  screen  from the top, clearing the
              remainder of each line as it is displayed.

       -s     Squeeze multiple blank lines into one.

       -u     Suppress underlining.

       -number
              The screen size to use, in number of lines.

       +number
              Start displaying each file at line number.

       +/string
              The string to be searched in each file before starting to display it.

       --help Display help text and exit.

       -V, --version
              Display version information and exit.

COMMANDS
       Interactive commands for more are based on vi(1).  Some commands may be preceded by
       a  decimal  number,  called k in the descriptions below.  In the following descrip‐
       tions, ^X means control-X.

              h or ?    Help; display a summary of these  commands.   If  you  forget  all
                        other commands, remember this one.

              SPACE     Display next k lines of text.  Defaults to current screen size.

              z         Display  next  k  lines of text.  Defaults to current screen size.
                        Argument becomes new default.

              RETURN    Display next k lines of text.  Defaults to  1.   Argument  becomes
                        new default.

              d or ^D   Scroll  k  lines.   Default  is current scroll size, initially 11.
                        Argument becomes new default.

              q or Q or INTERRUPT
                        Exit.

              s         Skip forward k lines of text.  Defaults to 1.

              f         Skip forward k screenfuls of text.  Defaults to 1.

              b or ^B   Skip backwards k screenfuls of text.  Defaults to 1.   Only  works
                        with files, not pipes.

              '         Go to the place where the last search started.

              =         Display current line number.

              /pattern  Search for kth occurrence of regular expression.  Defaults to 1.

              n         Search for kth occurrence of last regular expression.  Defaults to
                        1.

              !command or :!command
                        Execute command in a subshell.

              v         Start up an editor at current line.  The editor is taken from  the
                        environment variable VISUAL if defined, or EDITOR if VISUAL is not
                        defined, or defaults  to  vi  if  neither  VISUAL  nor  EDITOR  is
                        defined.

              ^L        Redraw screen.

              :n        Go to kth next file.  Defaults to 1.

              :p        Go to kth previous file.  Defaults to 1.

              :f        Display current file name and line number.

              .         Repeat previous command.

ENVIRONMENT
       The more command respects the following environment variables, if they exist:

       MORE   This variable may be set with favored options to more.

       SHELL  Current shell in use (normally set by the shell at login time).

       TERM   The terminal type used by more to get the terminal characteristics necessary
              to manipulate the screen.

       VISUAL The editor the user prefers.  Invoked when command key v is pressed.

       EDITOR The editor of choice when VISUAL is not specified.

SEE ALSO
       less(1), vi(1)

AUTHORS
       Eric Shienbrood, UC Berkeley
       Modified by Geoff Peck, UCB to add underlining, single spacing
       Modified by John Foderaro, UCB to add -c and MORE environment variable

HISTORY
       The more command appeared in 3.0BSD.  This man page  documents  more  version  5.19
       (Berkeley  6/29/88),  which is currently in use in the Linux community.  Documenta‐
       tion was produced using several other versions  of  the  man  page,  and  extensive
       inspection of the source code.

AVAILABILITY
       The  more  command  is  part  of the util-linux package and is available from Linux
       Kernel Archive ⟨https://www.kernel.org/pub/linux/utils/util-linux/⟩.

util-linux                             February 2014                               MORE(1)

View CPU Information

# more /proc/cpuinfo 
processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 60
model name	: Intel(R) Core(TM) i5-4210M CPU @ 2.60GHz
stepping	: 3
microcode	: 0x27
cpu MHz		: 798.095
cache size	: 3072 KB
physical id	: 0
siblings	: 4
core id		: 0
cpu cores	: 2
apicid		: 0
initial apicid	: 0
fpu		: yes
fpu_exception	: yes
cpuid level	: 13
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clf
lush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_p
erfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 mon
itor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 movbe popcnt tsc_dea
dline_timer aes xsave avx f16c rdrand lahf_lm abm cpuid_fault epb invpcid_single pti ssbd ibr
s ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep 
bmi2 erms invpcid xsaveopt dtherm ida arat pln pts md_clear flush_l1d
bugs		: cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_m
ultihit
bogomips	: 5187.92
clflush size	: 64
cache_alignment	: 64
address sizes	: 39 bits physical, 48 bits virtual
power management:

processor	: 1
vendor_id	: GenuineIntel
cpu family	: 6
model		: 60
model name	: Intel(R) Core(TM) i5-4210M CPU @ 2.60GHz
stepping	: 3
microcode	: 0x27
cpu MHz		: 798.406
cache size	: 3072 KB
physical id	: 0
siblings	: 4
core id		: 0
cpu cores	: 2
apicid		: 1
initial apicid	: 1
fpu		: yes
fpu_exception	: yes
cpuid level	: 13
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clf
lush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_p
erfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 mon
itor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 movbe popcnt tsc_dea
dline_timer aes xsave avx f16c rdrand lahf_lm abm cpuid_fault epb invpcid_single pti ssbd ibr
s ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep 
bmi2 erms invpcid xsaveopt dtherm ida arat pln pts md_clear flush_l1d
bugs		: cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_m
ultihit
bogomips	: 5187.92
clflush size	: 64
cache_alignment	: 64
address sizes	: 39 bits physical, 48 bits virtual
power management:

processor	: 2
vendor_id	: GenuineIntel
cpu family	: 6
model		: 60
model name	: Intel(R) Core(TM) i5-4210M CPU @ 2.60GHz
stepping	: 3
microcode	: 0x27
cpu MHz		: 823.041
cache size	: 3072 KB
physical id	: 0
siblings	: 4
core id		: 1
cpu cores	: 2
apicid		: 2
initial apicid	: 2
fpu		: yes
fpu_exception	: yes
cpuid level	: 13
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clf
lush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_p
erfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 mon
itor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 movbe popcnt tsc_dea
dline_timer aes xsave avx f16c rdrand lahf_lm abm cpuid_fault epb invpcid_single pti ssbd ibr
s ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep 
bmi2 erms invpcid xsaveopt dtherm ida arat pln pts md_clear flush_l1d
bugs		: cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_m
ultihit
bogomips	: 5187.92
clflush size	: 64
cache_alignment	: 64
address sizes	: 39 bits physical, 48 bits virtual
power management:

processor	: 3
vendor_id	: GenuineIntel
cpu family	: 6
model		: 60
model name	: Intel(R) Core(TM) i5-4210M CPU @ 2.60GHz
stepping	: 3
microcode	: 0x27
cpu MHz		: 854.363
cache size	: 3072 KB
physical id	: 0
siblings	: 4
core id		: 1
cpu cores	: 2
apicid		: 3
initial apicid	: 3
fpu		: yes
fpu_exception	: yes
cpuid level	: 13
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clf
lush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_p
erfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 mon
itor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 movbe popcnt tsc_dea
dline_timer aes xsave avx f16c rdrand lahf_lm abm cpuid_fault epb invpcid_single pti ssbd ibr
s ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep 
bmi2 erms invpcid xsaveopt dtherm ida arat pln pts md_clear flush_l1d
bugs		: cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_m
ultihit
bogomips	: 5187.92
clflush size	: 64
cache_alignment	: 64
address sizes	: 39 bits physical, 48 bits virtual
power management:

View memory information

# more /proc/meminfo 
MemTotal:        8066848 kB
MemFree:         6287800 kB
MemAvailable:    7287448 kB
Buffers:          116916 kB
Cached:          1193316 kB
SwapCached:            0 kB
Active:           925404 kB
Inactive:         527412 kB
Active(anon):     241712 kB
Inactive(anon):    40800 kB
Active(file):     683692 kB
Inactive(file):   486612 kB
Unevictable:       97844 kB
Mlocked:               0 kB
SwapTotal:       9999356 kB
SwapFree:        9999356 kB
Dirty:                 0 kB
Writeback:             0 kB
AnonPages:        240432 kB
Mapped:           210764 kB
Shmem:            139952 kB
KReclaimable:     107352 kB
Slab:             144392 kB
SReclaimable:     107352 kB
SUnreclaim:        37040 kB
KernelStack:        5616 kB
PageTables:        19328 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:    14032780 kB
Committed_AS:    2002972 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       26656 kB
VmallocChunk:          0 kB
Percpu:             2784 kB
HardwareCorrupted:     0 kB
AnonHugePages:         0 kB
ShmemHugePages:        0 kB
ShmemPmdMapped:        0 kB
CmaTotal:              0 kB
CmaFree:               0 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
Hugetlb:               0 kB
DirectMap4k:      140032 kB
DirectMap2M:     5017600 kB
DirectMap1G:     3145728 kB
Published 55 original articles · won praise 0 · Views 3166

Guess you like

Origin blog.csdn.net/qq_29761395/article/details/104278091