Linux Unix Basic Commands
Commands pwd Command Show Current Direcctory $ pwd /home/linuxize cal command Displays the calendar of the current month. $ cal July 2012 Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 echo command This command will echo whatever you provide it. $ echo "linoxide.com" linoxide.com The ‘echo’ command is used to display the values of a variable. One such variable is ‘HOME’. To check the value of a variable precede the variable with a $ sign. $ echo $HOME /home/raghu Date Command Displays current time and date. $ date Fri Jul 6 01:07:09 IST 2012 If you are interested only in time, you can use date +%T (in hh:mm:ss): $ date +%T 01:13:14 tty command Displays current terminal. $ tty /dev/pts/0 whoami command This command reveals the user who is currently logged in. $ whoami raghu id command This command prints user and groups (UID and GID) of the current user. $ id uid=1000(raghu) gid=1000(raghu) groups=1000...