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

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *

four − 3 =