Unix – Section 2

6. Which command is used to list all the files with extension .lst?

A. ls -l *.lst
B. ls lst*
C. ls *.*
D. ls *[lst] E. None of the above

Correct Answer: A. ls -l *.lst

7. Which option is used with the chmod command recursively to all files and sub-directories in a directory?

A. -1
B. -i
C. -x
D. -R
E. None of the above

Correct Answer: D. -R

8. Which command is used to change directory to the name beginning with a ‘p’?

A. cd p
B. cd p?
C. cd p*
D. cd [p] E. None of the above

Correct Answer: C. cd p*

9. Which of the following is invalid filename?

A. shutry
B. TRY
C. trial
D. my .file
E. None of the above

Correct Answer: E. None of the above

10. Which commands is used to assign executable permission to all of the files named “letter”?

A. chmod ugo+r letter
B. chmod ugo+rw letter
C. chmod u+x letter
D. chmod ugo+x letter
E. None of the above

Correct Answer: D. chmod ugo+x letter

Warning: Undefined variable $in_same_cat in /www/wwwroot/mtexam.com/public_html/wp-content/plugins/EXP.GKFEED.COM/function.php on line 27

Warning: Undefined variable $excluded_categories in /www/wwwroot/mtexam.com/public_html/wp-content/plugins/EXP.GKFEED.COM/function.php on line 27
< PREVIOUS POSTUnix - Section 1
NEXT POST >Unix - Section 3

Leave A Comment?