Tuesday, 23 February 2016

Basic Commands to begin with

     There are few basic commands that every linux user must master initially to get going. One among them is the man command that provides one with the man page i.e the manual page of a particular command. The man page describes a command in detail. 

For eg: man ps
(Note: ps command gives a snapshot about the current processes in the system)

            As shown in the above example, this command would open up the manual page for the command 'ps'. The page would have a complete description about the command 'ps' along with its usage details, the types pf arguments to be used along (if any) etc. This is one of the most useful commands that helps a beginner to  know what exactly yet another command does to the system.

     The next important thing to know is how to install a software into the linux system. As we know there are different distributions of linux and there exist slight differences in the commands that are being used for the same purpose. Considering the Ubuntu distro of linux, we have the apt-get command that helps install a particular software into the system. Th same installation process is done in Redhat Enterprise Linux using the yum command. Both these basically does the same. Sticking on to Ubuntu distro as said earlier, an apt-get command helps to install a software. The command is written as shown below.

sudo apt-get install  

Again commands sudo apt-get remove   and sudo apt-get upgrade would remove and upgrade the service respectively.

Every service ones installed may need to be stopped or restarted if necessary. The following commands helps one do it:

sudo /etc/init-d/ start
sudo /etc/init-d/ stop
sudo /etc/init-d/ restart
                                             

No comments:

Post a Comment