The assessment test is an excellent way to test yourself before starting to study. It gives you an idea of where you should start and why.
In an assessment test, test your current skills from beginning to advance lever for any subject or topic to check “what do you know and from where you should start learning?”
Here I have put some basic questions for Linux assessment, so you can test your Linux skill and choose right path for Linux Learning.
1. What would you expect to see if you type uname -a?
- Information on the username of the current user, including the user’s real name
- Information on the running system, such as the OS, the kernel version, and the CPU type
- Information on the computer’s hostname, as it’s defined locally
- Information on the loaded kernel modules, including the modules upon which they depend
2. What line in /etc/inittab would indicate that your default runlevel is 5?
- ca:12345:ctrlaltdel:/sbin/shutdown –t1 –a –r now
- ls:5:wait:/etc/init.d/rc 5
3. What is the most important practical difference between insmod and modprobe?
- Insmod unloads a single module, whereas modprobe loads a single module.
- Insmod loads a single module, whereas modprobe loads a module and all those upon which it depends.
- Insmod isn’t a real Linux command, but modprobe loads a module and all those upon which it depends.
- Insmod loads a single module, whereas modprobe displays information about modules.
4. Which runlevels are reserved by init for reboot, shutdown, and single user mode purpose?
5. You type the command rmmod ide_core, but the system responds with the message ERROR: Module ide_core is in use by via82cxxx, ide_cd, ide_disk. What is the meaning of this response?
- The via82cxxx, ide_cd, and ide_disk modules all rely on ide_core, so ide_core can’t be unloaded without first unloading these other modules.
- The ide_core module relies on via82cxxx, ide_cd, and ide_disk modules, so they can’t be unloaded without first unloading ide_core.
- The ide_core module is a core module, meaning that it can never be unloaded once it’s loaded.
- The ide_core module is buggy or the rmmod utility is broken; it should never return an error message.
6. You type the following command:
What can you tell about your runlevel status? [Select all that apply.]
- The current runlevel is 5
- The current runlevel is 3
- The previous runlevel is 5
- The previous runlevel is 3
7. What fileor files might you edit to change the options that are automatically passed to kernel modules? [Select all that apply.]
- Files in the /etc/modules.d directory
- Modules.dep in the modules directory
- .config in the kernel directory
8. What is the best location for the current directory indicator (.) to reside in root’s PATH environment variable?
- Before all other directories.
- After all other directories.
- Nowwhere; it shouldn’t be in root’s path.
- Wherever is convenient.
9. Which of the following commands would you type to configure a Linux kernel using an interactive text-mode tool?
- make xconfig
- make menuconfig
- make config
- make textconfig
10. You want to create a shortcut for the command cd ~/papers/trade. Which of the following lines, if entered in a bash startup script, will accomplish this goal?
- alias cdpt=’cd ~/papers/trade’
- export cdpt=’cd ~/papers/trade’
- cd ~/papers/trade
- shortcut cdpt “cd ~/papers/trade’
11. Which of the following kernel features should you compile into the main kernel file of a regular disk-based installation to simplify booting the system? [Select all that apply.]
- Drivers for your boot disk’s ATA controller or SCSI host adapter
- Support for your root (/) filesystem
- Drivers for your RS-232 serial port
- Drivers for your CD-ROM drive
12. In what environment variable is the current working directory stored?
13. What is the conventional name for a locally compiled Linux kernel on an x86 system?
14. Which of the following commands, if typed in a bash shell, will create an environment variable called MYVAR with the contents mystuff?
- export MYVAR=’mystuff’
- echo $MYVAR mystuff
15. Where might the BIOS find a boot loader?
16. After using a text editor to create a shell script, what step should you take before trying to use the script?
- Set one or more executable bits using chmod.
- Copy the script to the /usr/bin/scripts directory.
- Compile the script by typing bash scriptname, where scriptname is the script’s name.
- Run a virus checker on the script to be sure it contains no viruses.
17. Which of the following is the LILO boot loader configuration file?
- The MBR
18. Describe the effect of the following short script, cpl, if it’s called as cpl big.c big.cc:
Cp $2 $1
- It has the same effect as the cp command –copying the contents of big.c to big.cc
- It compiles the C program big.c and calls the result big.cc.
- It copies the contents of big.cc to big.c, eliminating the old big.c.
- It converts the C program big.c into a C++ program called big.cc.
19. Which command is used to install GRUB into the MBR of your first ATA hard drive?
- grub (hd0,1)
- grub-install /dev/hda1
- lilo /dev/had
- grub-install /dev/had
20. What is the purpose of conditional expressions in shell scripts?
- They prevent scripts from executing if license conditions aren’t met.
- They display information on the script’s computer environment.
- They enable the script to take different actions in response to variable data.
- They enable scripts to learn in a manner reminiscent of Pavlovian conditioning.
7. b, c
12. a, d
13. a, b
16. a, b, d