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. Which of the following is not an advantage of a source package over a binary package?
- A single source package can be used on multiple CPU architectures.
- By recompiling a source package, you can sometimes work around library incompatibilities.
- You can modify the code in a source package, altering the behaviour of a program.
- Source packages can be installed more quickly than binary packages can.
2. Which of the following is the default destination format when using alien?
- Debian package
- Stampede package
3. Which is true of using both RPM and Debian package management systems on one computer?
- It’s generally inadvisable because the two systems don’t share installed file database information.
- It’s impossible because their installed file database conflict with one aother.
- It causes no problems if you installed important libraries once in each format.
- It’s a common practice on Red Hat and Debian systems.
4. How do you select packages for installation using dselect?
- You highlight the package in the selection list and press the plus (+) key.
- You right-click the package name with the mouse and select the Mark for Installation option.
- You highlight the package in the selection list and press the spacebar key.
- You click the package name with the mouse and pick the install -> Package option from the main menu.
5. Which of the following statement is true about binary RPM packages that are built for a particular distribution?
- They can often be used on another RPM-based distribution for the same CPU architecture, but this isn’t guaranteed.
- They may be used in another RPM-based distribution only when you set the –convert-distrib parameter to rpm.
- They may be used in another RPM-based distribution only after you convert the package with alien.
- They can be recompiled for an RPM-based distribution running on another type of CPU.
6. As root, you type apt-get update on a debian system. What should be the effect of this command?
- None; update is an invalid option to apt-get.
- The APT utilities deliver information on the latest updates you’ve made to the APT Internet repositories, enabling you to share your changes with others.
- The APT utilities download all available upgrades for your installed programs and install them on your system.
- The APT utilities retrieve information on the latest packages available so that you may install them with subsequent apt-get commands.
7. Which is true of source RPM packages?
- They consist of three files: an origianl source tarball, a patch file of changes, and a PGP signature indicating the authenticity of the package.
- They require programming knowladge to rebuild.
- They can sometimes be used to work around dependency problems with a binary package.
- They are necessary to compile software for RPM-based distributions.
8. Which of the following commands would you use to extract the content of the test-2.5.tbz source code tarball? [select all that apply.]
- tar xvjf test-2.5.tbz
- bunzip2 -c test-2.5.tbz | tar xvf –
- tar xvzf test-2.5.tbz
- rpm2cpio test-2.5.tbz | cpio -i – -make-directories
9. Which of the following do RPM filenames conventionally include?
- Single-letter codes including Red Hat -certified build sites
- Build date information
- Version number and CPU architecture information
- The initials of the package’s maintainer
10. Which of the following is not a good reason for installing software from source code?
- Installing software from source code enables you to optimize the software for your CPU.
- Installing software from source code helps maintain your RPM or Debian package database.
- Installing software from source code enables you to make changes to the source code.
- Installing software from source code enables you to tweak program options to your liking.
11. An administrator types the following command on a RPM-based Linux distribution:
# rpm -ivh linuxconcept.rpm
What is the effect of this command?
- The linuxconcept package, if it’s installed, is uninstall from the computer.
- The linuxconcept.rpm package, if it exists, is valid, and is not already installed , is installed on the system.
- The linuxconcept.rpm source RPM package is compiled into a binary RPM for the computer.
- Nothing; linuxconcept.rpm is not a valid RPM filename, so rpm will refuse to operate on this file.
12. Which of the following steps should you always take before attempeting to compile software from source code?
- Edit the Makefile to optimize the compilation for your CPU.
- Read the documentation provided with the source code.
- Type make config to configure the software for your computer.
- Ensure that the Qt and GTK+ libraries are installed for use by the software.
13. Which of the following commands will extract the content of the mytext.rpm file into the current directory?
- rpm2cpio mytext.rpm | cpio -i –make-directories
- rpm2cpio mytext.rpm > make-directories
- rpm -e mytext.rpm
- alien –to-extract mytext.rpm
14. What methods might you use to uninstall a program you installed from source code without the help of a package manager? [Select all that apply]
- Consult the Registry to learn what files are installed and delete those associated with the package.
- Type make uninstall in the original program source code directory
- Type rpm -e packagename, where packagename is the name of the package.
- Manually track down and delete all the files installed by the package.
15. To use dpkg to remove package called testprogram, including its configuration files, which of the following commands would you issue?
- dpkg -P testprogram
- dpkg -p testprogram
- dpkg -r testprogram
- dpkg -r testprogram-5.2.deb
16. What is the function of ldd program?
- It dispalys information on the libraries used by a program or library.
- It copies a file, optionally applying conversions to it.
- It cause the system to re-create the library cache files and renew library links.
- It flushes the LD_LIRARY_PATH environment variable.
17. Which of the following describes a difference between apt-get and dpkg?
- apt-get provides a GUI interface to Debian package management; dpkg does not.
- apt-get can install tarballs in addition to Debian packages; dpkg can not.
- apt-get can automatically retrive and update programs from Internet sites; dpkg can not.
- apt-get is provided only with the original Debian distribution, but dpkg comes with Debian and its derivatives.
18. What is the prefered method of adding a directory to the library path for all users?
- Modify the LD_LIBRARY_PATH environment variable in a global shell script.
- Add the directory to the /etc/ld.so.conf file and then type ldconfig.
- Type ldconfig /new/dir, where /new/dir is the directory you want to add.
- Create a symbolic link from that directory to one that’s already on the library path.
19. Which of the following is true of an attempt to use a Debian package from one distribution on another Debian-drived distribution?
- It’s unlikely to work because of library incompatibilities and divergent package-naming conventions.
- It’s guaranteed to work because of Debian’s strong package definition and enforcement of standrad for stsrtup scripts and file locations.
- It will work only when the distribution are built for different CPUs or when the alien package is already installed on the target system.
- It’s likely to work because of the close relationship of Debian-based distributions, assuming the two distributions are for the same CPU architecture.
20. You prefer the look of GTK+ widgets to Qt widgets, so you want to substitute the GTK+ libraries for the Qt libraries on your system. How would you do this?
- You must type ldconfig –makesubs-qt.gtk. This command substitute the GTK+ libraries for the Qt libraries at load time.
- You must uninstall the Qt library package and re-install the GTK= packages with the –substitute=qt option to rpm or the –replace=qt option to dpkg.
- You must note the filename of the Qt libraries uninstall the packages and create symbolic links from the Qt libraries to the GTK+ libraries.
- You can’t easily do this; libraries cannot be arbitrarily exchanged for one another. You would need to rewrite all the Qt-using programs to use GTK+.
8. a, b
14. b, d