Entire books have been written on command-line tools and how to use them effectively. In this section, we will have a look at the essentials one that we need. If you are an experienced administrator, feel free to skip to the next section. Just keep in mind the following note, that's all.
Note
Note that unlike other Linux distributions, Ubuntu doesn't allow the use of the super user as a root by default; it is disabled for security reasons. So, when you would like to run a command with the root privileges, you should run it with the sudo
keyword before doing so. You will be asked to enter your password (the one that you used when installing the Ubuntu Server). For example, if you would like to edit the /etc/hosts
file, run the following code:
abdelmonam@abdelmonam-tactic:~$ sudo vi /etc/hosts [sudo] password for abdelmonam:
If you would like to activate the root account (which is not recommended) or allow other users to run sudo
, you can follow the detailed...