Process Management Flashcards
What command is used to send a signal to a process?
■ kill
■ usage: kill [-signal] PID
What command is used to send a signal to one or more processes matching selection criteria?
■ killall
■ usage: killall [-signal] command_pattern
What advanced command can be used to send a signal to one or more processes based on command, UID, GID, Parent or terminal?
■ pkill ■ usage: pkill command_pattern ■ usage: pkill -signal command_pattern ■ usage: pkill -G GID command_pattern ■ usage: pkill -P PPID command_pattern ■ usage: pkill -t terminal_name -U UID command_pattern
What command views users currently logged into the system and their cumulative activities?
■ ‘w’
■ w [options] user
What command is used to look up processes to list IDs matching a selection criteria?
■ pgrep
■ usage: pgrep [options] pattern
■ usage: pgrep -l -u
What command can be used to view the process tree for the system or a single user?
■ pstree
■ usage: pstree [options]
What resources should be checked when experiencing high load averages with minimal CPU activity?
■ Disk activity
■ Network activity
What do the value of the load average represent?
■ The weighted values over the last 1, 5, and 15 minutes.
What utilities display load average values?
■ top
■ uptime
■ w
■ gnome-system-monitor
What so the displayed load average values mean?
■ Below 1 indicates satisfactory resource utilization and minimal wait times.
■ Above 1 indicates resource saturation and some amount of service waiting times.
What are the levels nice provides for program execution priority?
■ -20 to -1 (most favorable to process)
■ 0 to 19 (least favorable to process)
What does the ‘nice’ command do?
■ Runs a program with a modified scheduling priority.
What does the ‘renice’ command do?
■ Alters the priority of running processes.
■ Regular users can only raise the nice level of their processes. Only root can lower the nice level.
What options allow for sorting and output formatting when using ‘ps’?
■ -o (followed by column names like: pcpu,pid,comm,user)
■ –sort (like –sort=pcpu,user)
What does $(pgrep [commandname] ) do?
■ Returns all instances of the command and their PIDs.