Text Viewing

head FILE

# -n 显示文件FILE的前n行


# NAME: output the first part of files

tail

tail FILE

# -n 显示文件FILE的后n行
# -f output appended data as the file grows


# NAME: output the last part of files

cat

cat FILE

# -n number all output lines. 显示行号


# NAME: concatenate files and print on the standard output

tac

wc

Last updated