LX0-103 Exam Essentials Flashcards
Summarize features that Linux shells offer to speed up command entry.
The command history often enables you to retrieve an earlier command that’s similar or identical to the one you want to enter. Tab completion reduces typing effort by letting the shell finish long command names or filenames. Command-line editing lets you edit a retrieved command or change a typo before committing the command
Describe the purpose of the man command.
The man command displays the manual page for the keyword (command; filename; system call; or other feature) that you type. This documentation provides succinct summary information that’s useful as a reference to learn about exact command options or features.
Explain the purpose of environment variables.
Environment variables store small pieces of data—program options; information about the computer; and so on. This information can be read by programs and used to modify program behavior in a way that’s appropriate for the current environment.
Describe the difference between standard output and standard error.
Standard output carries normal program output; whereas standard error carries high- priority output; such as error messages. The two can be redirected independently of one another.
Explain the purpose of pipes.
Pipes tie programs together by feeding the standard output from the first program into the second program’s standard input. They can be used to link together a series of simple programs to perform more complex tasks than any one of the programs could manage.
Describe the filter commands.
The various simple filter commands allow the manipulation of text. These commands accomplish tasks of various types; such as combining files; transforming the data in files; formatting text; displaying text; and summarizing data.
Summarize the structure of regular expressions.
Regular expressions are strings that describe other strings. They can contain normal alphanumeric characters; which match the exact same characters in the string they are describing; as well as several special symbols and symbol sets that match multiple different characters. The combination is a powerful pattern-matching tool used by many Linux programs.
Identify critical features of RPM and Debian package formats.
RPM and Debian packages store all of the files for a given package in a single file that also includes information about what other packages the software depends on. These systems maintain a database of installed packages and their associated files and dependencies.
Describe the tools used for managing RPMs.
The rpm program is the main tool for installing; upgrading; and uninstalling RPMs. This program accepts operations and options that tell it precisely what to do. The Yum utility; and particularly its yum command; enables installation of a package and all its dependencies via the Internet rather than from local package files
Describe the tools used for managing Debian packages.
The dpkg program installs or uninstalls a single package or a group of packages that you specify. The apt-get utility retrieves programs from installation media or from the Internet for installation; and it can automatically upgrade your entire system. The dselect program serves as a menu-driven interface to apt-get ; enabling you to select programs that you want to install from a text-mode menu.
Summarize tools for extracting files and converting between package formats.
The rpm2cpio program can convert an RPM file to a cpio archive; enabling users of non- RPM systems to access files in an RPM. The alien utility can convert in any direction between Debian packages; RPMs; Stampede packages; and tarballs. This enables the use of packages intended for one system on another.
Summarize the reasons for using shared libraries.
Shared libraries keep disk space and memory requirements manageable by placing code that’s needed by many programs in separate files from the programs that use it; enabling one copy to be used multiple times. More generally; libraries enable programmers to use basic “building blocks” that others have written without having to reinvent code constantly
Describe methods available to change the library path.
The library path can be changed system wide by editing the /etc/ld.so.conf file and then typing ldconfig . For temporary or per-user changes; directories may be added to the path by placing them in the LD_LIBRARY_PATH environment variable
Explain the difference between foreground and background processes.
Foreground processes have control of the current terminal or text-mode window (such as an xterm ). Background processes don’t have exclusive control of a terminal or text-mode window but are still running
Describe how to limit the CPU time used by a process.
You can launch a program with nice or use renice to alter its priority in obtaining CPU time. If a process is truly out of control; you can terminate it with the kill command.
Summarize BIOS and EFI essentials
The BIOS and EFI provide two important functions: First; they configure hardware— both hardware that’s built into the motherboard and hardware on many types of plug-in cards. Second; they begin the computer’s boot process; passing control on to the boot loader in the MBR or EFI partition in GPT-formatted disks. The BIOS is currently being retired in favor of EFI; which performs these tasks on modern computers.
Describe what files contain important hardware information.
There are many files under the /proc filesystem. Many of these files have been mentioned throughout this chapter. Familiarize yourself with these files; such as /proc/ioports ; /proc/interrupts ; /proc/dma ; /proc/bus/usb ; and others.
Explain Linux’s model for managing USB hardware.
Linux uses drivers for USB controllers. These drivers in turn are used by some device- specific drivers (for USB disk devices; for instance) and by programs that access USB hardware via entries in the /proc/bus/usb directory tree.