Top 150+ Solved Linux Programming MCQ Questions Answer
Q. What command is used to list the files chap0l, chap02 and chap04?
a. ls chap*
b. ls chap[124]
c. ls - x chap0[124]
d. ls chap0[124]
Q. Which of these commands could you use to show one page of output at a time?
a. less
b. sed
c. pause
d. grep
Q. Which commands will give you information about how much disk space each file in thecurrent directory uses?
a. ls -l
b. ls -la
c. du
d. ls -a
Q. Which command is used to display all the files including hidden files in your current andits subdirectories ?
a. ls –aR
b. ls –a
c. ls –R
d. ls –l
Q. Which of the following commands can be used to copy files across systems?
a. ssh
b. telnet
c. rsh
d. ftp
Q. pwd command displays
a. user password
b. password file content
c. present working directory
d. none of the mentioned
Q. Which of the following commands can be used to change default permissions for filesand directories at the time of creation
a. Chmod
b. Chown
c. Umask
d. Chgrp
Q. Which tar command option is used to list the files in a tape archive format?
a. cvf
b. tvf
c. xvf
d. ovf