Basic Linux TutorialIntroduction – What is it? Why to learn? Linux installation directory structures Boot process Run levels in Linux Desktop Environments Different shells BASH Internal and External Commands Basic Linux Commands Important files and directories in Linux Environmental and Shell Variables Command history in Linux Character classes in Linux Text editors vim nano Searching files Creating new files Viewing File Contents File commands File permissions and ownership WildCards (Globbing) in files File compression Directory commands xargs command in Linux Comparing files Searching patterns using grep command Translating the characters using tr command Extracting data using cut command Stream editing using sed command Data extraction and reporting using awk command Sorting the file or string input uniq command in Linux Difference between grep, tr, cut, sed and awk commands Hardware commands Hard disk and memory space commands Working with Processes Managing Jobs Working with cron jobs Service command in Linux Network commands Managing Users and Groups Other Popular commands Standard streams and Redirection Pipes Package Managers in Linux
service command in linux shellservice command is used to run System V init script and daemon processes. Here is the general syntax of service command.
You can use below command to see the status of all the services.
service <scritp-name> command
You can use below command to restart any service.
$ service –status-all
You can use below command to stop any service.
$ service <service-name> restart
You can use below command to start any service.
$ service <service-name> stop
List of well known services or daemons in Linux system
$ service <service-name> start
- crond – cron scheduler
- dhcpd – dynamic host configuration protocol manager
- ftpd – ftp server daemon
- httpd – http web server daemon
- mysql – mysql server daemon
- smtpd – mail protocol daemon
- sshd – ssh server daemon
- syslogd – system logging daemon
Web development and Automation testing