Olete.in
Articles
Mock Tests
🧪 Unix/Lunux MCQ Quiz Hub
Unix MCQS Set 3
Choose a topic to test your knowledge and improve your Unix/Lunux skills
1. 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?
find -mtime +365 | rm
grep (/usr/*) - mtime + 365 | -ok rm
find -name - mtime + 365 / - ok rm
find /user/* (-mtime + 365 - a - atime +365 ) - OK rm {} ;
2. Which of the following commands is used to summarize the disk usage?
chkdsk
fdisk
du
disk
3. Which command is used to sort the lines of data in a file in alphabetical order?
sort
sh
st
sort-r
4. If a file has read and write permissions for the owner, then the octal representation of the permissions will be
1
6
5
3
5. Which command is used to copy a file wb with the same name from the programs directory to the misc directory?
copy programs/wb misc/wb
. cp programs/wb misc
tar programs/wb misc/wb
copy a:programs/wb b:misc/wb
6. Which is the earliest and most widely used shell that came with the UNIX system?
C shell
Korn shell
Bourne shell
Smith shell
7. The seventh field of /etc/password is
password
login
shell
home
8. Which command is used to display the end of the file?
head - r
tail
eof
bof
9. Which command is used to create a directory?
crdir
md
mkdir
cr
10. Which command is used to display the device name of the terminal you are using?
who
ls
tty
stty
11. The ls -l command tells
who the owner of the file is
the name of the group owner of the file
how large the file is and when the file was last modified.
All of the above
12. Which of the following commands can be used to get information about all users who are currently logged into the system?
which
who
who am i
1 /u
13. Which command is used to set the three permissions for all the three categories of users of a file?
chgrp
chown
chmod
chusr
14. Which of the following commands can be used to get information about yourself?
who am i
i /4
pwd
which
15. Which of the following commands can be used to get information about all users who are currently logged into the system?
which
who
who am i
1 /u
16. Which of the following keys is used to overstrike a whole line?
R
v
chmod
u
17. Which command is used to locate all the .profile files in the system?
ls profile
find /-name profile -print
cd /.profile
. l -u .profile
Submit