Basic Linux Commands

1. tty - Reveal the current terminal


2. whoami - shows the current loged in user


3. echo - print in STDOUT


4. set - print and optionaly set variables


5. clear - clear the terminal window


6. history - get the command history of the terminal


7. pwd - present working directory


8. ls - List the content in directory


9. cat - catanate files

a. cat 123.txt 456.txt dumps both into STDOUT

b. cat 123.txt 456.txt > 123456.txt catanate files and create new file called 123456.txt


10 mkdir - cfreate new directory
a. mkdir testRH - create testRH directory



11. cp - copies files

a. cp 123.txt testRH/
*** by default it does not give the original created time ***

b. cp -v 123.txt testRH/ copy to testRH n show its in STDOUT


12. mv - moves files

a. mv 123.txt testRH/
*** give original time stamp of creates ****


13 rm - removes files or directories

a. rm 123.txt

b. rm -rf 123.txt remove recursively and forcingly


14. touch - create 0byte file
a. touch 123.txt update the time stamp to now

b. touch --help get help *******

c. touch -t 201007211530 123.txt set timestamp to the specified date and time


15. stat - reveals statistics of the file
a. stat 123.txt reveals all attributes of the file


16. find - finding a file or...
NOTE: can use return fields of "stat" command


17. alias - dump aliases

Comments

Popular posts from this blog

MRTG configurations

ADSL configuration on Cisco router