Saturday, April 26, 2014

service

  •   service command example
 
Service command is used to run the system V init scripts. i.e Instead of
calling the scripts located in the /etc/init.d/ directory with their full path,
you can use the service command.


Check the status of a service:

# service ssh status
Check the status of all the services.
service --status-all
Restart a service.
# service ssh restart

Related Posts:

  • whereis whereis command examples When you want to find out where a specific Unix command exists (for example, where does ls command exists?), you can execute the following command. $ whereis ls ls: /bin/ls /usr/share/… Read More
  • xargs   xargs command examples Copy all images to external hard-drive # ls *.jpg | xargs -n1 -i cp {} /external-hard-drive/directory Search all jpg images in the system and archive it. # find / -name *.jpg -type… Read More
  • whatis    whatis command examples Whatis command displays a single line description about a command. $ whatis ls ls             (1)  - list directo… Read More
  • vim vim command examples Go to the 143rd line of file $ vim +143 filename.txt Go to the first match of the specified $ vim +/search-term filename.txt Open the file in read only mode. $ vim -R /etc/passwd   &nb… Read More
  • wget   wget command examples The quick and effective method to download software, music, video from internet is using wget command. $ wget http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-3.2.1.tar.gz … Read More

0 comments:

Post a Comment