WorksheetsProcess Management Quiz
Total questions: 40
Worksheet time: 20mins
A process is said to be born when:
The user logs in
The program starts execution
The file is created
The kernel assigns memory
Which table does the kernel use to store process attributes?
File table
Process table
Permission table
Kernel table
PID stands for:
Process Internal Directory
Process Information Data
Process Identification Number
Parent Identification Number
The command used to display currently running processes:
ls
ps
kill
bg
PPID represents:
Parent Process ID
Parallel Process ID
Previous Process ID
Page Process ID
A newly created process is called:
Parent process
Child process
Shell process
Fork process
Which system call creates a child process?
wait()
kill()
fork()
exec()
Which system call is used by the child to execute a new program?
exit()
exec()
fork()
ps()
When a child finishes execution, it is terminated by:
wait()
fork()
exit()
kill()
Which command provides detailed list of attributes of processes?
ps -u
ps -f
ps -a
ps
In `ps` output, the `TTY` column represents:
CPU time
Terminal associated with the process
Process priority
Parent process
To display processes of a specific user, use:
ps -a
ps -u
ps -f
ps -e
System processes can be viewed using:
ps -a
ps -u
ps -f
ps -e
Signals are:
Hardware interrupts
Software interrupts
Kernel logs
Permissions
Default action of SIGINT when pressing Ctrl+C is:
Ignore the signal
Continue process
Terminate process
Suspend process
Command used to terminate a background process:
exit
kill
fg
bg
The default signal used by kill command is:
SIGKILL (9)
SIGSTOP (17)
SIGTERM (15)
SIGINT (2)
$! stores:
PID of current shell
Exit status of last command
PID of last background job
Number of jobs
The command to bring a job to foreground is:
bg
fg
ps
jobs
To list all current jobs, use:
jobs
fg
ps
showjobs
Hard links cannot be created for:
Files
Directories
Text files
Bash scripts
Which command creates a hard link?
ln -s
link
ln
cp
Soft links store:
File content
Inode number
Pathname of original file
File permissions only
To create a symbolic link, use:
ln
ln -s
link
symlink
Default permission for a regular file before applying umask is:
777
666
755
644
Command to check current umask value:
mask
showmask
umask
chmod
`head` command by default displays:
Last 10 lines
First 10 lines
First 5 lines
Last 5 lines
Command to display last 3 lines of a file:
head -3 file
tail -n 3 file
tail +3 file
head +3 file
`cut -c 5-7 file` extracts:
Lines 5 to 7
Bytes 5 to 7
Columns 5 to 7
Words 5 to 7
Default field delimiter for cut command:
Comma
Colon
Space
Tab
Command used to merge files line by line:
join
cat
paste
merge
Sort command arranges data by default in:
Numeric order
ASCII collating sequence
Reverse order
Random order
To sort on a specific field:
sort -n
sort -r
sort -k
sort -o
To sort in reverse order:
sort -k
sort -r
sort -n
sort -t
To remove duplicate lines:
sort -d
sort -u
sort -m
sort -r
To merge already sorted files:
sort -u
sort -m
sort -o
sort -c
grep stands for:
Get Regular Expression Pattern
Global Regular Expression Print
General Replace Expression Print
Global Replace Pattern
To ignore case while searching with grep:
grep -c
grep -r
grep -i
grep -l
To display lines NOT matching a pattern:
grep -n
grep -v
grep -i
grep -l
Pipeline (`|`) is used to:
Redirect output to file
Merge commands
Use output of one command as input to another
Execute multiple processes independently
