Linux Final

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

A system administrator wants to allow most users to be able to run cron jobs, but wants to specifically prevent a couple of users from doing so. Which of the following files could the administrator edit to disallow these users from creating cron jobs?

/etc/cron.deny

Which of the following files contains full and incremental backup information for use with the dump utility?

/etc/dumpdates

Which of the following files is where the default runlevel is set on SystemV?

/etc/inittab

In which file can you configure rules for logging on a Linux system using the syslog utility?

/etc/rsyslog.conf

Which file does systemd reference on startup to determine what target to go?

/etc/systemd/system/default.target

Which of the following kill level signals could let a process reload its configuration?

1

Which of the following commands can be used to create a BASH variable named CREATOR with the value of Torvalds?

CREATOR="Torvalds"

Which command can be used to create a new command?

alias name=''

rpm -qa, qi, qc, qI, qf

all installed packages, info, configuration, all files, where its from

Which of the following commands will display a list of the pending jobs to be run?

at -l, atq, at -q

Which of the following command can be used to remove a job from the list of pending jobs?

atrm, at -r, at -d

Which of the following commands will send the output of the cat command to the grep command to be filtered?

cat | grep

Which of the following will show account aging information for a user such as the date of the last password change, when the password expires, and the number of days of warning before the password expires?

chage -l

When compiling source code into a binary program, which command performs system checks and creates the Makefile?

configure

Which of the following commands can be used to back up files with long filenames, and can also back up device files?

cpio

tar -c, t, x

create, view, extract

Which of the following commands will show the current user cron jobs that have been created for the currently logged in user?

crontab -l

Which of the following is a tool that can be used to search Internet software repositories for RPM packages that map to your system's architecture, and automatically install or upgrade those packages on your system?

dnf

How to update dnf?

dnf update or dnf upgrade (removes obsolete)

Which of the following commands will display the exit status of the last command used in the BASH shell?

echo $?

Which of the following are the advantages of systemd over systemV?

faster booting process due to parallelism and consolidated commands

After a background process has been started, what command below can be used to move it to the foreground?

fg

Which of the following will look at the /etc/passwd file for any lines containing the word root and display them out to the screen while simultaneously writing the results to a file?

grep root | tee

xz

higher compression ratio, .xz

Which of the following commands can a user run to display the groups that the user is a member of?

id

Which of the following is the first process generated on Linux systems using SystemV?

init

rpm -i -e -U -F

install, remove, update or install, strict update

Which of the following commands can you use to view events within the journald database?

journalctl

Which of the following would send all log events but warning from kernel to a log file?

kern.*; kern.!warning

Which of the following commands can be used to see files that are currently being used by a specific process ID (PID)?

lsof

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

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

Which of the following can be used preceding a command to prevent a process from terminating when the parent process (e.g., bash) terminates?

nohup

What is a pe?

physical extent- part of PV that can be allocated to any LV

tar -p -P

preserve permissions, preserve path

Which of the following commands will show a list of process names along with their process ID (PID)?

ps and top

How to view and extract dump?

restore -t -r

Which of the following commands will install a package using the Red Hat Package Manager, showing all information, while printing the # signs to show the progress of installation?

rpm -ivh packagename.rpm

You believe that a file belongs to an installed RPM package. Which of the following commands can be used to find out what is the name of the package?

rpm -qf

Which of the following commands can be used to show the full information (e.g., its developer and version) about a package?

rpm -qi

Which of the following commands will show the current runlevel along with the previous runlevel?

runlevel

Which of the following commands will shut down a Linux system?

shutdown -h now and telinit 0

Which of the following commands will display the contents of the /etc/passwd file in alphanumerical order?

sort /etc/passwd

In systemd, which of the following commands is the replacement of the service command in SystemV?

systemctl

Which of the following commands can be used to configure daemon services (e.g., on or off) for different runlevels/targets?

systemctl and chkconfig

Which of the following commands will set the default target of a Linux system?

systemctl set-default runlevel.target

Which of the following commands will display a list of Systemd units sorted by the time they took to load?

systemd-analyze blame

Which of the following options for the tar command will create an archive that is also gzipped while displaying all of the work in progress to the terminal screen?

tar -czvf

What does << accomplish when used as cat >file1 <<bye

the end of inputs is bye

Which of the following commands will count the number of lines in a file?

wc -l

Which of the following can be used at the command line to download a file using the HTTP protocol?

wget and curl

Using the syntax below, what command will create directories named one, two, and three?​ echo one two three | ___________ mkdir

xargs

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?

#

Which of the following entries could be added to the rsyslog.conf configuration file to have all syslog messages displayed to console 10?

*.* /dev/tty10

strongest compression

-9

Which of the following RPM options will update a software package to the newest version, or install the package if it does not already exist on a system?

-U

What option can be used with the ps command to display an entire list of processes across all Terminals, including daemons?

-e

In what directory are the Linux kernel and grub configuration files stored?

/boot

Which of the following files will be executed after a user receives a BASH shell without login?

/etc/bashrc and ~/.bashrc

dd

backup block by block- image backup

backup

backup location file/folder


Ensembles d'études connexes

The Maya, Aztec, and Inca empires

View Set

Bab 3 Pengelolaan Sumber Daya Alam Indonesia

View Set

Genetics Mastering and LC: Test 2

View Set

Marketing Test #1 - Chapter 1 Review

View Set

Chapter 15-The Foreign Exchange Market and Determination of Exchange Rates

View Set

Chapter 9 Soil Physical Properties Lecture Questions, Chapter 15, Chapter 14, Chapter 12 & 13 Lecture Questions

View Set

PSYCHOLOGY CHAPTER 16: Therapy and Treatment

View Set