Question

In: Computer Science

Open a terminal: a) type the command ps –ef | less to view the first few...

Open a terminal:
a) type the command ps –ef | less to view the first few processes running on the system. Which process has the ID of 1?
b) What character do most processes have in the terminal column? What does this indicate?
c) What user started the most of these processes?
d) Which parent process started the most processes?
e) Type ps –el | less. What character is in the state column for most processes? What does this indicate?
f) What range of numbers do you see in the Nice (NI) column?
g) Type ps –el | grep Z. Do you have any zombie processes indicated in the state column?
h) What does the ps- ax command do?
3) Describe what the init daemon does

Solutions

Expert Solution

a)

b) The UID which is root is the most common character for many processes.

c) All the root level processes that needs to active on the system otherwise it will crash are started by the user that is root.

d) bash command started the most number of parent processes. In my case, it is 3000+

f) No column with NI name

g) No

h) This will print all the process running inside your computer

3) It is the main process or parent process you can say. This keeps the system on and if this goes off then every process will eventually get terminated.

ALL THE BEST. THANKS.


Related Solutions

Open a terminal a) Type ps –ef | grep bash. Record the PID. b) Open a...
Open a terminal a) Type ps –ef | grep bash. Record the PID. b) Open a second terminal (leaving the first active) and type kill –l to see the available kill signals c) Type kill -2 (# of the recorded PID). Did the first terminal session close? d) Type kill -3 (# of the recorded PID). Did the first terminal session close? e) Type kill -15 (# of the recorded PID). Did the first terminal session close? f) Type kill...
What does this command do & ps -ef | grep tty | less Searches the output...
What does this command do & ps -ef | grep tty | less Searches the output from the ps command for tty and displays it one screen at a time Displays all of the interactive running processes Searches the output from the ps command for the word more Displays output from the ps command one screen at a time
Give a bash command that runs "ps -ef" , but only displays items whose UID is...
Give a bash command that runs "ps -ef" , but only displays items whose UID is not equal to root
This lab will explore the password files. a) Open a terminal window and type less /etc/passwd....
This lab will explore the password files. a) Open a terminal window and type less /etc/passwd. Which line describes the root account? b) Type ls –l /etc/passwd. Who is the owner of the passwd file? What are the permissions? c) Type less /etc/shadow. What is in the password filed for most of these accounts? d) Type ls –l /etc/shadow. Who owns this file and how do the permissions differ from the /etc/passwd file? e) Type cat /etc/default/useradd. What is the...
1) Open a new terminal. a) Use the runlevel command. What is the current run level...
1) Open a new terminal. a) Use the runlevel command. What is the current run level of your system? b) Use the command ls /usr/lib/system/system . What does this show? c) Use the command ls /etc/rc.d. What does this show? d) Use the command ls/etc/rc.d/init.d. What SysV daemons are available on your system? e) Type init 3 and press Enter. The type runlevel. What is the most recent runlevel? f) Type init 1 and press enter. Does the runlevel command...
type your answer he discussion forum this week involves Business Method Patents. First, in your view,...
type your answer he discussion forum this week involves Business Method Patents. First, in your view, what should the standard be for a business method patent? Second, please include a discussion of whether you think that Amazon should be able to patent the One-Click method of ordering goods AND whether you think Facebook should be able to patent a process that “dynamically provides a news feed about a user of a social network.” (Note: This question is adapted from p....
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT