1)when you create a user in linux , the default settings comes from -------------
2)name the DNS records
3)What is the difference between hard links and soft links
4)what is the difference between name base and ip base virtual hosting
5)where are the kernel parameters stored in linux
6) you want to deploy linux on identical machines , which method you will use
7)Name of the file which describe the kickstart installation
8) How you give another Ip address on the same NIC (network card)
9)you defined samba shares and you want these shares to be available on network , you don't want to restart samba server
which command you will use ??
10)you want to monitor systems on your network ,what utility you will use
11) you want to backup a test.bak file on 11 PM every Sunday what you will do?
12) can you define the linux boot process
13)what is initrd
14)can you name of the actual kernel in linux
15) how you get the kernel version
16)how you change run levels in linux
17) you want /dev/hda10 mounted whenever your system boots what you will do
18) you want bind to be run at boot time ,which command you will use
19)which utility will give you information about running process at run time
20) you want to know if nfs package is installed on your system
21) what is the difference between rpm , yum and RHEN
22) what is a proc directory
23) what is the difference between current directory and home directory
24)what is exit status in linux
25)you have a dual boot system with windows XP and Fedora Linux , you want to access windows partition which is on fat32 file system , what you will do ??
Wednesday, November 11, 2009
a paper for freshers
Linux : (Freshers) Paper 1
1. In Linux, how can you only see the first 14 lines of a file?
2. In Linux, what can you type at a command line to determine which shell you are using?
3. In Linux, what is the command to list ALL (hidden also) files of current directory & it’s subdirectories?
4. List out some popular linux distributions
Ans )
1. head -n 14
2. echo $SHELL
3. ls -Ra
4. fedora, redhat, ubuntu, suse
Networking : (freshers )
1. what is an ip address and what is the use of it?
2. Explain the 7 layers of OSI model with real time example?
Ans :
1. IP (Internet Protocol address) is a unique address and identifies the computers on a network.
2. OSI 7 LAYERS 1)PHYSICAL LAYER 2)DATALINK LAYER 3)NETWORK LAYER 4)TRANSPORT LAYER 5)SESSOIN LASYER 6)APPICATION LAYER 7)PRESENTION LAYER
Web : (freshers)
1. What does HTML stand for?
2. What does CSS stand for?
3. What does PHP stand for?
4. What does SQL stand for?
5. Which SQL statement is used to extract data from a database?
Ans :
1. Hyper Text Markup Language
2. Cascading Style Sheets
3. PHP: Hypertext Preprocessor
4. Structured Query Language
5. SELECT statement
1. In Linux, how can you only see the first 14 lines of a file?
2. In Linux, what can you type at a command line to determine which shell you are using?
3. In Linux, what is the command to list ALL (hidden also) files of current directory & it’s subdirectories?
4. List out some popular linux distributions
Ans )
1. head -n 14
2. echo $SHELL
3. ls -Ra
4. fedora, redhat, ubuntu, suse
Networking : (freshers )
1. what is an ip address and what is the use of it?
2. Explain the 7 layers of OSI model with real time example?
Ans :
1. IP (Internet Protocol address) is a unique address and identifies the computers on a network.
2. OSI 7 LAYERS 1)PHYSICAL LAYER 2)DATALINK LAYER 3)NETWORK LAYER 4)TRANSPORT LAYER 5)SESSOIN LASYER 6)APPICATION LAYER 7)PRESENTION LAYER
Web : (freshers)
1. What does HTML stand for?
2. What does CSS stand for?
3. What does PHP stand for?
4. What does SQL stand for?
5. Which SQL statement is used to extract data from a database?
Ans :
1. Hyper Text Markup Language
2. Cascading Style Sheets
3. PHP: Hypertext Preprocessor
4. Structured Query Language
5. SELECT statement
Monday, August 17, 2009
Linux Run-Levels Questions
Linux Run-Levels Questions
01. Linux has ______ different run levels ( or operating modes).
Ans : Seven
02. Describe all different run levels in Linux
Ans : Linux has 7 different run levels
* rc0.d - System Halted
* rc1.d - Single User Mode
* rc2.d - Single User Mode with Networking
* rc3.d - Multi-User Mode - boot up in text mode
* rc4.d - Not yet Defined
* rc5.d - Multi-User Mode - boot up in X Windows
* rc6.d - Shutdown & Reboot
03. In Redhat/fedora Linux __________ command updates and queries runlevel information for system services
ans: chkconfig
04. Under which folder the service run settings are kept for run level 3 _
ans : /etc/rc.d/rc3.d
05. All files under /etc/rc.d/rc3.d that start with a capital S are the services that will _____ at this runlevel.
A. Skip
B. Start
C. Share
D. None
Ans : B
06. In Linux, which command will shift one run level to other ?
Ans: init
07. In Linux(Redhat), default runlevel is defined in _____________ file
Ans : /etc/inittab
08. Scripts that define runlevel 5 can be found in ____________
Ans : /etc/rc.d/rc.4 or /etc/rc.d/rc4.d
09. In Debian/ubuntu Linux __________ command installs and remove System-V style init script links.
ans: update-rc.d
Ref :
* http://www.networkclue.com/os/Linux/run-levels.aspx
* http://linux.com/news/enterprise/systems-management/8116-an-introduction-to-services-runlevels-and-rcd-scripts
01. Linux has ______ different run levels ( or operating modes).
Ans : Seven
02. Describe all different run levels in Linux
Ans : Linux has 7 different run levels
* rc0.d - System Halted
* rc1.d - Single User Mode
* rc2.d - Single User Mode with Networking
* rc3.d - Multi-User Mode - boot up in text mode
* rc4.d - Not yet Defined
* rc5.d - Multi-User Mode - boot up in X Windows
* rc6.d - Shutdown & Reboot
03. In Redhat/fedora Linux __________ command updates and queries runlevel information for system services
ans: chkconfig
04. Under which folder the service run settings are kept for run level 3 _
ans : /etc/rc.d/rc3.d
05. All files under /etc/rc.d/rc3.d that start with a capital S are the services that will _____ at this runlevel.
A. Skip
B. Start
C. Share
D. None
Ans : B
06. In Linux, which command will shift one run level to other ?
Ans: init
07. In Linux(Redhat), default runlevel is defined in _____________ file
Ans : /etc/inittab
08. Scripts that define runlevel 5 can be found in ____________
Ans : /etc/rc.d/rc.4 or /etc/rc.d/rc4.d
09. In Debian/ubuntu Linux __________ command installs and remove System-V style init script links.
ans: update-rc.d
Ref :
* http://www.networkclue.com/os/Linux/run-levels.aspx
* http://linux.com/news/enterprise/systems-management/8116-an-introduction-to-services-runlevels-and-rcd-scripts
Saturday, August 15, 2009
LPI 102v part_007
061. You are working on a non graphical shell. What command would you use to configure the kernel using a menu system. Type the command and its argument(s).
Ans : make menuconfig
Explanation : They clearly state that this is a non graphical shell. Thus, you couldn't use the make xconfig utility here. The only way to accomplish configuring the kernel through a menu without the GUI is make menuconfig.
062. Which of the following correctly describe a Monolithic Kernel (choose all that apply ) :
A. it is built into one single binary.
B. it is loaded completely into memory at boot time.
C. it pre-dates micro-kernel architecture by at least ten years.
D. None of the choices
Ans : ABC
Explanation : Have everything they need in that binary. Are loaded completely into memory at boot time. Pre-date micro-kernel architecture by at least ten years.
063. Which of the following correctly describe a micro-kernal architecture (choose all that apply):
A. it has an extremely small core
B. only its small core remains in memory at all times.
C. its device drivers are loaded as-needed
D. None of the choices
Ans : ABC
Explanation : Miro-kernel architectures : Have an extremely small core. Only the small core remains in memory at all times. Device drivers and other additional items are loaded as-needed.
064. Rate this comment : Linux by and large is monolithic.
A. true
B. false
Ans : A
Explanation : Linux by and large is monolithic. However, Linux permits modules, a system whereby certain parts of the kernel may be loaded at runtime. Linux modules are reminiscent of micro-kernel architecture, but linux really remains basically a monolithic architecture.
065. On a debian system which of the following would build a boot disk
A. mkboot /dev/floopy
B. makeboot --device /dev/fd0 2.4.18-12
C. mkboot --device /dev/fd0 2.4.18-12
D. mkboot /boot/vmlinux-2.4.18-12
E. mkbootdisk /boot/vmlinux-2.4.18-12
Ans : D
066. On a Red Hat system, with a single floppy drive and a returned output from the uname command of 2.4.20-12, what exact command string will create a customized boot disk for this system ? Type the full command string to accomplish this.
Ans. mkbootdisk --device /dev/fd0 2.4.20-12
067. On a Debian-based system, what command will create a boot disk on the first floppy if your kernel image is named "vmlinux-2.4.18-4" ? Type the full command string to accomplish this.
Ans : mkboot vmlinux-2.4.18-4
or mkboot /boot/vmlinux-2.4.18-4
068. You want to create a boot floppy using a given image file on your hard disk. What utility would you use to do so ?
Ans : mkbootdisk --device /dev/fd0 `uname -r`
069. To exclude all log messages of a given logging facility, you should use a logging priority of :
Ans : none
070. You are having some trouble with a disk partition and you need to do maintenance on this partition but your users home directories are on it and several are logged in. Which command would disconnect the users and allow you to safely execute maintenance tasks ?
A. telinit 1
B. shutdown -r now
C. killall -9 inetd
D. /bin/netshop --maint
E. /etc/rc.d/init.d/network stop
Ans : E
Ans : make menuconfig
Explanation : They clearly state that this is a non graphical shell. Thus, you couldn't use the make xconfig utility here. The only way to accomplish configuring the kernel through a menu without the GUI is make menuconfig.
062. Which of the following correctly describe a Monolithic Kernel (choose all that apply ) :
A. it is built into one single binary.
B. it is loaded completely into memory at boot time.
C. it pre-dates micro-kernel architecture by at least ten years.
D. None of the choices
Ans : ABC
Explanation : Have everything they need in that binary. Are loaded completely into memory at boot time. Pre-date micro-kernel architecture by at least ten years.
063. Which of the following correctly describe a micro-kernal architecture (choose all that apply):
A. it has an extremely small core
B. only its small core remains in memory at all times.
C. its device drivers are loaded as-needed
D. None of the choices
Ans : ABC
Explanation : Miro-kernel architectures : Have an extremely small core. Only the small core remains in memory at all times. Device drivers and other additional items are loaded as-needed.
064. Rate this comment : Linux by and large is monolithic.
A. true
B. false
Ans : A
Explanation : Linux by and large is monolithic. However, Linux permits modules, a system whereby certain parts of the kernel may be loaded at runtime. Linux modules are reminiscent of micro-kernel architecture, but linux really remains basically a monolithic architecture.
065. On a debian system which of the following would build a boot disk
A. mkboot /dev/floopy
B. makeboot --device /dev/fd0 2.4.18-12
C. mkboot --device /dev/fd0 2.4.18-12
D. mkboot /boot/vmlinux-2.4.18-12
E. mkbootdisk /boot/vmlinux-2.4.18-12
Ans : D
066. On a Red Hat system, with a single floppy drive and a returned output from the uname command of 2.4.20-12, what exact command string will create a customized boot disk for this system ? Type the full command string to accomplish this.
Ans. mkbootdisk --device /dev/fd0 2.4.20-12
067. On a Debian-based system, what command will create a boot disk on the first floppy if your kernel image is named "vmlinux-2.4.18-4" ? Type the full command string to accomplish this.
Ans : mkboot vmlinux-2.4.18-4
or mkboot /boot/vmlinux-2.4.18-4
068. You want to create a boot floppy using a given image file on your hard disk. What utility would you use to do so ?
Ans : mkbootdisk --device /dev/fd0 `uname -r`
069. To exclude all log messages of a given logging facility, you should use a logging priority of :
Ans : none
070. You are having some trouble with a disk partition and you need to do maintenance on this partition but your users home directories are on it and several are logged in. Which command would disconnect the users and allow you to safely execute maintenance tasks ?
A. telinit 1
B. shutdown -r now
C. killall -9 inetd
D. /bin/netshop --maint
E. /etc/rc.d/init.d/network stop
Ans : E
LPI 102v part_006
051. Which of the following insures that all of the dependencies, such as the include files, are in place?
A. make dep
B. make clean
C. make_dep
D. make_install
Ans : A
Explanation : When the configure script ends, it also tells you to 'make dep' and (possibly) 'clean'. So, do the 'make dep'. This insures that all of the dependencies, such the include files, are in place. It does not take long, unless your computer is fairly slow to begin with. For older versions of the kernel, when finished, you should do a 'make clean'. This removes all of the object files and some other things that an old version leaves behind. in any case, do not forget this step before attempting to recompile a kernel.
052. Incremental upgrades of the kernel are distributed as :
A. patches
B. fixes
C. hotfixes
D. service packs
Ans : A
Explanation : Incremental upgrades of the kernel are distributed as patches.
053. Which of the following removes all of the object files and some other things that an old version leaves behind ?
A. make dep
B. make clean
C. make_deb
D. make_install
Ans : B
Explanation : When the configure script ends, it also tells you to 'make dep' and (possibly) 'clean'. So, do the 'make dep'. This insures that all of the dependencies, such the include files, are in place. It does not take long, unless your computer is fairly slow to begin with. For older versions of the kernel, when finished, you should do a 'make clean'. This remove all of the object files and some other things that an ond version leaves behind. In any case, do not forget this step before attempting to recompile a kernel.
054. What command will compile the Linux kernel and leave a file in arch/i386/boot called bzImage?
A. make bzImage
B. make compile
C. make Image
D. make bzdisk
Ans : A
Explanation : After depending and cleaning, you may now 'make bzImage' or 'make bzdisk' (this is the part that takes a long time. ). 'make bzImage' will compile the kernel, and leave a file in arch/i386/boot called 'bzImage' (among other things). This is the new compressed kernel. 'make bzdis' does the same thing, but also places the new bzImage on a floppy disk which you hopefully but in drive ''A:''. 'bzdisk' is fairly handy for Certkiller new kernel; if it bombs (or just' work right), just remove the floppy and boot with your old kernel. It can also be a handy way to boot if you accidentally remove your kernel (or something equvally as dreadful).
055. What command will compile the Linux kernel and leave a file called bzImage in the floppy disk ?
A. make bzImage
B. make compile
C. make Image
D. make bzDisk
Ans : D
Explanation : After depending and cleaning, you may now 'make bzImage' or 'make bzdisk' (this is the part that takes a long time. ). 'make bzImage' will compile the kernel, and leave a file in arch/i386/boot called 'bzImage' (among other things). This is the new compressed kernel. 'make bzdis' does the same thing, but also places the new bzImage on a floppy disk which you hopefully but in drive ''A:''. 'bzdisk' is fairly handy for Certkiller new kernel; if it bombs (or just' work right), just remove the floppy and boot with your old kernel. It can also be a handy way to boot if you accidentally remove your kernel (or something equvally as dreadful).
056. Which of the following command will attempt to configure the kernel from an old configuration file and run through the make config process for you ?
A. make oldconfig
B. make newconfig
C. make clean
D. None of the choices
Ans : A
Explanation : Make oldconfig will attempt to configure the kernel from an old configure file; it will run through make config process for you if you havent ever compiled a kernel befor or don't have an old config file, then you probably should't do this, as you will most likely want to change the default configuration.
057. To produce a compiled kernel with slightly better than standard compressio, type the command with and options and arguments to accomplish just the compilation.
Ans: make bzImage
058. You are using X and wish to build a new kernel. What x tool would you use to build the .config file. Type in just the command, not the switches:
Ans : make xconfig
059. Type in the command to compile a kernel image with normal compression :
Ans : make zImage
060. Which of the following is not a valid make command during a kernel recompile ?
A. make dep
B. make clean
C. make xconfig
D. make modules
E. make gzlilo
Ans : E
A. make dep
B. make clean
C. make_dep
D. make_install
Ans : A
Explanation : When the configure script ends, it also tells you to 'make dep' and (possibly) 'clean'. So, do the 'make dep'. This insures that all of the dependencies, such the include files, are in place. It does not take long, unless your computer is fairly slow to begin with. For older versions of the kernel, when finished, you should do a 'make clean'. This removes all of the object files and some other things that an old version leaves behind. in any case, do not forget this step before attempting to recompile a kernel.
052. Incremental upgrades of the kernel are distributed as :
A. patches
B. fixes
C. hotfixes
D. service packs
Ans : A
Explanation : Incremental upgrades of the kernel are distributed as patches.
053. Which of the following removes all of the object files and some other things that an old version leaves behind ?
A. make dep
B. make clean
C. make_deb
D. make_install
Ans : B
Explanation : When the configure script ends, it also tells you to 'make dep' and (possibly) 'clean'. So, do the 'make dep'. This insures that all of the dependencies, such the include files, are in place. It does not take long, unless your computer is fairly slow to begin with. For older versions of the kernel, when finished, you should do a 'make clean'. This remove all of the object files and some other things that an ond version leaves behind. In any case, do not forget this step before attempting to recompile a kernel.
054. What command will compile the Linux kernel and leave a file in arch/i386/boot called bzImage?
A. make bzImage
B. make compile
C. make Image
D. make bzdisk
Ans : A
Explanation : After depending and cleaning, you may now 'make bzImage' or 'make bzdisk' (this is the part that takes a long time. ). 'make bzImage' will compile the kernel, and leave a file in arch/i386/boot called 'bzImage' (among other things). This is the new compressed kernel. 'make bzdis' does the same thing, but also places the new bzImage on a floppy disk which you hopefully but in drive ''A:''. 'bzdisk' is fairly handy for Certkiller new kernel; if it bombs (or just' work right), just remove the floppy and boot with your old kernel. It can also be a handy way to boot if you accidentally remove your kernel (or something equvally as dreadful).
055. What command will compile the Linux kernel and leave a file called bzImage in the floppy disk ?
A. make bzImage
B. make compile
C. make Image
D. make bzDisk
Ans : D
Explanation : After depending and cleaning, you may now 'make bzImage' or 'make bzdisk' (this is the part that takes a long time. ). 'make bzImage' will compile the kernel, and leave a file in arch/i386/boot called 'bzImage' (among other things). This is the new compressed kernel. 'make bzdis' does the same thing, but also places the new bzImage on a floppy disk which you hopefully but in drive ''A:''. 'bzdisk' is fairly handy for Certkiller new kernel; if it bombs (or just' work right), just remove the floppy and boot with your old kernel. It can also be a handy way to boot if you accidentally remove your kernel (or something equvally as dreadful).
056. Which of the following command will attempt to configure the kernel from an old configuration file and run through the make config process for you ?
A. make oldconfig
B. make newconfig
C. make clean
D. None of the choices
Ans : A
Explanation : Make oldconfig will attempt to configure the kernel from an old configure file; it will run through make config process for you if you havent ever compiled a kernel befor or don't have an old config file, then you probably should't do this, as you will most likely want to change the default configuration.
057. To produce a compiled kernel with slightly better than standard compressio, type the command with and options and arguments to accomplish just the compilation.
Ans: make bzImage
058. You are using X and wish to build a new kernel. What x tool would you use to build the .config file. Type in just the command, not the switches:
Ans : make xconfig
059. Type in the command to compile a kernel image with normal compression :
Ans : make zImage
060. Which of the following is not a valid make command during a kernel recompile ?
A. make dep
B. make clean
C. make xconfig
D. make modules
E. make gzlilo
Ans : E
LPI 102v part_005
041. The command "make config" requires bash.
A. True
B. false
Ans : A
Explanation : The command 'make config' while in /usr/src/linux starts a configure script which asks you many questions. It requires bash, so verify that bash is /bin/bash, /bin/sh, or $BASH.
042. If you need to view per-user space usage on a filesystem, the _____ command can provide that information if the kernel is build to support it.
Ans : du
043. Rate this advice : In order to use the latest kernel, it is necessary to first upgrade to the newest utilities and libraries.
A. True
B. False
Ans : A
Explanation : In order to use the latest kernel, it is first necessary to upgrade to the newest utilities and libraries.
044. What is the name of the Kernel configuration file ? Type just the filename.
Ans : .config
045. GNU Make determines which pieces of a large program need to be recompiled and issues the commands to recompile them when necessary.
A. true
B. false
Ans : A
Explanation : GNU Make is a program that determines which pieces of a large program need to be recompiled and issues the commands to recompile them, when necessary.
046. What does "make bzImage" do as opposed to "make zImage"?
A. make a bz encrypted kernel
B. makes a kernel with a better compression ratio
C. makes a kernel with build in gzip application
D. nothing
Ans : B
047. You have just recompiled a new kernel and rebooted your system with the new kernel. Unfortunately you are getting "Can't locate module" error message. which of the following is most likely to be the source of the problem ?
A. You copied the modules to the worng directory.
B. YOu did not configure modular support into the kernel.
C. You did not run depmod after installing the modules.
D. You did not install the modules
Ans : B
Explanation : If you get two choose - than take D as second answer.
048. When preparing to compile a new kernel, which of the following commands can be used to create the configuration file ?
A. make config
B. make kernel
C. ./configure
D. make kernelconfig
E. [Kernel Source Path]/Configure
Ans : A
049. If your new kernel does not behave normally after a routine kernel upgrade, chances are that you forgot to _____ before compiling the new kernel.
A. make clean
B. make shot
C. make clear
D. make remove
Ans : A
Explanation : If your new kernel does really weird things after a routine kernel upgrade, chances are you forgot to make clean before compiling the new kernel. Symptoms can be anything from your system outright crashing, strange I/O problems, to crummy performance. Make sure you do a make dep, too.
050. Upgrading a kernel involves which of the following tasks (choose all that apply):
A. configuring the desired modules
B. compiling the kernel and modules
C. installing the kernel image
D. conducting a system reboot
Ans : ABCD
Explanation : Upgrading the kernel involves configuring desired modules, compiling the kernel and modules, and finally installing the kernel image. This is followed by a system reboot (with fingers crossed !) to load the new kernel. All of this is documented in the ''README'' file which comes with each kernel package. Further information can be found in the 'Documentation/'' subdirectory. A particularly helpful file there is ''configure.help'' which contains detailed information on the available kernel compile options and modules.
A. True
B. false
Ans : A
Explanation : The command 'make config' while in /usr/src/linux starts a configure script which asks you many questions. It requires bash, so verify that bash is /bin/bash, /bin/sh, or $BASH.
042. If you need to view per-user space usage on a filesystem, the _____ command can provide that information if the kernel is build to support it.
Ans : du
043. Rate this advice : In order to use the latest kernel, it is necessary to first upgrade to the newest utilities and libraries.
A. True
B. False
Ans : A
Explanation : In order to use the latest kernel, it is first necessary to upgrade to the newest utilities and libraries.
044. What is the name of the Kernel configuration file ? Type just the filename.
Ans : .config
045. GNU Make determines which pieces of a large program need to be recompiled and issues the commands to recompile them when necessary.
A. true
B. false
Ans : A
Explanation : GNU Make is a program that determines which pieces of a large program need to be recompiled and issues the commands to recompile them, when necessary.
046. What does "make bzImage" do as opposed to "make zImage"?
A. make a bz encrypted kernel
B. makes a kernel with a better compression ratio
C. makes a kernel with build in gzip application
D. nothing
Ans : B
047. You have just recompiled a new kernel and rebooted your system with the new kernel. Unfortunately you are getting "Can't locate module" error message. which of the following is most likely to be the source of the problem ?
A. You copied the modules to the worng directory.
B. YOu did not configure modular support into the kernel.
C. You did not run depmod after installing the modules.
D. You did not install the modules
Ans : B
Explanation : If you get two choose - than take D as second answer.
048. When preparing to compile a new kernel, which of the following commands can be used to create the configuration file ?
A. make config
B. make kernel
C. ./configure
D. make kernelconfig
E. [Kernel Source Path]/Configure
Ans : A
049. If your new kernel does not behave normally after a routine kernel upgrade, chances are that you forgot to _____ before compiling the new kernel.
A. make clean
B. make shot
C. make clear
D. make remove
Ans : A
Explanation : If your new kernel does really weird things after a routine kernel upgrade, chances are you forgot to make clean before compiling the new kernel. Symptoms can be anything from your system outright crashing, strange I/O problems, to crummy performance. Make sure you do a make dep, too.
050. Upgrading a kernel involves which of the following tasks (choose all that apply):
A. configuring the desired modules
B. compiling the kernel and modules
C. installing the kernel image
D. conducting a system reboot
Ans : ABCD
Explanation : Upgrading the kernel involves configuring desired modules, compiling the kernel and modules, and finally installing the kernel image. This is followed by a system reboot (with fingers crossed !) to load the new kernel. All of this is documented in the ''README'' file which comes with each kernel package. Further information can be found in the 'Documentation/'' subdirectory. A particularly helpful file there is ''configure.help'' which contains detailed information on the available kernel compile options and modules.
LPI 102v part_004
031. You wish to install the module fat.o into the kernel. Type in the simplest command to do this, assuming there are no dependencies for this module :
Ans : insmod fat
032. What modprobe option will cause inactive kernel modules to be unloaded ?
A. autoclean
B. incative
C. remove
D. timeout
E. holdoff
Ans : A
033. You are using insmod. You do not want to use the default configuration file /etc/ modules.conf. What environment variable should you modify ?
Ans : MODULECONF
Explanation : The environment variable MODULECONF can also be used to select a different configuration file from the default /etc/modules.conf (or /etc/conf.modules (deprecated)). This environment variable will override all the definitions above.
034. You can find out how much memory the kernel is using by taking the total amount of memory in your machine and subtracting from it the amount of :
A. "total mem" in /proc/meminfo
B. "total mem" in /proc/memused
C. "total mem" in /proc/memcurrent
D. Note of the choices
Ans : A
Explanation : You can find out how much memory the kernel is using by taking the total amount of memory in your machine and subtracting from it the amount of 'total mem' in /proc/meminfo or the output of the command 'free'.
035. What command will load groups fo modules into the kernel as needed ?
Ans : modprobe
036. If the module file name is given without directories or extension, insmod will search for the module in some common default directories. what environment variable can be used to override this ?
Ans : MODPATH
Explanation : If the module file name is given without directories or extension, insmod will search for the module in some common default directories. The environment variable MODPATH can be used to override this default. If a module configuration file such as /etc/modules.conf, it will override the paths defined in MODPATH.
037. Which of the following could be used to load kernel modules for a 2.4.x kernel ?
A. vi/proc/modules
B. rmmod
C. kmod
D. depmod
Ans : C
038. Loadable kernel modules can (choose all that apply ) :
A. Save memory
B. ease configuration
C. include filesystems
D. include ethernet card drivers
Ans : ABCD
Explanation : Loadable kernel modules can save memory and ease configuration. The scope of modules has grown to include filesystems, ethernet card drivers, tape drivers, printer drivers, and more.
039. What command would rebuild the ld.so cache file ?
A. ldd
B. ldconfig
C. ld.so.cache -rebuild
D. ld
Ans : B
40. What file should be edited to make the system aware of newly added library files ?
A. /etc/modules.conf
B. /etc/conf.modules
C. /etc/ld.so.conf
D. /etc/ld.so.cache
E. /etc/LD_LIBRARY_PATH.conf
Ans : C
Ans : insmod fat
032. What modprobe option will cause inactive kernel modules to be unloaded ?
A. autoclean
B. incative
C. remove
D. timeout
E. holdoff
Ans : A
033. You are using insmod. You do not want to use the default configuration file /etc/ modules.conf. What environment variable should you modify ?
Ans : MODULECONF
Explanation : The environment variable MODULECONF can also be used to select a different configuration file from the default /etc/modules.conf (or /etc/conf.modules (deprecated)). This environment variable will override all the definitions above.
034. You can find out how much memory the kernel is using by taking the total amount of memory in your machine and subtracting from it the amount of :
A. "total mem" in /proc/meminfo
B. "total mem" in /proc/memused
C. "total mem" in /proc/memcurrent
D. Note of the choices
Ans : A
Explanation : You can find out how much memory the kernel is using by taking the total amount of memory in your machine and subtracting from it the amount of 'total mem' in /proc/meminfo or the output of the command 'free'.
035. What command will load groups fo modules into the kernel as needed ?
Ans : modprobe
036. If the module file name is given without directories or extension, insmod will search for the module in some common default directories. what environment variable can be used to override this ?
Ans : MODPATH
Explanation : If the module file name is given without directories or extension, insmod will search for the module in some common default directories. The environment variable MODPATH can be used to override this default. If a module configuration file such as /etc/modules.conf, it will override the paths defined in MODPATH.
037. Which of the following could be used to load kernel modules for a 2.4.x kernel ?
A. vi/proc/modules
B. rmmod
C. kmod
D. depmod
Ans : C
038. Loadable kernel modules can (choose all that apply ) :
A. Save memory
B. ease configuration
C. include filesystems
D. include ethernet card drivers
Ans : ABCD
Explanation : Loadable kernel modules can save memory and ease configuration. The scope of modules has grown to include filesystems, ethernet card drivers, tape drivers, printer drivers, and more.
039. What command would rebuild the ld.so cache file ?
A. ldd
B. ldconfig
C. ld.so.cache -rebuild
D. ld
Ans : B
40. What file should be edited to make the system aware of newly added library files ?
A. /etc/modules.conf
B. /etc/conf.modules
C. /etc/ld.so.conf
D. /etc/ld.so.cache
E. /etc/LD_LIBRARY_PATH.conf
Ans : C
Subscribe to:
Posts (Atom)