Saturday 20 October 2012

Linux O.S. ( 20 Sep. 2012 )




To check any command’s full manual      man commande name
 



To check system’s memory                                               free
To check free disk space in Kb                                         df
To check free disk space in Mb                                        df –m
To check free disk space in Gb                                         df -h
To see all mount points                                                      df
To check memory in Mb                                                    free  –m
To check memory in Gb                                                     free -g
To check any command’s full manual                      man command’s name
To check any command’s info                                    info command’s name
Enter first letter of any command & press tab button twice then press y it will show all commands starting with given letter
To exit particular command                                           q
To exit from a command                                               ctrl + z
To exit from a command                                               ctrl + c
To check linux distribution name                                   uname
To see detailed info about linux                                     uname –a –all
To see user name                                                         whoami
To see user info in detail                                               who am i
To use linux as root                                                       su root


 ls –l | more
This will show page by page listed commands
You can’t page up in this command
Only page down is allow
Press page down button or space button to scroll down in above command



  ls –l | less
it will show line by line and You can up and down all info line by line




to copy a file                                                                cp source /destination path
to copy a file forcefully                                                  cp –r source /destination path
to copy and rename file                                                cp r source /destination path/new name of file






.

//fb like box