touch file - create or update file cat > file - place standard input into file more file - output the contents of the file less file - output the contents of the file head file - output first 10 lines of file tail file - output last 10 lines of file tail -f file - output contents...
Remove columns from the lines of a file. column A utility that formats its input into columns. comm Used to compare two sorted files line by line. command Used to execute a command with arguments ignoring shell function named command. compress Used to compress one or more file(s) and repla...
[root@luffycity tmp]# tail -F alex.txt # -F 文件不存在报错,等待文件生成tail: cannot open'alex.txt'forreading: No such file or directorytail:'alex.txt'has appeared; following end of new file qwe cut命令 cut - 在文件的每一行中提取片断 在每个文件FILE的各行中, 把提取的片断显示在标准输出。
Read lines from a file into an array variable. 将文件按行读入数组变量 readcd Read/write compact disks. 读/写光盘 readelf Shows information about ELF (Executable and Linkable fomrat) files 显示有关ELF(可执行文件和可链接的fomrat)文件的信息。 readlink Display value of a symbolic link or canoni...
For example, head /etc/passwd shows the first 10 lines of the password file, and tail /etc/passwd shows the last 10 lines. 要快速查看文件或数据流的一部分,可以使用head和tail命令。 例如,head /etc/passwd显示密码文件的前10行,而tail /etc/passwd显示最后10行。 要更改要显示的行数,使用-n选项...
12. touch: Create an empty file or update the timestamp of an existing file. 13. head: Display the first few lines of a file. 14. tail: Display the last few lines of a file. 15. chmod: Change the permissions of a file or directory. ...
For example, head /etc/passwd shows the first 10 lines of the password file, and tail /etc/passwd shows the last 10 lines. 要快速查看文件或数据流的一部分,可以使用head和tail命令。 例如,head /etc/passwd显示密码文件的前10行,而tail /etc/passwd显示最后10行。 要更改要显示的行数,使用-n选项...
headif not specified, print out the first 10 lines of a file head -n 100display the first 100 lines tail -nif not specify n , print out the last 10 lines of a file tail -n +[Num]output the starting with [Num] cut -f + columns no. -d , file name: select columns ...
control-/), last will show how far it has searched through the file; in the case of the SIGINT signal last will then terminate. The pseudo user reboot logs in each time the system is rebooted. Thus last reboot will show a log of all reboots since the log file was cre- ...
Search for lines which do NOT match the pattern. ^E or * Search multiple files. That is, if the search reaches the beginning of the current file without finding a match, the search continues in the previous file in the command line list. ^F or @ Begin the search at the last line of...