Vous êtes sur la page 1sur 8

1. What is the meaning of GPL?

Correct Answer: General Public License


2. Which is the correct syntax to display the calendar of September 2005?
Correct Answer: Cal 9 2005
3. How can a short description of what the ls command does be obtained?
Correct Answer: Whatis ls
4. What does the pwd command do?
Correct Answer: It shows the current path where the user is
5. What is the use of touch command?
Correct Answer: It makes a new empty file
6. The user's current path is /root/Desktop/abc. If he runs
$ cd ../../../ what will be the user's HIS current path?
Correct Answer: /
7. From where can the passwd file be accessed?
Correct Answer: /etc/passwd
8. What is the correct syntax of 'find the passwd file'?
Correct Answer: Find-name /etc
9. If umask is 0022, what is the by default permission of a file?
Correct Answer: 644
10. What is the name of the file where groups are added?
Correct Answer: /etc/group
11. What is the correct format to open the file /etc/test into the vi editor?
Correct Answer: vi /etc/test
12. Which of the following options delete a current line in vi editor?
Correct Answer: Del
13. Which of the following syntax creates a softlink?
Correct Answer: $ ln -s /etc/test test
14. What does the head command do?
Correct Answer: It shows the first 10 lines
15. Command for custom oriented output on PS command is?
Correct Answer: ps -o
1. Linux operating system is valid for:
Correct Answer: Single and Multi Users
2. What is the use of MAKEWHATIS?
Correct Answer: Updating the database
3. Allen wants to see a long listing of files, and also the hidden files of the
current dir. What option will he choose with the ls command?
Correct Answer: Ls -al
4. What this command output of touch and what output show ls command after execu
ting the following command?
$ touch {report,graph}_{jan,proprietary,mar}
Correct Answer: Report_jan report_feb report_mar graph_jan graph_
feb graph_mar
5. What does the history command do?
Correct Answer: It displays the complete list of commands which have been execut
ed in the current session

6. Which command is used to add a new group?


Correct Answer: Groupadd
7. Which is the correct syntax to give permission 755 to the dir /etc/test?
Correct Answer: Chmod 755 /etc/test
8. Which of the following options discards changes and exits file in vi?
Correct Answer: Q
9. Which of the following options exits forcefully from vi editor without any ch
ange in the file?
Correct Answer: q!
10. What does the du command do?
Correct Answer: It shows disk usage
11. Which of the following is the 1st process in Linux?
Correct Answer: init
12. What does an aspell command do ?
Correct Answer: It gives the sequence of lines
1. What kind of software is Linux operating system?
Correct Answer: Proprietary Software
2. How many terminals are provided by default in Linux operating system?
Correct Answer: 6 virtual consoles and one virtual graphical interface
3. What is short form of GNU Network Object Model Environment?
Correct Answer: GNOME
4. If the fifth man page of inittab is to be viewed, how should it be displayed?
Correct Answer: Man 5 inittab
5. What does the cp command do in the following syntax?
$ cp /root/Desktop/abc /home/abc/
Correct Answer: It copys abc from /root/Desktop to /home/abc/ and changes the pa
th to /home/abc/abc
6. Which of the following is not the correct shell?
Correct Answer: Wsch

7. Which command is used to modify the user?


Correct Answer: Usermod
8. Which command changes permissions of files or directories?
Correct Answer: Chmod
9. What does permission 644 denote?
Correct Answer: Rw-r--r--
10. What does permission 777 denote?
Correct Answer: -rwxrwxrwx

11. When a file into vi editor /etc/test is opened, it will not be inserted. Whi
ch option should inserted before the cursor?
Correct Answer: i
12. Which of the following options saves the file and exits forcefully from vi e
ditor?
Correct Answer: Wq!
1. Who is the founder of Linux?
Correct Answer: Linus Torvalds
2. What is the most important aspect in Linux Operating System?
Correct Answer: Kernel
3. Linux operating system was installed in the morning. Can the WHATIS command b
e run without executing the command MAKEWHATIS by administrator?
Correct Answer: No

4. What does the command, # what is cal, do?


Correct Answer: It gives one line description about cal command
5. Which of the following is the path that contains documentation about installe
d packages?
Correct Answer: /usr/share/doc
6. Which of the following command-line options can be used to display a long lis
ting of files, with a human-readable size description(i.e.6.8M instead of 681946
7)?
Correct Answer: Ls -lh

7. How can the version of a Kernel be checked?


Correct Answer: Uname -r
8. Does linux support wildcard characters, regular expressions, and modifiers?
Correct Answer: Yes
9. What is the output of the following command?
$ man cal > cal.man
Correct Answer: The Man page of calendar will be redirected into named cal.man
10. Which command adds a new user?
Correct Answer: Useradd
11. Which of the following is an incorrect command?
Correct Answer: $ print /etc/passwd

Correct Answer: $ lprem /etc/passwd

12. Why is the wc command used?


