Test 3 Flashcards
To prevent a file from being cleared by the BASH shell and append output to the existing output, you can specify three > metacharacters alongside the file descriptor.
1) True
2) False
2) False
You are limited to using one pipe | metacharacter on the command line to pipe information from one command to another command.
1) True
2) False
1) True
You can use the sed command to remove unwanted lines of text.
1) True
2) False
1) True
Any command that can be executed on the command line can also be placed inside any environment file.
1) True
2) False
1) True
Given the syntax command && command, the command on the left of the && construct is executed only if the command on the right of the && construct completed successfully.
1) True
2) False
2) False
The BASH shell assumes stdout in the absence of a numeric file descriptor.
1) True
2) False
1) True
Users can create their own custom variables, called shell variables.
1) True
2) False
2) False
The ENV environment variable represents the location of the BASH run-time configuration file.
1) True
2) False
1) True
Aliases are shortcuts to commands stored in special variables that can be created and viewed using the alias command.
1) True
2) False
1) True
In a decision construct, you can have an unlimited number of if then statements.
1) True
2) False
2) False
The file descriptor stdin is represented by the number ____.
1) 0
2) 1
3) 2
4) 3
1) 0
The file descriptor stderr is represented by the number ____.
1) 0
2) 1
3) 2
4) 3
3) 2
You can use the BASH shell to redirect standard output and standard error from the terminal screen to a file on the filesystem using the ____ shell metacharacter followed by the absolute or relative pathname of the file.
1) #
2)
4) |
3) >
You can redirect a file to the standard input of a command using the ____ metacharacter.
1) >
2) #
3) |
4) <
4) <
The ____ command can be used to replace characters in a file sent via Standard Input.
1) tr
2) rt
3) ts
4) st
1) tr
You can send the standard output of one command to another command as standard input using the ____ shell metacharacter.
1) <
2) |
3) >
4) #
2) |
The ____ command counts the number of lines, words, and characters in a file.
1) pr
2) nl
3) tr
4) wc
4) wc
The ____ command can be used to extract, manipulate, and format text using pattern-action statements.
1) sed
2) grep
3) awk
4) nl
3) awk
Most configuration files on Linux systems are delimited using ____ characters.
1) tab
2) colon
3) space
4) semicolon
2) colon
To see a list of the environment variables and their current values on a system, you can use the ____ command.
1) env
2) get
3) set
4) setenv
3) set
The ____ command could be used to view the contents of the environment variable that represents the BASH shell prompt.
1) ls $PWD
2) echo #PWD
3) echo $PS1
4) ls #PS1
3) echo $PS1
To see a list of all exported environment and user-defined variables in the shell, you can use the ____ command.
1) env
2) set
3) setenv
4) getenv
1) env
The ____ environment file is always executed immediately after login for all users on the system, and sets most environment variables, such as HOME and PATH.
1) ~/.bash_profile
2) ~/.bash_login
3) /etc/profile
4) ~/.profile
3) /etc/profile
If you have ____ permission to a shell script, you can execute the shell script like any other executable program on the system.
1) read
2) write and read
3) execute
4) read and execute
4) read and execute
The ____ escape sequence represents a form feed.
1) \n
2) \f
3) /f
4) /n
2) \f
The test statement ____ would be used to determine if A is numerically greater than B.
1) [ A –g B ]
2) [ A –ge B ]
3) [ A –gt B ]
4) [ A +eq B ]
3) [ A –gt B ]
Are both standard output and standard error displayed on the terminal screen by default?
1) Yes
2) No
1) Yes
When redirecting both standard output and standard error to a file, does using the same filename for both result in a loss of data?
1) Yes
2) No
1) Yes
Can the redirection shell metacharacter be used to redirect between a command and another command?
1) Yes
2) No
2) No
When performing a pipe, do you need to have spaces around the | metacharacter?
1) Yes
2) No
2) No
Can you combine redirection and piping together?
1) Yes
2) No
1) Yes
If you are using a Linux boot loader to dual boot another operating system in addition to Linux, it is easiest if Linux is installed after the other operating system has been installed.
1) True
2) False
1) True
The /etc/rc.d/rc 5 script only executes files that start with S in the /etc/rc.d/rc5.d/ directory.
1) True
2) False
2) False
Most daemon scripts accept the arguments start, stop, and restart.
1) True
2) False
1) True
Using one boot loader to boot one of several operating systems is known as multi-booting.
1) True
2) False
2) False
LILO is the most common boot loader used on modern Linux systems and the only boot loader supported by Fedora 13. 1) True
2) False
2) False
To see the current runlevel of the system and the previous runlevel (if runlevels have been changed since system startup), you can use the runlevel command.
1) True
2) False
1) True
Administrators most commonly use a(n) graphical user interface.
1) True
2) False
2) False
The core component of a Linux GUI is X Windows.
1) True
2) False
1) True
The Linux kernel is stored in the ____ directory.
1) /
2) /boot
3) /root
4) /krnl
2) /boot
____ of the GRUB boot loader typically resides on the Master Boot Record.
1) Stage1
2) Stage1.5
3) Stage2
4) Stage2.5
1) Stage1
In the /etc/lilo.conf file, the ____ keyword specifies the absolute pathname to the Linux kernel.
1) image=
2) default=
3) install=
4) root=
1) image=
In Linux, runlevel ____ is also known as multiuser mode.
1) 1
2) 2
3) 3
4) 4
2) 2
A Linux system in runlevel ____ is a system that has no daemons active in memory and is ready to be powered off. 1) 0
2) 1
3) 6
4) 7
1) 0
After the entries in /etc/inittab have been executed, the ____ file is executed to perform tasks that must occur after system startup.
1) /etc/rc/rc.local
2) /etc/rc.d/local
3) /etc/rc.d/rc.local
4) /etc/rc/local
3) /etc/rc.d/rc.local
You can use the ____ command to start, stop, or restart any daemons listed within the /etc/rc.d/init.d directory.
1) daemon
2) manip-daemon
3) service
4) daemon-service
3) service
____ is a freely available version of X Windows used in many Linux distributions.
1) X.org
2) XFree
3) FreeX86
4) XFree86
4) XFree86
The two most common desktop environments that are used on Linux are ____ and ____.
1) KDE; kwin
2) KDE; Xfce
3) Xfce; GNOME
4) KDE; GNOME
4) KDE; GNOME
The ____ window manager is used for the GNOME desktop in Red Hat Fedora Core 2.
1) kwin
2) twm
3) metacity
4) sawfish
3) metacity
If your system uses the X.org implementation of X Windows, the mouse, keyboard, monitor, and video adapter card information is stored in the ____ file in text format.
1) /etc/X11/XF86Config
2) /etc/X11/xorg.conf
3) /etc/X11/xwin.conf
4) /etc/X11/xorg
2) /etc/X11/xorg.conf
After configuring X Windows, you can fine-tune the vsync and hsync of the video card using the ____ utility within the desktop environment.
1) xvidtune
2) xvideotune
3) xtune
4) vidtune
1) xvidtune
Can there be more than one active partition on a hard disk?
1) Yes
2) No
2) No