Linux Operating System Online Question and Answer
1.The string that we are looking for is show in____line color.
(A) red ✔️
(B) green
(C) white
(D) yellow
2.In GUI applications, use____key combination to find keyword within files.
(A) ctrl + f ✔️
(B) ctrl + h
(C) ctrl + s
(D) ctrl + q
3.It is compulsory to enclose the keyword in double quotes. Yes or No?
(A) yes
(B) no ✔️
(C) ((A) and ((B)
(D) none of these
4.Which option used to ignore case while searching?
(A) -c
(B) -i ✔️
(C) -l
(D) –n
5.Which option used to return only number of matches without quoting the text?
(A) -c ✔️
(B) -i
(C) -l
(D) -n
6.Which option used to return the only file names containing a match without quoting the text
(A) -c
(B) -i
(C) -l ✔️
(D) -n
7.Which option used to return all the lines that do not match the text?
(A) -v ✔️
(B) -w
(C) -o
(D) –n
8.Which option used to return the line number of matched text as well as the text itself?
(A) -c
(B) -i
(C) -l
(D) –n ✔️
9.Which option used to return lines which display only whole words?
(A) -v
(B) -w ✔️
(C) -o
(D) -n
10.We want detail about the person who are staying in society that has ‘Jal’ as it’s starting and ‘I’ as its end, then which expression can be used ?
(A) grep “Jal.*I” address.txt ✔️
(B) grep “Jal.I” address.txt
(C) grep “*I.Jal” address.txt
(D) grep “Jal.I” address.txt
11.Which option used to shows only the matched string ?
(A) -v
(B) -w
(C) -o ✔️
(D) -n
12.A regular expression is normally followed by one of several____operators.
(A) regular
(B) repetition ✔️
(C) not regular
(D) all of these
13.Which repetition operator is used if the preceding item is optional and matched at most once?
(A) ? ✔️
(B) *
(C) +
(D) {n}
14.Which repetition operator is used if the preceding item will be matched one or more times?
(A) ?
(B) *
(C) + ✔️
(D) {n}
15.Which repetition operator is used if the preceding item is optional and matched zero or more time?
(A) ?
(B) * ✔️
(C) +
(D) {n}
16.Which repetition operator is used if the preceding item is matched exactly n number of times?
(A) ?
(B) *
(C) +
(D) {n} ✔️
17.Which command helps to find the location of the file or a directory created earlier?
(A) find ✔️
(B) search
(C) name
(D) all of these
18.Which repetition operator is used if the preceding item is matched n or more number of times?
(A) ?
(B) *
(C) +
(D) {n,} ✔️
19.When___command is used without any other arguments display the pathname of all the files and directories in the present directory and all its subdirectories.
(A) find ✔️
(B) search
(C) name
(D) all of these
20.Which command is used to search object modified within the past 24 hours?
(A) find / -type d
(B) find .-mtime -1 ✔️
(C) find . –mtime +1
(D) find –executable
21.Which command is used to search all directory and subdirectories?
(A) find / -type d ✔️
(B) find .mtime –l
(C) find . –mtime +1
(D) find -executable
22.Which command is used to search object modified more than 48 hours ago?
(A) find / -type d
(B) find .mtime –l
(C) find . –mtime +1 ✔️
(D) find -executable
23.Which command is used to search for the executable file in current directory?
(A) find / -type d
(B) find .mtime –l
(C) find . –mtime +1
(D) find –executable ✔️
24.To use superuser account when using the terminal, we need to add___as a prefix to the command.
(A) khado
(B) pado
(C) sudo ✔️
(D) mado
25.The administrative privileges are available to only a user know as____.
(A) superuser ✔️
(B) super teacher
(C) super root
(D) all of these
26.Which command used to create a new user on the system?
(A) adduser ✔️
(B) passwd
(C) who
(D) addgroup
27.Which command is used to display the list of all the user that are presently logged into the machine?
(A) adduser
(B) password
(C) who ✔️
(D) addgroup
28.Which command is used to change the password of any valid user of the system?
(A) adduser
(B) passwd ✔️
(C) who
(D) addgroup
29.Which command is used to add a new group?
(A) adduser
(B) passwd
(C) who
(D) addgroup ✔️
30.Which command is used to deletes a group from the system?
(A) adduser
(B) passwd
(C) who
(D) delgroup ✔️
31.Which command is used to delete a user from the system?
(A) adduser
(B) deluser ✔️
(C) who
(D) addgroup
32.Which command is use to list the file sorting them based on their modification time?
(A) ls -t ✔️
(B) ls -F
(C) ls -l
(D) ls -r
- Linux Operating System MCQs-1
- Linux Operating System MCQs-2
- Linux Operating System MCQs-3
- Linux Operating System MCQs-4
- Linux Operating System MCQs-5
- Linux Operating System MCQs-6
- About me