Useful Linux Commands

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.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s