Unix Module 3
Unix Module 3
FILES
DIRECTORIES
EXECUTABLES
PROCESSES
DIRECTORIES
EXECUTABLES
PROCESSES
DIRECTORIES
EXECUTABLES
PROCESSES
DIRECTORIES
EXECUTABLES
PROCESSES
DIRECTORIES
EXECUTABLES
PROCESSES
pwd Track
INITIALIZING A
PROCESS
TRACKING A
PROCESS
INITIALIZING A $ ps
PROCESS
Lists out all the running processes
TRACKING A
PROCESS
STOPPING A
PROCESS
OTHER PROCESSES
INITIALIZING A $ ps -f
PROCESS
Lists out full formatted information of running processes
TRACKING A
PROCESS
STOPPING A
PROCESS
OTHER PROCESSES
INITIALIZING A
PROCESS
TRACKING A
PROCESS
UID: User ID or ID of the user running the process
PID: Process ID
STOPPING A PPID: Parent process ID
PROCESS C: CPU utilization of process
STIME: Start time process
TTY: Terminal type associated with the process
OTHER PROCESSES TIME: CPU time taken by the process
CMD: The command that started this process
INITIALIZING A $ ps -aux
PROCESS
Lists out all the running processess for all users
TRACKING A
PROCESS
STOPPING A
PROCESS
OTHER PROCESSES
INITIALIZING A $ ps -u [username]
PROCESS
Lists out all the running processess for one user
TRACKING A
PROCESS
STOPPING A
PROCESS
OTHER PROCESSES
INITIALIZING A $ Ctrl + C
PROCESS
OTHER PROCESSES
INITIALIZING A $ kill -l
PROCESS
TRACKING A
PROCESS
STOPPING A
PROCESS
OTHER PROCESSES
$ kill -9 9922
TRACKING A
PROCESS
STOPPING A
PROCESS
OTHER PROCESSES
INITIALIZING A $ top
PROCESS
TRACKING A
PROCESS
STOPPING A
PROCESS
OTHER PROCESSES
STOPPING A
PROCESS
INITIALIZING A
PROCESS
TRACKING A
PROCESS
STOPPING A
PROCESS Nice value 19
Priority is reduced to 99
OTHER PROCESSES
INITIALIZING A
PROCESS
TRACKING A
PROCESS
STOPPING A
PROCESS Nice value -19
Priority is increased to 61
OTHER PROCESSES
TRACKING A
PROCESS
STOPPING A
PROCESS
OTHER PROCESSES
TRACKING A
$ nice -10 cat &
PROCESS
STOPPING A
PROCESS
OTHER PROCESSES
TRACKING A
$ renice -3 11988
PROCESS
STOPPING A
PROCESS
OTHER PROCESSES
INITIALIZING A $ df
PROCESS
TRACKING A
PROCESS
STOPPING A
PROCESS
OTHER PROCESSES
A. cat &&
B. cat &
C. Both a and b
A. cat &&
B. cat &
C. Both a and b
A. ps -u [username]
B. ls -u [username]
A. ps -u [username]
B. ls -u [username]
A. Nice value = 4
C. Nice value = 2
A. Nice value = 4
C. Nice value = 2
A. ps
B. ls
C. df
A. ps
B. ls
C. df
A. 1
B. 5
C. 14
D. 9
A. 1
B. 5
C. 14
D. 9