Skip to main content

Posts

Showing posts with the label disk space usage

Useful Linux Commands - III

To know your hostname type hostname To know the shell we are working in ps -p $$ This command would give a result: PID TTY          TIME CMD 15362 pts/3    00:00:00 zsh echo $SHELL This command would give a result like: /bin/zsh Please note that once you export your PATH variable or any other env variable, you should restart your terminal to see the changes To create links between the files we can use "ln" To view the current processes which are Running:  ps -ef | more To find out how much free memory (RAM) we have on our linux box: free This command will give the used, swap, free memory on our linux box Also the output is in bytes free -g This command will give the used, swap, free memory on our linux box in GB's To find out the disk space usage data:  df -k  This commands gives output in bytes df -h  This gives the output in GB's 

Useful Linux Commands - I

Want to know your system name? /bin/uname -n Know where you are in your file system:  pwd  The command will print Present Working Directory How do you create a shortcut in linux? ln How to extract compressed files? tar Downloading from a link can't be faster on any other OS :)  wget Forgot which commands you ran? history Want to see whats your disk space usage? df  df -h gives human formatted listing Most important command to know more about the above commands - Need more help about the commands? man