- 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
On Windows: You can download a simple command line tool to do this. You can download the tool from here Usage can be found on the website but pasting it here too for convenience: C:\>TarTool.exe Usage : C:\>TarTool.exe sourceFile destinationDirectory C:\>TarTool.exe D:\sample.tar.gz ./ C:\>TarTool.exe sample.tgz temp C:\>TarTool.exe -x sample.tar temp TarTool 2.0 Beta supports bzip2 decompression for files with extensions like tar.bz2 and .bz2 . TarTool -xj sample.tar.bz2 temp or TarTool -j sample.bz2 Download TarTool 2.0 Beta from here Unpack a .txz file on Windows Use the 7zip tool to unpack a .txz file on windows On Linux: You can use the bzip2 and tar combined to do this… for ex: bzip2 –cd <tar.bz_fileName> | tar –xvf - This will unpack the contents of the tar.bz file Happy Un-Tar-ing
Comments