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

Correct Answer: B. /bin and /usr/bin directories

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

Correct Answer: D. find /user/* \(-mtime + 365 – a – atime +365 \) – OK rm {} \;

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

Correct Answer: C. du

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

Correct Answer: A. sort

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

Correct Answer: B. 6

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?