- 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
There is no doubt that I prefer wget way over any other type of downloads… Syntax: wget <DOWNLOAD_URL> If you get this error “ zsh: parse error near & ” then its probably because your download URL has a “&” so you should try giving your DOWNLOAD_URL in double quotes wget “<DOWNLOAD_URL>” If you are trying to download from a site which needs you to give your credentials then you can try giving it this way wget --http-user=<UserName> --http-password=<Password> “<DOWNLOAD_URL>” Hope this helps
Comments