1. View the contents of the file
cat [filename] ///one-time output of all the contents of the file to the terminal
more [filename] //By knocking the return way to view the contents of the file line by row, Q-Key end view
less [filename] //"Up and down" key way to view the contents of the file (support back-looking), Q-Key end view
head-n [filename] //View the first n rows of a file
tail-n [filename] //View the last n rows of a file
WC [filename] //View the number of rows in the file 2. Create a file
Touch [filename] //create filename file in current directory
Touch dir/filename //create filename file in specified directory
touch/home/zhangsan/filename //create filename file by absolute path 3. Append content to File
echo Content > File //Add "content" to file with overwrite write
echo content >> files //Add "content" to the file in "append" mode