INF-254 final
Which of the following characters can be entered at the beginning of a line in a shell script to ensure that line is recognized as a comment rather than try to execute it?
#
What character, when appended to a command, causes the command to be run in the background?
&
Processes are started with what nice value by default?
0
In order to redirect a file to the standard input of a command, what metacharacter should be used?
<
In order to download DPM packages, what command should be used below?
apt-get
Which of the following commands will send the output of the cat command to the grep command to be filtered?
cat /etc/passwd | grep jsmith
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.
false
You are limited to using one pipe | metacharacter on the command line to pipe information from one command to another command.
false
Which of the following constructs can be used in a shell script to determine whether two values are equal and if so run another set of commands?
if
What two commands below can be used to stop a process, either by PID number or process name?
kill, killall
What command looks for a Makefile and uses the information within it to compile the source code into binary programs using the appropriate compiler program for the local hardware architecture?
make
What command looks for a Makefile and uses the information within to compile the source code into binary programs using the appropriate compiler program for the local hardware architecture?
make
Which of the following is a valid method of running a script named myscript.sh? (Choose two)
source myscript.sh and ./myscript.sh
If the /etc/at.allow and /etc/at.deny files do not exist, only the root user is allowed to schedule tasks using the at daemon.
true
Zombie processes are also known as defunct processes.
true
The SUSE and openSUSE Linux distributions use an alternative to yum but that provides the same functionality. What is the name of the command they use?
zypper
What character combination at the start of a shell script are referred to as a hashpling, and allow for the specification of the shell that interprets the contents of the script?
#!
Which of the following would be the results of running the command seq 7?
1 through 7 being displayed one number per line.
The standard output and standard error from a terminal screen within the BASH shell can be redirected to a file on the filesystem using what shell metacharacter, followed by the absolute or relative pathname of the file?
>
Which of the following will take output from a command and append it to the end of a file?
>>
After compiling source code, which command still needs to be run in order to copy the newly compiled binaries into a directory listed in the PATH variable as well as copy supporting files (such as man pages) to the correct location on the filesystem?
make install
RPM packages that require other RPM packages to be installed on a system prior to being installed creates a relationship known as?
package dependency
What can be used on a Linux system to trace the lineage of each child process?
parent process ID
After a process has been started, you can change its priority by using the renice command.
true
Any command that can be executed on the command line can also be placed inside any environment file.
true
Each process can start an unlimited number of other processes.
true
The compress utility preserves the original ownership, modification, and access time for each file that it compresses.
true
Most Linux distributions make use of what package manager?
RPM