Correct Answer: It counts lines and char from file
13. what does the fold command do
Correct Answer: print characters according to the count that you give as an argu
ment
1. What is the path of rc.sysinit?
Correct Answer: /etc/rc.d/rc.sysinit
2. What does the entry id:3:initdefault: define in /etc/inittab?
Correct Answer: System will boot by default in 3rd run level
3. Which of the following commands enables ip forwarding, and help it remain ena
ble permanent?
Correct Answer: Open /etc/sysctl.conf and insert net.ipv4_forward=1
4. What is proc file system?
Correct Answer: Virtual file system
5. If Debbie enables ip forwarding through the command,
# echo "1" > /proc/sys/net/ipv4/ip_forward, what will be the behavior of this co
mmand?
Correct Answer: Enable ip_forwarding and it will be temporary
6. A new swap partition is created and entered correctly in fstab. How will it b
e mounted?
Correct Answer: # swapon-a
7. How can ext3 filesystem be converted to ext2 filesystem, when partition is /d
ev/hda7?
Correct Answer: Tune2fs -O ^has_journal /dev/hda7.
8. How should a corrupted initrd be recreated?
Correct Answer: mkinitrd -f -v /boot/initrd-$(uname -r)img $(uname -r)
9. Which of the following files specify entry of gateway?
Correct Answer: /etc/sysconfig/network

Correct Answer: /etc/sysconfig/network-scripts/ifcfg-eth0


10. Which of the following is the location to get boot messages?
Correct Answer: /var/log/dmesg
11. Which step does not belong to xserver, if troubleshooting on the xserver is
done?
Correct Answer: $ check /usr permissions

12. How much space does bootloader take on the disk?


Correct Answer: 512Bytes

13. 12. How much space does bootloader take on the disk?
Correct Answer: 511Bytes
1. If permissions of rc.sysinit is changed from 655 to 444, what will happen dur
ing the next reboot?
Correct Answer: System will not boot
2. When the system is started, it shows Redhat Enterprise Linux. When the enter
key is pressed, its shows the grub prompt. The file system status is / , /boot.
Then swap is installed. How will the /boot partition at grub prompt and the inco
rrect entry found?
Correct Answer: GRUB> find /boot/grub.conf

Correct Answer: GRUB> find /grub/stage1

Correct Answer: GRUB> find /grub/stage2

3. Which file consists configuration of nic card when it is configured?


Correct Answer: /etc/sysconfig/hwdata
4. What problems will be faced during reboot, when permissions of tmp is 655, an
d by default is 1777?
Correct Answer: Xserver will not start

Correct Answer: Man pages will not work

5. What should be the command to view the detail of raid device /dev/md0?
Correct Answer: #mdadm --detail /dev/md0

Correct Answer: #cat /proc/mdstat


6. Which of the following denotes level Raid 0?
Correct Answer: Stripping
7. Which mode raid can be created during installation?
Correct Answer: Both
8. There are 3 disks of 1 GB each, with mean total 3 GB. If a raid level 5 is ma
de, then what will be the size of raid device?
Correct Answer: 2 GB
9. In which mode can LVM be created during installation?
Correct Answer: Gui only
10. Which of the following is the path where files are stored, when vgs are crea
ted, consisting of the complete information on vgs?
Correct Answer: /etc/lvm/backup/
11. Which statement correctly creates vg, named as vg0, when there are two parti
tions of 150 MB each, totalling 300MB /dev/hda6 /dev/hda7?
Correct Answer: Vgcreate vg0 /dev/hda6 /dev/hda7

12. Write a command to setquota on user Debbie. The path is /test, the size of q
uota is 5MB and soft linit is 4MB. The user is not allowed to use more than 5MB.
Correct Answer: Setquota Debbie 4096 5120 0 0 /test
1. If /root partition is installed on /dev/hda2, what defines hda2?
Correct Answer: 1st harddisk 2nd partition

2. What is the complete form of mbr?


Correct Answer: Memory boot record

3. A new partition /dev/hda6 has been created. How will it be formatted with ext
3 one block =1024, inode size=one inode every 2 blocks?
Correct Answer: Mke2fs -b 1024 -i 2048 -j /dev/hda6
4. How can ext2 filesystem be converted to ext3 filesystem, when partition is /d
ev/hda7?
Correct Answer: Tune2fs -j /dev/hda7
5. How can kernel-2.6.9-5 rpm be installed?
Correct Answer: # rpm -ivh kernel-2.6.9-5.rpm
6. What is correct format of kickstart installation through nfs, when nfsip is 1
92.168.0.254, and file pathon server is /kickstart/ks.cfg?
Correct Answer: linux ks=nfs:192.168.0.254:/kickstart/ks.cfg
7. Which entry is specified in /etc/resolv.conf ?
Correct Answer: Nameserver ip address
8. How many disks are required in raid level 5?
Correct Answer: Min 3
9. /dev/hda6 and /dev/hda7 are two partitions of 150MB each. What is the correct
statement to create physical volume?
Correct Answer: Pvcreate /dev/hda6 /dev/hda7
10. How is an lvm of 200MB created, when there are free vg0 of 300MB, named as l
v0?
Correct Answer: Lvcreate -L 200MB lv0 vg0
11. What should be done to extend lvm lv0 by 50MB, when we already have lvm name
d as lv0 of 200MB, vg0 of 100MB is available free, lv0 is mounted on /test conta
ining backup of home dir?
Correct Answer: Lvextend -L 50MB lv0

12. What is the command to show userquota details?


Correct Answer: Repquota -av

Vous aimerez peut-être aussi