Useful Linux Commands
0
1. Command to Shutdown immediately
Open a terminal and type
sudo shutdown -P now
This will put the system to halt immediately. It is very useful if you are in command line mode or if the desktop environment has hung. (sudo will only work on Ubuntu. For others use su instead)
2. Command to reboot
sudo reboot
This command will reboot the system after entering the appropriate password. (sudo will work only on Ubuntu).
3. Command to view the version of Ubuntu
cat /etc/issue
This will display the current version of Ubuntu.



