Allen wants to see a long listing of files, including the hidden files of the current directory. Which option will he choose with the ls command?
ls -l 0.0%
ls -al 100.0%
ls -lh 0.0%
Does Linux support wildcard characters, regular expressions and modifiers?
How can the version of the Linux kernel be checked?
uname -kernel 0.0%
uname -r 91.0%
uname -f 0.0%
kernel -uname 8.0%
How can you locate the file named passwd?
find -name /etc 0.0%
find / -name passwd 90.0%
find -uid root -gid root -name passwd 0.0%
find passwd 9.0%
How can you obtain a short description of the ls command?
whereis ls 0.0%
whatis ls 91.0%
whatis -ls 8.0%
whereis -ls 0.0%
How many terminals are provided by default in the Linux operating system?
2 virtual consoles and one graphical console 0.0%
4 virtual consoles and one graphical console 0.0%
6 virtual consoles and one virtual graphical interface 100.0%
5 virtual consoles and one graphical interface 0.0%
How will you display the fifth man page for the inittab command?
man 6 inittab 0.0%
man 5 inittab 100.0%
man 4 inittab 0.0%
manual 5 inittab 0.0%
If the umask is 0022, what is the default file permission?
644 100.0%
655 0.0%
666 0.0%
777 0.0%
Linux operating system is:
Single User 0.0%
Multi User 90.0%
Single/Multi User 10.0%
None of these 0.0%
The user's current path is /root/Desktop/abc. If he runs $ cd ../../../ what will be the user's current working directory?
/ 81.0%
/root/ 0.0%
/root/Desktop 9.0%
/root/Desktop/abc 9.0%
What does permission 644 denote?
-rw-r--r-- 100.0%
-rw-rx-rx- 0.0%
-rwxr--r-- 0.0%
-r-xr-xr-x 0.0%
What does permission 777 denote?
-rw-rw-rw- 0.0%
-rwx-wxr-x 0.0%
-rwxrwxrw- 0.0%
-rwxrwxrwx 100.0%
What does the aspell command do?
It checks the spellings of the file 90.0%
It gives the sequence of lines 0.0%
It is used for redirection 10.0%
It edits the file 0.0%
What does the du command do?
It shows disk usage 12.0%
It shows the details of the currently logged in user 0.0%
It shows the disk file size 87.0%
None of these 0.0%
What does the following command do? # whatis cal
It returns a complete description about the cal command 0.0%
It returns a one line description about the cal command 100.0%
It returns the current date 0.0%
None of these 0.0%
What does the head command do?
It shows the first 20 lines of a file 0.0%
It shows the first 10 lines of a file 87.0%
It shows the first 50 lines of a file 0.0%
It shows the first 5 lines of a file 12.0%
What does the history command do?
It shows user information 0.0%
It hides user information 0.0%
It hides the history of commands which have been executed in the current session 0.0%
It displays the complete list of commands which have been executed in the current session 100.0%
What does the pwd command do?
It changes the password of a user 0.0%
It shows the current path where the user is 100.0%
It shows the passwd file 0.0%
It shows information about Linux architecture 0.0%
What is the correct format to open the file /etc/test into the vi editor?
/etc/test vi 0.0%
vi /etc/test 100.0%
edit /etc/test 0.0%
None of these 0.0%
What is the meaning of GPL?
General Public License 88.0%
General Purpose Language 0.0%
General Publishing License 0.0%
General Power Language 11.0%
What is the name of the file where groups are added?
/etc/grp 0.0%
/etc/groups 12.0%
/etc/group 87.0%
/usr/bin/group 0.0%
What is the output of the following command? $ man cal > cal.man
It will create a new file with the name cal.man 12.0%
The man page of the cal command will be saved to a file named cal.man 87.0%
It will display the man page of calendar 0.0%
None of these 0.0%
What is the purpose of the makewhatis command?
Updating the whatis database 87.0%
Giving a brief description of the whatis command 0.0%
Updating the man pages 12.0%
Updating the rpm database 0.0%
What is the purpose of the touch command?
It creates a new empty file 57.0%
It displays the contents of a file 0.0%
It updates the timestamp of an already existing file 42.0%
It makes a new directory 0.0%
What kind of software is the Linux operating system?
Open Source 100.0%
Proprietary Software 0.0%
A and B Both 0.0%
None Of These 0.0%
What output should the ls command show after executing the following command? $ touch {report,graph}_{jan,feb,mar}
report_jan report_feb report_mar graph_jan graph_feb graph_mar 87.0%
report_jan 12.0%
report_feb 0.0%
graph_mar 0.0%
Which command adds a new user?
usernew 0.0%
useradd 87.0%
newuser 12.0%
None of these 0.0%
Which command changes permissions of files or directories?
chmod 87.0%
changemod 0.0%
chpermission 0.0%
usermod 12.0%
Which command is used to add a new group?
groupadd 87.0%
addgroup 0.0%
grpadd 12.0%
addgrp 0.0%
Which command is used to modify the user?
modseradd 0.0%
moduser 12.0%
usermod 87.0%
modify 0.0%
Which is the correct syntax to display the calendar of September 2005?
cal 9 2005 87.0%
calendar 2005 12.0%
2005 cal 0.0%
9 2005 calendar 0.0%
Which is the correct syntax to give permission 755 to the dir /etc/test ?
chmod 755 /etc/test 87.0%
changemod 755 /etc/test 0.0%
modchange 755 /etc/test 12.0%
None of these 0.0%
Which of the following are valid grep syntax?
grep "a.*b" file 0.0%
grep "a.*b." file 0.0%
grep "aaa*" file 12.0%
All of the above 87.0%
Which of the following commands can be used to display a long listing of files, with a human-readable file size (like 6.8M instead of 6819467)?
ls +ah 0.0%
ls 0.0%
ls -l 12.0%
ls -lh 87.0%
Which of the following commands lets you search for text in a file without opening the file first?
pwd 9.0%
more 18.0%
grep 72.0%
none of the above 0.0%
Which of the following commands will create a softlink?
$ ln -s /etc/test test 87.0%
$ ln -softlink /etc/test test 0.0%
$ ln /etc/test test 12.0%
$ ln -slink /etc/test test 0.0%
Which of the following commands will show you a page-wise listing?
ls /bin | less 36.0%
ls /bin | more 63.0%
ls /bin | grep 0.0%
None of the above 0.0%
Which of the following is an incorrect command?
$ lpr /etc/passwd 0.0%
$ lpq 42.0%
$ print /etc/passwd 14.0%
$ lprem /etc/passwd 42.0%
Which of the following is not a valid shell?
bash 0.0%
tcsh 25.0%
zsh 0.0%
wsch 75.0%
Which of the following is the correct path of the passwd file?
/usr/bin 0.0%
/etc/passwd 87.0%
/sbin/passwd 12.0%
/root/Desktop 0.0%
Which of the following is the intermediate between the hardware and the shell in the Linux operating system?
Bios 12.0%
Kernel 87.0%
Logs 0.0%
Ram Disk 0.0%
Which of the following is the parent process in Linux, which further has no parent?
init 75.0%
bash 0.0%
.bashrc 25.0%
/etc/init 0.0%
Which of the following is the path that contains documentation about installed packages?
/usr/bin/share 12.0%
/usr/lib/ 12.0%
/usr/share/doc 75.0%
/usr/share/help 0.0%
Which of the following vi commands is used to enter in to insert mode?
i 87.0%
-I 0.0%
-m 12.0%
None of these 0.0%
Which of the following vi commands will delete the current line?
del 0.0%
dd 87.0%
DD 12.0%
Delete 0.0%
Which of the following vi commands will discard the changes to the file and exit the vi editor?
wq 0.0%
q! 87.0%
w 12.0%
i 0.0%
Which of the following vi commands will exit forcefully from the vi editor without saving changes to the file?
wq 12.0%
wq! 12.0%
q! 75.0%
Which of the following vi commands will save the file and exit forcefully from the vi editor?
wq 11.0%
:wq! 77.0%
q! 11.0%
w! 0.0%
Who developed Linux?
Sabeer Bhatia 0.0%
Bill Gates 0.0%
Linus Torvalds 75.0%
Linux Redhat 25.0%
Why is the wc command used?
It is used for sorting 12.0%
It reads the file 0.0%
It counts lines and characters from the file 87.0%
It gives the line index 0.0%