From the course: Operating System Forensics

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Process management hands-on

Process management hands-on

From the course: Operating System Forensics

Start my 1-month free trial

Process management hands-on

- [Instructor] Let's start a web server here called apache2. Type sudo service apache2 start. Press enter, to check if the new process is running, type sudo ps space dash capital A space pipe space grep space dash lowercase i space apache. Press enter, the ps command with the dash capital A option shows all the active processes on my virtual machine. The vertical line is the pipe command that passes the output of the ps command to the grep command. The grep command searches for the keyword apache and displays the lines containing the string of our interest. In this case, apache appears to be running. Let's now stop the web server by typing sudo service apache2 stop, press enter. Let's recall the command we used earlier by pressing the up arrow key, press enter. This time nothing shows up, which meas that the apache web server is no longer running. As you can see, the Ubuntu OS plays a key role in one of the critical aspects of computing, namely process management by allowing us to…

Contents