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
Select an option to see the answer and solution.
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
Select an option to see the answer and solution.
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
Select an option to see the answer and solution.
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
Select an option to see the answer and solution.
Which command is used to copy a file wb with the same name from the programs directory to the misc directory?
A. copy programs/wb misc/wb
B. cp programs/wb misc
C. tar programs/wb misc/wb
D. copy a:programs/wb b:misc/wb
E. None of the above
Select an option to see the answer and solution.
Which is the earliest and most widely used shell that came with the UNIX system?
A. C shell
B. Korn shell
C. Bourne shell
D. Smith shell
E. None of the above
Select an option to see the answer and solution.
The seventh field of /etc/password is
A. password
B. login
C. shell
D. home
E. None of the above
Select an option to see the answer and solution.
Which command is used to display the end of the file?
A. head - r
B. tail
C. eof
D. bof
E. None of the above
Select an option to see the answer and solution.
Which command is used to create a directory?
A. crdir
B. md
C. mkdir
D. cr
E. None of the above
Select an option to see the answer and solution.
Which command is used to display the device name of the terminal you are using?
A. who
B. ls
C. tty
D. stty
E. None of the above
Select an option to see the answer and solution.
The ls -l command tells
A. who the owner of the file is
B. the name of the group owner of the file
C. how large the file is and when the file was last modified.
D. All of the above
E. None of the above
Select an option to see the answer and solution.
Which option will be used with disk free command to include the total amount of disk space in the file system?
A. -t
B. -a
C. -h
D. -s
E. None of the above
Select an option to see the answer and solution.
Which command is used to set the three permissions for all the three categories of users of a file?
A. chgrp
B. chown
C. chmod
D. chusr
E. None of the above
Select an option to see the answer and solution.
Which of the following commands can be used to get information about yourself?
A. who am i
B. i /4
C. pwd
D. which
E. None of the above
Select an option to see the answer and solution.
Which of the following commands can be used to get information about all users who are currently logged into the system?
A. which
B. who
C. who am i
D. 1 /u
E. None of the above
Select an option to see the answer and solution.
Which of the following keys is used to overstrike a whole line?
A. R
B. v
C. C
D. u
E. None of the above
Select an option to see the answer and solution.
Which command is used to locate all the .profile files in the system?
A. ls profile
B. find /-name profile -print
C. cd /.profile
D. l -u .profile
E. None of the above
Select an option to see the answer and solution.
The File that contains a set of instructions which are performed when a user logs in, is
A. .exrc
B. .profile
C. .autoexec
D. autoexec.bat
E. None of the above
Select an option to see the answer and solution.
The octal representation 652 indicates
A. Execute permission for the owner
B. Write permission for others
C. Read and write permission of groups
D. All of the above
E. None of the above
Select an option to see the answer and solution.
Which of the following command is used to count just the number of lines contained in a file?
A. wc -l
B. wc -c
C. wc -w
D. wc -r
E. None of the above
Select an option to see the answer and solution.