Monday, June 5, 2017

Linux questions


1. What does GPL mean? A. General Public License B. Generic Public License C. GNU Public License
D. Good Public License

2. Red Hat Package Manager uses which of the following extensions?
A. .tar.gz B. .rpm C. .deb D. .tar

3. What does NAT stands for?
A. Network Advertised Translation
B. Network Address Translation
C. Network Address Transport
D. Network Acceptable Translation


4. Which of the following packages is used to provide file sharing?
A. Samba B. Squid C. KRUD D. Apache

5. What is the minimum recommended swap partition size on a system with 512
MB of RAM?
A. 256 MB B. 1024 MB C. 512 MB D. 768 MB


6. Where are the automatically mounted file systems listed?
A. /etc/lilo.conf
B. /etc/fstab
C. /etc/inittab
D. /etc/syslog.conf

7. Where are most of the boot-up log files kept?
A. /etc/log/ B. /var/log/ C. /sbin/log/ D. /root/log/


8. What is the most common Linux Web server in use today?
A. IIS
B. Tux
C. FastTrack
D. Apache


9. What key combination will exit VI and not save the changes made?
A. : ! B. : u! C. : w! D. : q!


10. What VI command is used to exit the edit mode?
A. q
B. w
C. <esc>
D. !


11. Which of the following indicates that the shell is BASH?
A. SHELL=/bin/bash
B. SHELL=/bin/bashshell
C. SHELL=/bin/BASH
D. SHELL=/etc/bash


12. What command will display the directory path that is currently in use?
A. dir
B. shell
C. path
D. pwd


13.Which command will list all the files and sub-directories in a directory and include the access rights?
A. ls -a B. ls -n C. ls -l D. ls -i

14. Which command line will copy the file named myfile from the home directory of user john to the /tmp directory?
A. [john@dhcppc1 /]$ cp myfile /tmp/
B. [bob@dhcppc1 bob]$ cp /home/john/myfile /tmp/ C. [john@dhcppc1 john]$ cp /home/john /myfile /tmp/ D. [john@dhcppc1 john]$ cp /john/myfile /tmp/




15.What is the maximum amount of swap memory that can be accessed by a linux system? A.   2GB
B.   4GB
C.   16GB D.   64GB

16.Which command is used to create a Linux file system? A.   Fdisk
B.   Mke2fs
C.   Mkswap
D.   Mount


17.Which Unix command rename a file? A.   cp
B.   mv
C.   rename
D.   rn


18.To redirect the output of command x as the input of command y,Which command do you use? A.   X<y
B.   x>y
C.   x >>y
D.   x l y


19.Which of the following can provide a TCP/IP services? A.   A continuously running daemon
B.   A daemon started when needed
C.   The kernel
D.   A pseudo-tty

20.Which of the following was the principal author of the Linux kernel? A.   Dennis Ritchie
B.   Andrew Tannenbaum
C.   Ken Thompson
D.   Linus Torvalds


21.Which of the following versions numbers would denote a stable Linux kernel?
A.
1.1
B.
1.2
C.
2.1
D.
2.2


22.Which of the following sources of the installation media is supported by the installation procedures graphical mode installation user interface?
A.   FTP
B.   HTTP C.   NFS
D.   SMB(Samba)

23.Which runlevel causes an X-based login to apper when when the system is booted?
A.
2
B.
3
C.
4
D.
5

24.Suppose that a user owns 150 inodes and that the soft limit is 200.Which of the following is correct if the grace period has not expired?
A.   The user can create no more files.
B.   The user can not append data to an  existing file.
C.   The user can not log off without deleting some files. D.   The user will receive an e-mail notice of violation.

25.Which of the following commands lets you set a user’s quota? A.   edquota
B.   edquota user
C.   edquota –p user
D.   edquota –u user


26.What is the name of the file created when group quotas are used? A.   quota
B.   quota.group C.   quota.user D.   quotas

