linux命令 文件查看

cat

NAME

       cat -将多个文件的内容输出到标准输出,或读取标准输入。
SYNOPSIS
       cat [OPTION]... [FILE]...
DESCRIPTION

       Concatenate FILE(s), or standard input, to standard output.

tac

NAME
       tac - concatenate and print files in reverse
SYNOPSIS
       tac [OPTION]... [FILE]...
DESCRIPTION
       Write each FILE to standard output, last line first.  With no FILE, or when FILE is -, read standard input.
       Mandatory arguments to long options are mandatory for short options too.

nl

NAME
       nl - number lines of files
SYNOPSIS
       nl [OPTION]... [FILE]...
DESCRIPTION
       Write each FILE to standard output, with line numbers added.  With no FILE, or when FILE is -, read standard input.

more

NAME
     more — file perusal filter for crt viewing
SYNOPSIS
     more [-dlfpcsu] [-num] [+/pattern] [+linenum] [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 and extensive enhancement

less

NAME
       less - opposite of more
SYNOPSIS
       less -?
       less --help
       less -V
       less --version
       less [-[+]aBcCdeEfFgGiIJKLmMnNqQrRsSuUVwWX~]
            [-b space] [-h lines] [-j line] [-k keyfile]
            [-{oO} logfile] [-p pattern] [-P prompt] [-t tag]
            [-T tagsfile] [-x tab,...] [-y lines] [-[z] lines]
            [-# shift] [+[+]cmd] [--] [filename]...
       (See the OPTIONS section for alternate option syntax with long option names.)
DESCRIPTION
       Less  is  a  program  similar to more (1), but which allows backward movement in the file as well as forward movement.  Also, less does not have to read the
       entire input file before starting, so with large input files it starts up faster than text editors like vi (1).  Less uses termcap (or terminfo on some sys‐
       tems),  so  it  can  run  on  a variety of terminals.  There is even limited support for hardcopy terminals.  (On a hardcopy terminal, lines which should be
       printed at the top of the screen are prefixed with a caret.)

       Commands are based on both more and vi.  Commands may be preceded by a decimal number, called N in the descriptions below.  The number is used by some            commands, as indicats

head

NAME
       head - output the first part of files
SYNOPSIS
       head [OPTION]... [FILE]...
DESCRIPTION
       Print  the first 10 lines of each FILE to standard output.  With more than one FILE, precede each with a header giving the file name.  With no FILE, or when
       FILE is -, read standard input.

tail

NAME
       tail - output the last part of files
SYNOPSIS
       tail [OPTION]... [FILE]...
DESCRIPTION
       Print  the  last 10 lines of each FILE to standard output.  With more than one FILE, precede each with a header giving the file name.  With no FILE, or when
       FILE is -, read standard input.

od

NAME
       od - dump files in octal and other formats
SYNOPSIS
       od [OPTION]... [FILE]...
       od [-abcdfilosx]... [FILE] [[+]OFFSET[.][b]]
       od --traditional [OPTION]... [FILE] [[+]OFFSET[.][b] [+][LABEL][.][b]]
DESCRIPTION
       Write  an  unambiguous representation, octal bytes by default, of FILE to standard output.  With more than one FILE argument, concatenate them in the listed
       order to form the input.  With no FILE, or when FILE is -, read standard input.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值