列出行号
[root@softeem tmp]# cat /etc/passwd
[root@softeem tmp]# cat -b /etc/passwd
显示$符号
[root@softeem tmp]# cat -E /etc/passwd
root:x:0:0:root:/root:/bin/bash$
bin:x:1:1:bin:/bin:/sbin/nologin$
daemon:x:2:2:daemon:/sbin:/sbin/nologin$
adm:x:3:4:adm:/var/adm:/sbin/nologin$
显示行号,不过会把空白行也计算在内
[root@softeem tmp]# cat -n /etc/passwd
cat列出信息,tac的方式是将cat倒过来显示
[root@softeem tmp]# cat /etc/passwd
[root@softeem tmp]# tac /etc/passwd
列出行号
[root@softeem tmp]# nl /etc/passwd
缩进20个字符
[root@softeem tmp]# nl -w 20 /etc/passwd
列出文件以第一行显示在页面上,阅读完第一页后按下 space 键阅读下一页,按下回车阅读下一行,往上翻页按下B键.
[root@softeem tmp]# more /etc/man_db.conf
#
#
# This file is used by the man-db package to configure the man and cat paths.
# It is also used to provide a manpath for those without one by examining
# their PATH environment variable. For details see the manpath(5) man page.
#
# Lines beginning with `#' are comments and are ignored. Any combination of
# tabs or spaces may be used as `whitespace' separators.
#
# There are three mappings allowed in this file:
# --------------------------------------------------------
# MANDATORY_MANPATH manpath_element
# MANPATH_MAP path_element manpath_element
# MANDB_MAP global_manpath [relative_catpath]
#---------------------------------------------------------
# every automatically generated MANPATH includes these fields
#
#MANDATORY_MANPATH /usr/src/pvm3/man
#
MANDATORY_MANPATH /usr/man
MANDATORY_MANPATH /usr/share/man
MANDATORY_MANPATH /usr/local/share/man
#---------------------------------------------------------
# set up PATH to MANPATH mapping
# ie. what man tree holds man pages for what binary directory.