ubuntu file operations

1. Create a new folder: mkdir file name

2, delete the file: re -r filename

 

Note: The above two are new and delete files directory 

 

3. New File: touch test.txt

4. Delete a file: rm test.txt

4. Open the file: cat test.txt

Only the first few lines: head -2 test.txt

Displaying only a few lines: tail -2 test.txt

5. Find the file: find a file directory rule parameters find -name "* .py".

Guess you like

Origin www.cnblogs.com/-citywall123/p/11520255.html