Top 550+ Solved Operating System Architecture MCQ Questions Answer
Q. Which command is used to make all files and sub-directories in the directory (progs) executable by all users?
a. chmod -r a+x progs
b. chmod -r 222 progs
c. chmod -1 a+x progs
d. chmod -x a+x progs
Q. The second set of the three permissions (r-) indicates that
a. group has read permission only
b. other has read permission only
c. owner has read permission only
d. group has write permission only
Q. Which column contains all details of the permissions of a file when you issue the ls - l command?
a. second
b. fourth
c. third
d. first
Q. Which of the following commands is used to display your working directory?
a. second
b. fourth
c. third
d. first
Q. The cp command uses:
a. standard input file
b. standard output file
c. both input and output file
d. neither standard input nor standard output file
Q. Which command is used to list out all the hidden files along with the other files?
a. ls -l
b. ls -x
c. ls -f
d. ls -a
Q. Which command is used with vi editor to search a pattern in the forward direction?
a. /
b. ?
c. //
d. ??
Q. The command to count the number of files in the current directory by using pipes, is
a. ls | wc
b. ls -l | ws -l
c. ls | wc -w
d. ls | ws -c
Q. Which of the following commands is used to get directory one level up?
a. cd
b. cd ..
c. cd/
d. chdir
Q. Which of the following commands is used to count the total number of lines, words, and characters contained in a file.
a. count p
b. wc
c. wcount
d. countw
Q. Which command is used to delete all files in the current directory as well as all files and sub-directories in its subdirectories?
a. rm *
b. rm -r *
c. rm all
d. rm *.*
Q. Which of the following commands is used to change the working directory?
a. cd
b. changedir
c. chdir
d. cdir