Skip to main content

sudo su Shutdown in Linux Terminal

If your learning how to use Linux in command line via Terminal like lets say Ubuntu Linux then here is a new command for you!

After you've done all your practice for the day how do you shut it down?

You can Abviosly shut it down by pressing the power button in the Uppper right corner of the screen but you want to learn how to work more like a pro!

So why not shut it down via terminal with the following commands!

When you open the Terminal in Debian Type Linux like Ubuntu first type sudo su and press Enter to open the command line with Super User Powers!

That’s really what sudo su stands for super user privileges because it allows you to do things that normally you wouldn’t be able to do by default.

There are many advanced commands that need the sudo su privileges to run properly.

Once you press Enter it will mostly likely ask for your user account password so just type it out in the terminal and press Enter again.

This will grant you root access and now you type shutdown -h now and press Enter!

How about if you are downloading a large File from the internet but you need to  leave the house cause you are in a hurry! Both things are important to complete but you can do only one thing at a time!

Suppose like now its 5 o’clock in the evening and the download will be complete by 5:20 but before you leave the house now just open the terminal and schedule it to shut down by 5:25 to be certain that the file is completely downloaded!

So instructions are really the same as above except now you can specify at what time you would like it for the computer to shut down with a minor modification by typing shutdown -h 17:25 and press Enter.

Notice I recommend typing 17:25 not 5:25 because Linux uses the 24 hour clock in the command line and if you typed 5:25 it would assume you mean in the morning so it would still work but for allot more additional hours without need!







Comments

Popular posts from this blog

Allocation Unit Size is Important

Allocation Unit Sizeshould be taken very seriously in order to Prevent Computer Problems of all sorts, such as Speed Performance, Hard Disk Damage, Loss of files and etc... You see when you format a partition it normally formats it with a default allocation unit size that can be a good thing but it can also be a bad thing.

It's a good thing because when you format the drive with the NTFS files system the default allocation unit size is 4096 bytes which is equal to 4 kilobytes. That very simply means that when you install programs or download any type of data to the computer, the hard disk of the computer will not be very full very quickly.

But unfortunately its a bad thing as well because the files are so physically small since they are running on a Small Allocation Unit Size Partition that the drive will physically be getting fragmented allot more quickly and frequently. The computer will begin to run allot slower all the time.

Now if you format a partition with a Higher Allocati…

exFAT for Windows XP

I respect the exFAT file system so much that I personnaly nicknamed it "DA Extremely Fast File System"

In the Honorable, Long Lasting and Reliable Windows XP, exFAT is available for update download and instalation!

I have formatted all of my USB Flash cards into the exFAT file system cause I know that all the operating systems from XP and above will understand it!

One of my friends has XP and when I plugged in my USB (exFAT formatted) it poped up and it said that I should format my USB! In order to use exFAT for Windows XP all I had to do was download an exFAT update(KB955704) from microsoft!

Although exFAT is designed for USB(removable disks), I risk using it on my second internal Hard Disk for all my web browsing(Temporary Internet Files) and downloads!

Install the following update in order to add support for the exFAT file system format on your computer using Windows XP!

If you are using Microsoft Windows XP Home, Proffesional and/or Media Center and if you l…

Boot Repair is Critical to have for Emergency

Boot Repair is a critical tool to have for emergency if you cant happen to boot your computer properly!

It is so helpful that even if you don't have Linux but just Windows and it doesn't boot for some reason it could still help you fix your boot problems!

This boot repair tool can be obtained in more ways then one!

The First option is to Download it, Burn it to a Disk and store it in a safe location in case of emergency to troubleshoot your computer!

The second option if you happen to have Linux Installed is to to install this utility to the Linux Operating System using the following commands in the Linux Terminal

sudo add-apt-repository ppa:yannubuntu/boot-repair sudo apt-get update sudo apt-get install -y boot-repair && boot-repair