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:

  • free   free command examples This command is used to display the free, used, swap memory available in the system. Typical free command output. The output is displayed in bytes. $ free     &n… Read More
  • ifconfig ifconfig command examples Use ifconfig command to view or configure a network interface on the Linux system. View all the interfaces along with status. $ ifconfig -a Start or stop a specific interface using up and… Read More
  • grep   grep command examples Search for a given string in a file (case in-sensitive search). $ grep -i "the" demo_file Print the matched line, along with the 3 lines after it. $ grep -A 3 -i "example" demo_te… Read More
  • gzip   gzip command examples   To create a *.gz compressed file: $ gzip test.txt To uncompress a *.gz file: $ gzip -d test.txt.gz Display compression ratio of the compressed file using gzip -l $ … Read More
  • ftp ftp command examples Both ftp and secure ftp (sftp) has similar commands. To connect to a remote server and download multiple files, do the following. $ ftp IP/hostname ftp> mget *.html To view the file names … Read More

0 comments:

Post a Comment