How can I suspend/hibernate from command line?

Traditionally ubuntu supported a fairly blunt method of suspend and hibernate. Neither would integrate well with other apps and sometimes not even work on some machines. The new method doesn’t require root and notifies all applications listening for power...

How to start GUI from command line?

If you tried the command startx, but the error command not found was returned, then to install a graphical desktop, in case it is not installed, you would type this: sudo apt-get install ubuntu-desktop

How to check battery status using terminal?

The below command outputs a lot status and statistical information about the battery. The /org/…path can be found with the command upower -e (–enumerate). upower -i /org/freedesktop/UPower/devices/battery_BAT0 Example output: native-path:...

Why doesn’t running “sudo shutdown now” shut down?

Traditionally, the command sudo shutdown now will take you to the runlevel 1 (recovery mode); this will happen for both Upstart and SysV init. To get what you want, i.e., to shut down the computer properly, you need to give the -h switch to shutdown. One thing to note...

How to start Ubuntu in Console mode

As described here (ubuntuhandbook.org – Boot into text console ubuntu) you need to edit /etc/default/grub to have the next boot end up in text mode. In summary you will set these parameters: GRUB_CMDLINE_LINUX_DEFAULT=”text” GRUB_TERMINAL=console...