Skip to main content

Posts

Showing posts with the label know your hostname

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