Computer Science - Unix

Exercise :: Unix - Section 2

31. 

The commonly used UNIX commands like date, ls, cat, etc. are stored in

A. /dev directory
B. /bin and /usr/bin directories
C. /tmp directory
D. /unix directory
E. None of the above

Answer: Option B

Explanation:

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

32. 

Which of the following commands is used to remove files with confirmation prompt from the user file system which have neither been accessed nor modified i the last one year?

A. find -mtime +365 | rm
B. grep (/usr/*) - mtime + 365 | -ok rm
C. find -name - mtime + 365 / - ok rm
D. find /user/* \(-mtime + 365 - a - atime +365 \) - OK rm {} \;
E. None of the above

Answer: Option D

Explanation:

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

33. 

Which of the following commands is used to summarize the disk usage?

A. chkdsk
B. fdisk
C. du
D. disk
E. None of the above

Answer: Option C

Explanation:

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

34. 

Which command is used to sort the lines of data in a file in alphabetical order?

A. sort
B. sh
C. st
D. sort -r
E. None of the above

Answer: Option A

Explanation:

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

35. 

If a file has read and write permissions for the owner, then the octal representation of the permissions will be

A. 1
B. 6
C. 5
D. 3
E. None of the above

Answer: Option B

Explanation:

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