27.Which of the following commands uninstalls the package xyz.rpm
A.  rpm –e xyz.rpm
B.  rpm –i xyz.rpm
C.  rpm –u xyz.rpm
D.  rpm –U  xyz.rpm

28.To list the name of each installed package,issue the command. A.  rpm –q
B.  rpm –qa
C.  rpm –qi
D.  rpm -qp

29.which of the following are essential system directories? A.   /bin
B.   /etc
C.   /usr/bin
D.   /var/log

30.what is the default directory that contains the Linux Kernel? A.   /
B.   /boot C.   /dev D.   /sbin

31.which file contains the system startup information? A.   /etc/inetd.conf
B.   /etc/inittab
C.   /usr/etc/inetd.conf
D.   /usr/etc/inittab

32.What script invokes the runlevel scripts? A.   /etc/rc.d/rc
B.   /etc/rc.d/rc.local C.   /etc/rc.d/rc.serial D.   /etc/rc.d/rc.sysinit

33. To add Ethernet device eth1 with IP address 192.168.1.1 which of the following commands should be issued? A.   ifconfig – ip 192.168.1.1 eth1
B.   ifconfig 192.168.1.1 eth1
C.   ifonfig eth1 192.168.1.1
D.   ifconfig eth1 – ip 192.168.1.1

34.To view the kernel’s routing table ,which of the following commands should be issued? A.   netstat – i
B.   netstat – m C.   netstat – M D.   netstat -r

35.which of the following commands brings up the device eth2? A.   ifup eth2
B.   ifup ifcfg-eth2
C.   ifup /etc/sysconfig/eth2
D.   ifup /etc/sysconfig/network-scripts/eth2

36.Which of the following commands will reboot the system? A.   init 6
B.   reboot
C.   shutdown –r now
D.   telinit 6

37.What is the minor version number of Linux 2.4.5-6?
A.
2
B.
4
C.
5
D.
6

38.What command diplays the version number of the running Linux kernel? A.   dmesg
B.   motd
C.   uname -r
D.   w

39.To list the existing partitions of the local hard drives,which of the following should be issued? A.   fdisk –l
B.   fdisk –p C.   fdisk –lp D.   fdisk -r

40.Which of the following is the number of a privileged port?
A.
1
B.
100
C.
1000
D.
10000

41.what files can an anonymous FTP user access?
A.   Files and directories in the home directory of the user ftp
B.   Files in any world-readable directory
C.   File in the /tmp directory
D.   Files readable via the user’s account

42.which of the following are primary Red Hat Linux desktop environments? A.   Afterstep
B.   Ratpoison C.   GNOME D.   KDE

43.If X is started via startx, X will attempt to source which of the following files? A.   ~/.startx
B.   ~/.xinitrc
C.   ~/.xrc
D.   ~/.Xsession

44.which of the following mount points must be present in a Linux system? A.   /
B.   /boot C.   /usr D.   /var


45.Which of the following commands will replace package xyz if that package is already installed?
A.  rpm –i xyz B.   rpm –f  xyz C.   rpm –F xyz D.   rpm –U xyz

46.How many members does the default group of a newly created ordinary user contain?
A.
1
B.
2
C.
3
D.
4

47.Which of the following key sequences typically switches from a virtual console to X ? A.   CTRL-ALT-F1
B.   CTRL-ALT-F3
C.   CTRL-ALT-F7
D.   CTRL-ALT-F8

48.What is a mount points?
A.   The device file associated with a removable device
B.   The directory associated with a mountable device
C.   The side of a floppy diskettee inserted into the drive
D.   The time at which you insert the installation media

49.Which of the following authentication options should normaly be set? A.   MD5 passwards
B.   NIS domain
C.   NIS server
D.   Shadow passwords

50.Why should you creat a boot disk?
A.   Creating the boot disk proves Linux is properly installed
B.   You can use it to boot ypur syatem.

C.   You can not boot the system from the hard drive until installation is complete. 
D.   You can not create one after installation is complete.

0 Comments: