Computer Science - Unix

Exercise :: 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

Answer: Option A

Explanation:

No answer description available for this question. Let us discuss.

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

Answer: Option D

Explanation:

No answer description available for this question. Let us discuss.

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

Answer: Option C

Explanation:

No answer description available for this question. Let us discuss.

9. 

Which of the following is invalid filename?

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

Answer: Option E

Explanation:

No answer description available for this question. Let us discuss.

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

Answer: Option D

Explanation:

No answer description available for this question. Let us discuss.