Test
Linux Final Prep Quiz
Preguntas del test (122)
1Operations on the directory stack manipulate the top item in the stack only
- AVerdadero
- BFalso
2graphical.target is equivalent to the old runlevel 3
- AVerdadero
- BFalso
3Which of the following items can appear in the user_list element on a configuration line in the /etc/sudoers file?
- AAll
- BUser_Alias names
- CGroup_Alias names
- DHost Names
- EGroup names preceded by a '^'
- Fuser names
- Ggroup names preceded by a '%'
4The Pluggable Authentication Module (PAM) is a facility that supports using multiple authentication methods while providing a common interface to common applications or services seeking to authenticate a user.
- AVerdadero
- BFalso
5Before executing any command, the bash shell pre-processes the command line to make sure it is syntactically correct and all necessary expansions have been done.
- AVerdadero
- BFalso
6In what directory are most system configuration files stored?
- A/local
- B/usr
- C/var
- D/etc
7The /etc/sudoers configuration file should only be edited using the visudo or sudo -e commands to avoid syntax errors in the file.
- AVerdadero
- BFalso
8The /tmp directory is a working directory for temporary files that is accessible to any user on a Linux system.
- AVerdadero
- BFalso
9Which of the following is NOT part of a system administrator's duties?
- ABackup the system on a regular basis
- BEnter customer orders into the sales database system
- CSecure the system against deliberate and accidental breaches
- DKeep the system running well enough to support business/user needs
10Which of the following is NOT a valid variable name in a shell script?
- Aday1_
- B1_day
- C_day1
- Dday_1
11The chsh command temporarily changes the current user's shell
- AVerdadero
- BFalso
12Where is PAM configuration stored on a Fedora or RedHat system?
- A/etc/PAM.conf
- B/etc/pam.conf
- C/etc/pam.d file
- D/etc/pam.d/ directory
13In the following line of output from the ls -l command, what does the b at the beginning of the line mean?
brw-rw----, 1 root disk 8, 1 Dec 31 17:02 sda1- Asda1 is a directory
- Bsda1 is an ordinary file
- Csda1 is a character device\
- Dsda1 is a block device
14Assuming that the following alias command is included in a user's ~/.barshc file,
alias t="tar -v"
and the user types the following at the shell prompt,
t -zcf /tmp/test.tar test.txt
What would the actual command executed be?- At -zcf /tmp/test/tar test.txt
- Btar -zcf /tmp/test/tar test.txt
- Ctar -v -zcf /tmp/test/tar test.txt
- D○ t -v /tmp/test/tar test.txt
15In which of the following startup files or directories should user-specific configuration settings be put?
- A~/.bashrc
- B/etc/profile.d/
- C~.bash_profile
- D/etc/profile
- E/etc/bashrc
16What is the command to start X windows when a Linux system is running at the multi-user.target level?
- AXorg
- BX11
- Cgdm
- DStartx
17When using the Logical Volume Manager facility, all disk space can be placed under the control of that facility.
- AVerdadero
- BFalso
18What is the default target on Fedora Linux systems?
- Agraphical.target
- Bmulti-user.target
- Cbasic.target
- Dgetty.target
19What is the purpose of the HISTSIZE environment variable?
- ASets the number of commands stored in the history memory cache and the history file
- BSets the number of commands stored in the history file
- CSets the history file name
- DSets the number of commands stored in the history memory cache
20One of the reasons that the systemd deamon replaced the old System V init daemon in order to support newer hardware technologies.
- AVerdadero
- BFalso
21When typing a command at the shell prompt it is possible to type part of a command name and then use the TAB key to complete the command, if the part of the command entered is unique.
- AVerdadero
- BFalso
22The ext3, ext4 and xfs file systems all support journaling but are not commonly used.
- AVerdadero
- BFalso
23Which of the following commands, when used with the appropriate options, displays a list the process ID numbers for all processes running a certain command
- Ajobs
- Bps
- Cpidof
24The $0 parameter of a shell script always contains the name of the script.
- AVerdadero
- BFalso
25Which of the following methods of gaining root privilege is the least advisable?
- Asetuid
- Bsudo
- Csu
- DLog in as root
26Which of the following shells is currently used to prevent a non-privileged user from logging in interactively?
- A/bin/nologon
- B/bin/bash
- C/bin/false
- D/bin/tsh
27fschk can check and repair a mounted file system.
- AVerdadero
- BFalso
28Which of the following commands displays recent system messages?
- Alogger
- Bmesg
- Cdmesg
- Dlogprint
29The ~/.inputrc file is used to configure which of the following history manipulation methods?
- Ahistory
- Breadline history
- C!
- Dfc
30A package manager is a software tool designed to assist system administrators with the management of software on a Linux system.
- AVerdadero
- BFalso
31The ldd command is used to funnily configure a chroot environment.
- AVerdadero
- BFalso
32What is the output of the command:
df -h- AA list of the mounted file systems with all size information shown in human readable form
- BA list of the mounted file systems with all size information shown in blocks
- CThe fragmentation state of each disk on the system
33Gaining root privilege on a system with multiple administrators is a bad method because it involves sharing the password between several people.
- AVerdadero
- BFalso
34When multiple interactive bash shells are opened by a user, the history for all of the shells will be saved to disk as each is closed.
- AVerdadero
- BFalso
35Administrative (root) privilege on a Linux system should be granted to anyone who asks for it.
- AVerdadero
- BFalso
36Which of the following is NOT an advantage of using sudo?
- ACustomized privilege settings can be created on a group-by-group basis
- BCustomized privilege settings can be created on a user-by-user basis
- CNo one needs to know the root password
- DThe root password is shared amongst system administrators
37Which of the following commands lists the contents of a package?
- Arpm -q <package>
- Brpm -qa <package>
- Crpm -ql <package>
- Drpm -qf <package>
38Which of the following commands will report weather the sshd daemon is set to automatically start at some target level?
- Asystemctl is-enabled sshd
- Bsystemctl is-active sshd
- Csystemctl isactive sshd
- Dsystemctl isenabled sshd
39What does the 2>&1 mean in the following command?
find * >/tmp/find_out.txt 2>&1- AStandard error is sent to the user's terminal screen
- BStandard output is sent to the same file or device as standard error
- CStandard error is sent to the same file or device as standard output
- DStandard error is sent to the bit bucket
40What is the output of the following command?
du -s- AA single line of output giving the size and contents of the current directory and all its subdirectories in blocks
- BA single line of output giving the size of contents of the current directory and all its subdirectories in human readable form
- CA summary of the sizes of all files and directories in the current directory in blocks
- DA summary of the sizes of all files and directories in the current directory in human readable form
41Which process in the following jobs command output will be affected by issuing the fg command without parameters?
user@f1 ~]$ jobs
[1] Running sleep 300 &
[2]- Running sleep 400 &
[3]+ Running sleep 500 &- A1
- B3
- CAll Processes
- D2
42The growfs command can be used to increase the size of a filesystem.
- AVerdadero
- BFalso
43TCPWrappers is a daemon based security facility that limits access to the daemon based on IP address.
- AVerdadero
- BFalso
44What program is running in the process associated with a physical or virtual terminal prior to a user logging on?
- Atsh
- Blogin
- Cbash
- Dgetty
45The nnswitch facility provides a means to define diverse sources of information (e.g. hostnames, user information) for use by a Linux system. It can decide where to find information and what order to search the various sources.
- AVerdadero
- BFalso
46Security Enhanced Linux implements a discretionary access control tool.
- AVerdadero
- BFalso
47The default installation of SELinux uses which of the following mode and policy configurations?
- APERMISSIVE and Multilevel Security
- BENFORCING and Multilevel Security
- CPERMISSIVE and Targeted
- DENFORCING and Targeted
48Functions are a technique that can be used to add custom operations to a Linux system on a global or user-by-user basis. All custom operations should be added using functions no matter what the complexity or size of the new operations.
- AVerdadero
- BFalso
49Which of the following commands sets the X windows pointing device (mouse) for right-handed use?
- Axmodmap -e 'pointer = 3 2 1 4 5'
- Bxmodmap -e 'pointer = 3 1 2 4 5'
- Cxmodmap -e 'pointer = 1 2 3 4 5'
- Dxmodmap -e 'pointer = 1 3 2 4 5'
50What is the default desktop environment used by Fedora and RedHat systems?
- AGNOME
- Bmulti-user.target
- Cgraphical.target
- DKDE
51Given the initial directory stack containing the following entries:
~/testdir/dir2/dir2-1 ~/testdir/dir1/dir1-1 ~/testdir/ ~
what would the stack contain if the pushd command was issued with no parameters?- A~/testdir/ ~ ~/testdir/dir2/dir2-1 ~/testdir/dir1/dir1-1
- B~/testdir/dir1/dir1-1 ~/testdir/dir2/dir2-1 ~/testdir/ ~
- C~/testdir/dir2/dir2-1 ~/testdir/dir1/dir1-1 ~/testdir/ ~
- D~/testdir/ ~/testdir/dir2/dir2-1 ~/testdir/dir1/dir1-1 ~
52Which of the following commands clears the screen on a Linux terminal?
- Acls
- Bclear
- Cblank
53Some organizations lock the root account. Others use a very long complex root password that is not known to the system administrators. Both of these approaches are valid when sudo is used for system administration.
- AVerdadero
- BFalso
54What does the parameter $@ contain?
- AThis parameter contains all of the parameters of the current shell script including the name of the script
- BThis parameter contains all of the parameters of the current shell script except the name of the script
- CThe last parameter of the current script
- DThe first parameter of the current script
55Which of the following commands includes a processes' PID in their output?
- Ajobs -l
- Bps
- Cls
- Djobs
56When an external command is invoked from a bash shell it always runs as a separate process from the shell's process.
- AVerdadero
- BFalso
57The source builtin command is used to load/reload startup files.
- AVerdadero
- BFalso
58If the su command is issued without specifying a user, which user is assumed?
- Aroot
- BThe user issuing the command
- CA random user account
59Which of the following are characteristics of the xfs file system?
- AVery large file system sizes
- BJournaling
- CLive file system expansion and defragmentation
- DPoor backup functionality when compared to ext4
60What is the result of issuing the following bash builtin command?
history 20- ALists the 20 most recently used commands
- BLists 20 randomly chosen commands from history
- CLists the 20 least recently used commands
61What is the effect of placing the line
ALL: ALL
into the /etc/hosts.deny files while leaving /etc/hosts.allow empty?- AAllow connections to all daemons from any IP address
- BDisallow connections to all daemons from any IP address except 127.0.0.1
- CDisallow connections to all daemons from any IP address
62What is the purpose of the dirs command?
- ADisplay the contents of the directory stack
- BSwap entries in the directory stack
- CRemove entries from the directory stack
- DAdd entries to the directory stack
63What does the following command do?
yum group install Robotics- AInstall all packages whose names contain with Robotics
- BInstall all packages whose names begin with Robotics
- CInstall all packages whose names end with Robotics
- DInstalls of the packages contained within the group named Robotics
64What is the change command used for?
- AChange the expiry date on a user's account
- Bcalculate a user's age based on the information in that user's account
- CChange the date of birth information stored in a user's account
- Dchange password ageing parameters associated with a user's account
65The CUPS printer server offers which of the following facilities?
- APrinter hardware configuration
- BPrinter class (group) management
- Cprinter queue configuration and management
- DPrint job queueing and management
66Which of the following commands lists all of the devices (printers) configured on the local system?
- Alpinfo -v
- Blpinfo -m
67User and group ID numbers must be unique on Linux systems.
- AVerdadero
- BFalso
68Which of the job scheduling facilities available on a Linux system execute jobs repeatedly at the specified time, provided that the system is available at the specified time?
- Aat
- Bcron
- Canacron
69CUPS supports printing to: locally connected printers, networked printers, and printers shared by other computers.
- AVerdadero
- BFalso
70How can CUPS be configured?
- Asystem-config-printers GUI program
- BWeb interface
- CCommand line programs
- DAll of the above
71Which of the following is the language that almost every printer will accept?
- APCL
- BPS
- CPlain Text
72Where is local user account information stored on a Linux system?
- A/etc/passwd and /etc/shadow
- B/etc/group and /etc/shadow
- C/etc/passwd and /etc/group
73Which of the following is not one of the things that should be available when building and installing a new kernel?
- ARemove all previous kernels from the system
- BBackup the filesystem
- CHave the OS installation media available
- DDo not remove the last known working kernel from the system
74It is possible to lock a user account. This is achieved by which of the following?
- AChanging the password to a single %
- BChanging the password to a single !
- CPlacing a % at the beginning of the password
- DPlacing a ! at the beginning of the password
75Print servers can be built into a printer or run as a daemon on a computr system.
- AVerdadero
- BFalso
76You have just downloaded some software in a file named mailer.tar.gz. Which of the following commands would you use to install the software into the current directory assuming that mailer.tar.gz is also in the current directory?
- Atar -zxf mailer.tar.gz
- Bgunzip mailer.tar.gz
- Cunzip mailer.tar.gz
- Duncompress mailer.tar.gz
77CUPS provides which of the following print job operations?
- AAccepts and queues print jobs
- BDispatches queued print jobs to active printers
- CNotifies the requesting user when a print job is complete
- DCancels print jobs at the user's request
78What is the purpose of the command:
yum check- ACheck for available package updates
- BCheck the status of the local yum database
- CCheck the status of the local RPM database
79Which of the following commands will display a list of all available packages with 'httpd' anywhere in their names?
- Ayum list avilable | grep httpd
- Byum list "httpd"
- Cyum list httpd*
- Dyum list *httpd
80Given the following line from a user cron settings
* * * * * /usr/bin/uptime
how often will the uptime command be run?- Aonce a minute
- Bonce a year
- Conce a day
- Donce an hour
- Eonce a month
81Which of the following is not a reason to change the characteristics of a Linux kernel?
- AInstall a web server daemon
- BCreate a specialized kernel for an embedded system
- CUse a non-default kernel configuration
- DInstall a new hardware driver
82Which of the following command pairs will allow users to submit print jobs to queue prt1 without the jobs being immediately printed?
- Acupsreject prt1
cupsdisable prt1 - Bcupsreject prt1
cupsenable prt1 - Ccupsaccept prt1
cupsdisable prt1 - Dcupsaccept prt1
cupsenable prt1
- Acupsreject prt1
83System-wide password rules can be set using which of the following commands?
- Asystem-config-users
- Bsystem-config-authentication
- Csystem-config-auth
- Dsystem-config-security
84The rpmdev-setuptree command creates a directory structure for building packages from the course in the home directory of the user that executed the command.
- AVerdadero
- BFalso
85When an rpm file is downloaded from a website rather than from a repository, which utility or utilities can be used to install it?
- Aboth rpm and yum
- Byum
- CNeither rpm nor yum
- Drpm
86The kernel option names used in the /etc/sysctl.conf file and with the sysctl command are the same.
- AVerdadero
- BFalso
87The option in the kernel.spec file
%define buildid .test1
causes the new kernel and all its associated package and configuration files to contain the string '.test1' to identify it as a custom kernel. Each time a kernel is built this option must be modified to uniquely identify the build.- AVerdadero
- BFalso
88The web interface for CUPS may have different printer definitions listed than the GUI program.
- AVerdadero
- BFalso
89You have downloaded the source code for a program that is not part of your Linux distribution. In what order would you execute the following commands to set it up on your system? (1-4 selection)
- A./configure (1)
- BMake (2)
- Cmake test (3)
- Dmake install (4)
90On a Fedora Linux system, which of the following repositories are enabled by default?
- Afedora
- Bfedora-source
- Cupdates
- Dupdates-source
91Which of the following commands is the best one for downloading kernel source code from a repository?
- Ayum install kernel.source
- Byumdownloader kernel.source
- Cyum install source.kernel
- Dyumdownloader --source kernel
92The sysstat package contains a number of system statistic gathering and reporting tools. Which of the following are some tools in this package?
- Anfsstat
- Bsar
- Ciostat
- Dnetstat
93Which of the following files, related to GRUB configurations, should never be edited directly?
- A/etc/grub.d/*
- B/boot/grub2/grub.cfg
- C/etc/default/grub
94Which of the following packages are recommended prerequisites for building a new kernel?
- Agcc
- Brpmdevtools
- Cyum-utils
- Dpython
- Encurses-devel
- Flibglade2-devel
95The only way to modify kernel characteristics is to build a new, custom kernel.
- AVerdadero
- BFalso
96The command
yum install ntp bind
will download and install which of the following items?- Athe bind package
- Ball of the dependencies of the ntp package that are not already installed
- Call of the dependencies of the bind package that are not already installed
- Dall updates that have not been installed for any package on the system
- Ethe ntp package
97What is the purpose of the command
yum-builddep kernel-3.14.27-100.fc19.src.rpm- AInstall all of the packages upon which the specified source package depends when the source within the package is built
- BDownload, install and build all of the source code related to the specified package
- CInstalls all of the build tools needed to build and install the sources within the specified package
98The batch command forces scheduled jobs to run at the specified time no matter what the system load.
- AVerdadero
- BFalso
99Package repositories are online storage sites for distribution packages, distribution update packages, but are never used for 3rd party packages.
- AVerdadero
- BFalso
100Which of the following commands deletes the definition of printer prt1?
- Alpadmin -p prt1 -x
- Blpstat -x prt1
- Clpadmin -p prt1 -d
- Dlpstat -d prt1
101CUPS page count quotas work only with PostScript print files
- AVerdadero
- BFalso
102Given the commanduseradd -s /bin/bash/bash -d /home/joan -G wheel -g staff -c "Joan Smith" joan
what will Joan's primary group be?- Astaff
- BNot specified in the command
- Cwheel
103CUPS can accept print jobs from: local users and processes, and remote system.
- AVerdadero
- BFalso
104What does the following command produce as output:
yum list *kern*- AA list of all available package with the string 'kern' anywhere in its name
- BA list of all installed package with the string 'kern' anywhere in its name
- CA list of all known package without the string 'kern' anywhere in its name
- DA list of all known package with the string 'kern' anywhere in its name
105Where are user cron job definitions stored?
- A/var/spool/cron/*
- B/var/cron/*
- C/ext/crontab
- D/etc/cron.*
106By default, CUPS accepts print jobs from both local users and processes, and remote system.
- AVerdadero
- BFalso
107Which of the following commands will display the current value of the vm.drop_caches kernel parameter?
- Asysctl
- Bsysctl -w vm.drop_caches=1
- Csysctl -a
- Dsysctl vm.drop_caches
108Which of the following commands can be used to create a new kernel configuration from scratch?
- Amake config
- Bmake menuconfig
- Cmake gconfig
- Dmake oldconfig
109The command
sysctl -p /etc/sysctl.conf can be used to change the running kernel configuration without a reboot after editing the /etc/sysctl.conf file.- AVerdadero
- BFalso
110When the /etc/cups/cupsd.conf file contains the following configuration section, only network print requests from 127.0.0.1 (localhost) will be accepted.
<Location />
Order Allow Deny
Allow @LOCAL
</location>- AVerdadero
- BFalso
111A good approach to backing up a Linux system is to perform periodic full backups with incremental backups in between them.
- AVerdadero
- BFalso
112For CUPS to be able to accept print jobs form remote systems using the IPP protocol, the local system's firewall must allow incoming traffic on which of the following ports?
- A389 udp and tcp
- B53 tcp and udp
- C631 tcp and udp
- D81 tcp and udp
113Which of the following commands can be used to backup a Linux system?
- Acpio
- Bdump
- Crsync
- Dtar
114What does the $(arch) of the following command do?
rpmbuild -bp --target $(arch) kernel.spec- ARetrieves the value of the arch environment variable and substitutes it into the command
- BRuns the arch command and substitutes the result in the command
115Which of the following is not a function of host-based print servers?
- AManage print queues
- BAssign an IP address to a network printer
- CMonitor print and queue status
- DCreate a print queue and associate it with a printer
116Which of the following commands can be used to create groups on a Linux system?
- Auseradd
- Bsystem-config-users
- Cgroupmod
- Dgroupadd
117Every user on a Linux system has a user ID number. Which of the following describes the way user ID numbers are assigned on modern Fedora/RHEL systems?
- A0 - 999 system users
1000 - 65535 regular users - B0 - 499 system users
500 - 32767 system users - C0 - 499 system users
500 - 65535 regular users - D0 - 999 system users
1000 - 35767 regular users
- A0 - 999 system users
118The yum and rpm utilities can be used to install, update and remove software packages that are distributed as source code within tar archive files without any intermediate steps
- AVerdadero
- BFalso
119Which of the following are methods for permanently changing the configuration of a Linux kernel?
- Aediting the file /etc/sysctl.conf and rebooting the system
- Bediting the files in, or adding new files to /etc/sysctl.d and rebooting the system
- Csetting options using the sysctl command
- Dbuilding and installing a new kernel and then rebooting the system
120Which of the following is not a protocol that CUPS supports for communicating with printers?
- AIPP
- BSMTP
- CSMB
- DLPD/LPR
121The yum utility should be used to install, update and remove software on a Linux system whenever possible.
- AVerdadero
- BFalso
122Which of the following is not one of the factors that is used to determine if a kernel component is compiled into the kernel or made available as a loadable kernel module?
- ASize
- BFrequency of use
- CTime to load
- DExecution complexity
Información
- Descripción
- Test sobre Linux Final Prep Quiz, creado por Michael Marcus el 14/08/2016.
- Autor
- Michael Marcus
- Idioma
- English
- Visitas
- 444
- Valoración
- Aún sin valoraciones Valora este test