Copying, Moving, Searching and Removing Files Bash
|cp file1 file2||copy file1 and call it file2|
|mv file1 file2||move or rename file1 to file2|
|rm file||remove a file|
|rmdir directory||remove a directory|
|cat file||display a file|
|less file||display a file a page at a time|
|head file||display the first few lines of a file|
|tail file||display the last few lines of a file|
|grep 'keyword' file||search a file for keywords|
|wc file||count number of lines/words/characters in file|
Total Views: 752
My name is Jean-Mathieu
I created this website so other people could enjoy finding useful stuff easier. If you have any question do not hesitate to contact me.
|jean8mathieu||Created on 01/19/15|
Disclosure: We are a website that needs compensation to operate like any other website on the internet.
We may receive consideration for our reviews but we are totally unbiased and do not accept paid reviews or fake reviews claiming to be something they are not.