How do you start and stop services in unix without using admin console?



How do you start and stop services in unix without using admin console?..

Answer / Anamika

In Unix, you can use the command 'service' or 'systemctl' to start and stop services. Here is an example:

To start a service named 'my_service':
```
sudo service my_service start
```

To stop a service named 'my_service':
```
sudo service my_service stop
```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Unix General Interview Questions

What are the requirements for a swapper to work?

1 Answers  


What does sort do in unix?

1 Answers  


How to copy files from one directory to other in unix?

1 Answers  


Interviewer: Lets say there is a partition of 100GB. When i tried to create a file using touch command, under any directory, it was unable to create the file- '100% full disk space'. I calculated the size of each and every directory on that partition mannually by adding each file size & in came out to be total size 50GB. Then where is the remaining 50GB ? why it is showing disk space 100% full in 'df -h' command?

2 Answers   Infosys,


What is difference between unix and windows?

1 Answers  


What are the benefits of running processes in the background?

1 Answers  


What are positional parameters in unix?

1 Answers  


What are the three major components of any unix system?

1 Answers  


what is wrong with this interactive shell script?

1 Answers  


What is source unix?

1 Answers  


In what way the validity fault handler concludes?

1 Answers  


How to remove certain lines from a file in Unix?

1 Answers  


Categories