Questions and published explanations below are available without starting a test. Some questions may not have a published solution yet.
0 / 16 published solutions
Question 240 MSQ · 6.0 marks
Ajit is writing an essay in English. He realizes that he has used both the American English and
British English spellings for the same words in his essay. He wants to find all such occurrences for
the words "color/colour" and "program/programme". Help him by selecting the correct regular
expression which will capture the British version as well as American version of the words from the
text. Make sure It only collects the words which has correct spellings in either of the format.
Note: It is an Extended Regular Expression (ERE)
For a log file 'file.txt' the user wants to change the permissions such that he gives read, write, and
execute to the owner; read and execute to the group and others. which of the following
commands will accomplish the same?
6406532468337.
6406532468338.6406532468339.6406532468340.
A published solution is not available for this question yet.
$ sleep 200 &
$ ps
PID TTY TIME CMD
1@ pts/® 60:00:02 bash
344 pts/0 00:00:00 sleep
345 pts/0 00:00:00 ps
Select the command(s) from the options below which will suspend the sleep process started
as shown in the above code block.
$ man kill
KILL(1) User Commands
KILL(1)
NAME
kill - send a signal to a process
SYNOPSIS
kill [options] <pid> [...]
DESCRIPTION
The default signal for kill is TERM. Use -1 or -L to list
available signals.
Particularly useful signals include HUP, INT, KILL, STOP, CONT, and
®. Alter-
nate signals may be specified in three ways: -9, -SIGKILL or -
KILL. Negative
PID values may be used to choose whole process groups; see the PGID
column in ps
command output. A PID of -1 is special; it indicates all processes
except the
kill process itself and init.
OPTIONS
<pid> [...]
Send signal to every <pid> listed.
Assume that each directory has 2 hard links (one for the current working directory and another
from its parent directory) and a link each for the sub-directory's parent directory. How many
subdirectories are present in the current working directory?
A published solution is not available for this question yet.