MCQGeeks
0 : 0 : 1
CBSE
JEE
NTSE
NEET
English
UK Quiz
Quiz
Driving Test
Practice
Games
Quiz
Computer Science
Unix
Quiz 2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Q.1
Which command will be used with vi editor to append text at end of line?
A
a
i
I
None of the above
Q.2
Which command allows you to view your file 24 lines at a time?
more
pg
cat
lp
None of the above
Q.3
Which of the following special shell variables is used to process number of the current shell?
$!
$$
$0
$*
None of the above
Q.4
Which option is used with cmp command to give a detailed list of the byte number and the differing bytes in octal for each character that differs in both the files?
-l
-d
-r
-b
None of the above
Q.5
Which command is used to save the standard output in a file, as well as display it on the terminal?
more
cat
grep
tee
None of the above
Q.6
The command that can be used to restrict incoming messages to a user is
mesg
grep
halt
sleep
None of the above
Q.7
The first set of the three permissions (rw) pertains to the owner of the file, indicating that the owner has
executable permission only
write and executable permissions
both read and executable permissions.
both read and write permissions
None of the above
Q.8
Which command is used with vi editor scroll half page backward?
[Control-d]
[Control - u]
[Control-c]
[Control -P]
None of the above
Q.9
Which of the following commands is used to copy directory structures in and out
cp
cpio
cp - p
copy
None of the above
Q.10
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
None of the above
Q.11
Which option will be used with disk free command to include the total amount of disk space in the file system?
#NAME?
#NAME?
-4
#NAME?
None of the above
Q.12
Which command is used to set the three permissions for all the three categories of users of a file?
chgrp
chown
chmod
chusr
None of the above
Q.13
Which of the following commands can be used to get information about yourself?
who am i
i /4
pwd
which
None of the above
Q.14
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
None of the above
Q.15
Which of the following keys is used to overstrike a whole line?
R
v
C
u
None of the above
Q.16
Which command is used to locate all the .profile files in the system?
ls profile
find /-name profile -print
cd /.profile
l -u .profile
None of the above
Q.17
The File that contains a set of instructions which are performed when a user logs in, is
.exrc
.profile
.autoexec
autoexec.bat
None of the above
Q.18
The octal representation 652 indicates
Execute permission for the owner
Write permission for others
Read and write permission of groups
All of the above
None of the above
Q.19
Which of the following command is used to count just the number of lines contained in a file?
wc -l
wc -c
wc -w
wc -r
None of the above
Q.20
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 {} ;
None of the above
Q.21
Which of the following commands is used to summarize the disk usage?
chkdsk
fdisk
du
disk
None of the above
Q.22
Which command is used to sort the lines of data in a file in alphabetical order?
sort
sh
st
sort -r
None of the above
Q.23
Which is the earliest and most widely used shell that came with the UNIX system?
C shell
Korn shell
Bourne shell
Smith shell
None of the above
Q.24
The seventh field of /etc/password is
password
login
shell
home
None of the above
Q.25
If a file has read and write permissions for the owner, then the octal representation of the permissions will be
1
6
5
3
None of the above
Q.26
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
None of the above
Q.27
Which command is used to display the end of the file?
head - r
tail
eof
bof
None of the above
Q.28
Which command is used to create a directory?
crdir
md
mkdir
cr
None of the above
Q.29
Which command is used to display the device name of the terminal you are using?
who
ls
tty
stty
None of the above
Q.30
Which shell's wild-cards is used to match a single character?
*
?
[ijk]
[!ijk]
None of the above
0 h : 0 m : 1 s
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Report Question
×
What's an issue?
Question is wrong
Answer is wrong
Other Reason
Want to elaborate a bit more? (optional)
Support mcqgeeks.com by disabling your adblocker.
×
Please disable the adBlock and continue.
Thank you.
Reload page