MCQGeeks
0 : 0 : 1
CBSE
JEE
NTSE
NEET
English
UK Quiz
Quiz
Driving Test
Practice
Games
Quiz
Computer Science
Unix
Quiz 3
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
In Bourne shell, which file sets the Unix environment for the user when the logs into his HOME directory.
.exrc
.profile
lastlogin
.mbox
None of the above
Q.2
Which command is used to copy the three files wb, collect and mon into the misc directory, under the same, when you were currently in the programs directory?
copy wb ../misc collect ../misc mon ../misc
cp wb collect mon ../misc
copy wb collect mon /misc
tar wb collect mon /misc
None of the above
Q.3
The command chmod 761 note is equivalent to
chmod 167 note
chmod u=rwx, g=rw, o=x note
chmo a =761 note
chmod 4=7, g=6,0 =1 note
None of the above
Q.4
The commonly used UNIX commands like date, ls, cat, etc. are stored in
/dev directory
/bin and /usr/bin directories
/tmp directory
/unix directory
None of the above
Q.5
Which of the following commands is used to get directory one level up?
cd
cd ..
cd/
chdir
None of the above
Q.6
Which of the following commands is used to count the total number of lines, words, and characters contained in a file.
count p
wc
wcount
countw
None of the above
Q.7
Which command is used to delete all files in the current directory as well as all files and sub-directories in its subdirectories?
rm *
rm -r *
rm all
rm *.*
None of the above
Q.8
The chmod ugo+rw note command can be represented in octal notation as
chmod 555 note
chmod 666 note
chmod 444 note
chmod 333 note
None of the above
Q.9
Which of the following commands is used to display the filenames in multiple columns with indication of directories and executable file?
ls -F -x
ls -l
ls ~ x
Ip
None of the above
Q.10
Which of the following commands is used to change the working directory?
cd
changedir
chdir
cdir
None of the above
Q.11
Which of the following commands is used to view your file 24 lines at a time?
pg
cat
lp
/p
None of the above
Q.12
Which command is used to print a file?
print
prn
pg
lp
None of the above
Q.13
Which command will be used with vi editor to replace single character under cursor with any number of characters?
s
S
a
i
None of the above
Q.14
Which command is used with vi editor to search a pattern in the forward direction?
/
?
//
??
None of the above
Q.15
Which of the following commands is used to assign executable permission to the owner of the file named "note"?
chmod g+x note
chmod u+w note
chmod u+x note
chmod ugo+x note
None of the above
Q.16
Which of the following set options is used with vi editor to ignore case while searching for patterns?
ic
ai
sm
ts
None of the above
Q.17
Which command is used to list out all the hidden files along with the other files?
ls -l
ls -x
ls -F
ls -a
None of the above
Q.18
The command to count the number of files in the current directory by using pipes, is
ls | wc
ls -l | wc -l
ls | wc -w
ls | ws -c
None of the above
Q.19
Which of the following commands is used to absolutely assign all permissions to the owner, read and write permissions to the group and only executable permission to the others of the file note?
chmod 761 note
chmod 671 note
chmod 167 note
chmod 4=rwx, g=rw note
None of the above
Q.20
Which option is used with the chmod command recursively to all files and sub-directories in a directory?
-1
#NAME?
#NAME?
-R
None of the above
Q.21
Which command is used to change directory to the name beginning with a 'p'?
cd p
cd p?
cd p*
cd [p]
None of the above
Q.22
Which of the following is invalid filename?
shutry
TRY
trial
my .file
None of the above
Q.23
Which command will be used with vi editor to replace text from cursor to right?
r
R
s
S
None of the above
Q.24
Which commands is used to assign executable permission to all of the files named "letter"?
chmod ugo+r letter
chmod ugo+rw letter
chmod u+x letter
chmod ugo+x letter
None of the above
Q.25
Which set option is used with vi editor to display line numbers on screen?
nm
nu
ic
li
None of the above
Q.26
Which of the following commands is used to rename a file?
rename
remove
mv
ren
None of the above
Q.27
Which of the following is not a filter?
cat
grep
wc
sort
None of the above
Q.28
Which of the following commands is used to copy a file wb from the programs directory into a file called wbx in the misc directory?
copy programs/wb misc/wbx
cp programs/wb misc/wbx
tar programs/wb misc/wbx
copy a:programs/wb b:misc/wbx
None of the above
Q.29
Which command is used to list all the files with extension .lst?
ls -l *.lst
ls lst*
ls *.*
ls *[lst]
None of the above
Q.30
Which command is used to display and create files?
cat
vi
ed
lyrix
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