Top sudo commands in Linux
In my previous article I had described about the beauty of Linux/Unix operating system. In that series I had mentioned some feature of Linux/Unix operating system those were as follows:
- Easy to access both local and remote machine (In my next article I will be writing about access of remote machine)
- Secure
- Less time consuming
To perform task either from one user to another user or local system to remote system, you have to use commands. Because you can not go there to perform task by using mouse. But by using some commands you can login ($su user_name used to login from one user to another within a cluster and ssh command can be used to login a remote machine) in those systems from your system and your task can be done with help of commands.
Here, we are writing some command which can be used by super /administrative /power user only. These commands are as follows:
-
How to shutdown your computer
$sudo poweroff
-
How to restart your computer
$sudo reboot
-
How to update your computer system
$sudo apt-get update
apt-get is the command line tool to work with APT software packages. Where APT stand for Advanced Package Tool which is associated with Debin .deb software packaging system.
-
How to install a software in your computer system ( only software which are avilable in your software center )
$sudo apt-get install vim
In some packages you will be asked
In this step, system wants to know that whether you want to install (Y) or not (n)
Finally, if you don’t use sudo in your command then you will come up with an error as follows
-
How to remove a software from your computer
$sudo apt-get remove vim
When I originally commented I clicked the “Notify me when new comments are added” checkbox and now each time a comment is added I get four emails with the same comment. Is there any way you can remove people from that service? Cheers!
Hi,
Sorry for the inconvenience caused. I will remove you from comment subscription within next 24 hours.
Again we apologize for inconvenience caused.
Thanks and regards
Ranjeet
I simply want to tell you that I am just beginner to weblog and definitely enjoyed your blog site. Very likely I’m want to bookmark your website . You surely come with great stories. With thanks for sharing with us your blog.
I just want to mention I’m newbie to blogging and site-building and absolutely enjoyed you’re blog site. Likely I’m likely to bookmark your blog post . You amazingly come with perfect well written articles. Regards for sharing your web page.