Linux Final Prep Quiz

Descrição

Quiz sobre Linux Final Prep Quiz, criado por Michael Marcus em 14-08-2016.
Michael Marcus
Quiz por Michael Marcus, atualizado more than 1 year ago
Michael Marcus
Criado por Michael Marcus mais de 7 anos atrás
427
2

Resumo de Recurso

Questão 1

Questão
Operations on the directory stack manipulate the top item in the stack only
Responda
  • True
  • False

Questão 2

Questão
graphical.target is equivalent to the old runlevel 3
Responda
  • True
  • False

Questão 3

Questão
Which of the following items can appear in the user_list element on a configuration line in the /etc/sudoers file?
Responda
  • All
  • User_Alias names
  • Group_Alias names
  • Host Names
  • Group names preceded by a '^'
  • user names
  • group names preceded by a '%'

Questão 4

Questão
The 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.
Responda
  • True
  • False

Questão 5

Questão
Before 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.
Responda
  • True
  • False

Questão 6

Questão
In what directory are most system configuration files stored?
Responda
  • /local
  • /usr
  • /var
  • /etc

Questão 7

Questão
The /etc/sudoers configuration file should only be edited using the visudo or sudo -e commands to avoid syntax errors in the file.
Responda
  • True
  • False

Questão 8

Questão
The /tmp directory is a working directory for temporary files that is accessible to any user on a Linux system.
Responda
  • True
  • False

Questão 9

Questão
Which of the following is NOT part of a system administrator's duties?
Responda
  • Backup the system on a regular basis
  • Enter customer orders into the sales database system
  • Secure the system against deliberate and accidental breaches
  • Keep the system running well enough to support business/user needs

Questão 10

Questão
Which of the following is NOT a valid variable name in a shell script?
Responda
  • day1_
  • 1_day
  • _day1
  • day_1

Questão 11

Questão
The chsh command temporarily changes the current user's shell
Responda
  • True
  • False

Questão 12

Questão
Where is PAM configuration stored on a Fedora or RedHat system?
Responda
  • /etc/PAM.conf
  • /etc/pam.conf
  • /etc/pam.d file
  • /etc/pam.d/ directory

Questão 13

Questão
In 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
Responda
  • sda1 is a directory
  • sda1 is an ordinary file
  • sda1 is a character device\
  • sda1 is a block device

Questão 14

Questão
Assuming 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?
Responda
  • t -zcf /tmp/test/tar test.txt
  • tar -zcf /tmp/test/tar test.txt
  • tar -v -zcf /tmp/test/tar test.txt
  • ○ t -v /tmp/test/tar test.txt

Questão 15

Questão
In which of the following startup files or directories should user-specific configuration settings be put?
Responda
  • ~/.bashrc
  • /etc/profile.d/
  • ~.bash_profile
  • /etc/profile
  • /etc/bashrc

Questão 16

Questão
What is the command to start X windows when a Linux system is running at the multi-user.target level?
Responda
  • Xorg
  • X11
  • gdm
  • Startx

Questão 17

Questão
When using the Logical Volume Manager facility, all disk space can be placed under the control of that facility.
Responda
  • True
  • False

Questão 18

Questão
What is the default target on Fedora Linux systems?
Responda
  • graphical.target
  • multi-user.target
  • basic.target
  • getty.target

Questão 19

Questão
What is the purpose of the HISTSIZE environment variable?
Responda
  • Sets the number of commands stored in the history memory cache and the history file
  • Sets the number of commands stored in the history file
  • Sets the history file name
  • Sets the number of commands stored in the history memory cache

Questão 20

Questão
One of the reasons that the systemd deamon replaced the old System V init daemon in order to support newer hardware technologies.
Responda
  • True
  • False

Questão 21

Questão
When 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.
Responda
  • True
  • False

Questão 22

Questão
The ext3, ext4 and xfs file systems all support journaling but are not commonly used.
Responda
  • True
  • False

Questão 23

Questão
Which of the following commands, when used with the appropriate options, displays a list the process ID numbers for all processes running a certain command
Responda
  • jobs
  • ps
  • pidof

Questão 24

Questão
The $0 parameter of a shell script always contains the name of the script.
Responda
  • True
  • False

Questão 25

Questão
Which of the following methods of gaining root privilege is the least advisable?
Responda
  • setuid
  • sudo
  • su
  • Log in as root

Questão 26

Questão
Which of the following shells is currently used to prevent a non-privileged user from logging in interactively?
Responda
  • /bin/nologon
  • /bin/bash
  • /bin/false
  • /bin/tsh

Questão 27

Questão
fschk can check and repair a mounted file system.
Responda
  • True
  • False

Questão 28

Questão
Which of the following commands displays recent system messages?
Responda
  • logger
  • mesg
  • dmesg
  • logprint

Questão 29

Questão
The ~/.inputrc file is used to configure which of the following history manipulation methods?
Responda
  • history
  • readline history
  • !
  • fc

Questão 30

Questão
A package manager is a software tool designed to assist system administrators with the management of software on a Linux system.
Responda
  • True
  • False

Questão 31

Questão
The ldd command is used to funnily configure a chroot environment.
Responda
  • True
  • False

Questão 32

Questão
What is the output of the command: df -h
Responda
  • A list of the mounted file systems with all size information shown in human readable form
  • A list of the mounted file systems with all size information shown in blocks
  • The fragmentation state of each disk on the system

Questão 33

Questão
Gaining root privilege on a system with multiple administrators is a bad method because it involves sharing the password between several people.
Responda
  • True
  • False

Questão 34

Questão
When 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.
Responda
  • True
  • False

Questão 35

Questão
Administrative (root) privilege on a Linux system should be granted to anyone who asks for it.
Responda
  • True
  • False

Questão 36

Questão
Which of the following is NOT an advantage of using sudo?
Responda
  • Customized privilege settings can be created on a group-by-group basis
  • Customized privilege settings can be created on a user-by-user basis
  • No one needs to know the root password
  • The root password is shared amongst system administrators

Questão 37

Questão
Which of the following commands lists the contents of a package?
Responda
  • rpm -q <package>
  • rpm -qa <package>
  • rpm -ql <package>
  • rpm -qf <package>

Questão 38

Questão
Which of the following commands will report weather the sshd daemon is set to automatically start at some target level?
Responda
  • systemctl is-enabled sshd
  • systemctl is-active sshd
  • systemctl isactive sshd
  • systemctl isenabled sshd

Questão 39

Questão
What does the 2>&1 mean in the following command? find * >/tmp/find_out.txt 2>&1
Responda
  • Standard error is sent to the user's terminal screen
  • Standard output is sent to the same file or device as standard error
  • Standard error is sent to the same file or device as standard output
  • Standard error is sent to the bit bucket

Questão 40

Questão
What is the output of the following command? du -s
Responda
  • A single line of output giving the size and contents of the current directory and all its subdirectories in blocks
  • A single line of output giving the size of contents of the current directory and all its subdirectories in human readable form
  • A summary of the sizes of all files and directories in the current directory in blocks
  • A summary of the sizes of all files and directories in the current directory in human readable form

Questão 41

Questão
Which 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 &
Responda
  • 1
  • 3
  • All Processes
  • 2

Questão 42

Questão
The growfs command can be used to increase the size of a filesystem.
Responda
  • True
  • False

Questão 43

Questão
TCPWrappers is a daemon based security facility that limits access to the daemon based on IP address.
Responda
  • True
  • False

Questão 44

Questão
What program is running in the process associated with a physical or virtual terminal prior to a user logging on?
Responda
  • tsh
  • login
  • bash
  • getty

Questão 45

Questão
The 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.
Responda
  • True
  • False

Questão 46

Questão
Security Enhanced Linux implements a discretionary access control tool.
Responda
  • True
  • False

Questão 47

Questão
The default installation of SELinux uses which of the following mode and policy configurations?
Responda
  • PERMISSIVE and Multilevel Security
  • ENFORCING and Multilevel Security
  • PERMISSIVE and Targeted
  • ENFORCING and Targeted

Questão 48

Questão
Functions 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.
Responda
  • True
  • False

Questão 49

Questão
Which of the following commands sets the X windows pointing device (mouse) for right-handed use?
Responda
  • xmodmap -e 'pointer = 3 2 1 4 5'
  • xmodmap -e 'pointer = 3 1 2 4 5'
  • xmodmap -e 'pointer = 1 2 3 4 5'
  • xmodmap -e 'pointer = 1 3 2 4 5'

Questão 50

Questão
What is the default desktop environment used by Fedora and RedHat systems?
Responda
  • GNOME
  • multi-user.target
  • graphical.target
  • KDE

Questão 51

Questão
Given 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?
Responda
  • ~/testdir/ ~ ~/testdir/dir2/dir2-1 ~/testdir/dir1/dir1-1
  • ~/testdir/dir1/dir1-1 ~/testdir/dir2/dir2-1 ~/testdir/ ~
  • ~/testdir/dir2/dir2-1 ~/testdir/dir1/dir1-1 ~/testdir/ ~
  • ~/testdir/ ~/testdir/dir2/dir2-1 ~/testdir/dir1/dir1-1 ~

Questão 52

Questão
Which of the following commands clears the screen on a Linux terminal?
Responda
  • cls
  • clear
  • blank

Questão 53

Questão
Some 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.
Responda
  • True
  • False

Questão 54

Questão
What does the parameter $@ contain?
Responda
  • This parameter contains all of the parameters of the current shell script including the name of the script
  • This parameter contains all of the parameters of the current shell script except the name of the script
  • The last parameter of the current script
  • The first parameter of the current script

Questão 55

Questão
Which of the following commands includes a processes' PID in their output?
Responda
  • jobs -l
  • ps
  • ls
  • jobs

Questão 56

Questão
When an external command is invoked from a bash shell it always runs as a separate process from the shell's process.
Responda
  • True
  • False

Questão 57

Questão
The source builtin command is used to load/reload startup files.
Responda
  • True
  • False

Questão 58

Questão
If the su command is issued without specifying a user, which user is assumed?
Responda
  • root
  • The user issuing the command
  • A random user account

Questão 59

Questão
Which of the following are characteristics of the xfs file system?
Responda
  • Very large file system sizes
  • Journaling
  • Live file system expansion and defragmentation
  • Poor backup functionality when compared to ext4

Questão 60

Questão
What is the result of issuing the following bash builtin command? history 20
Responda
  • Lists the 20 most recently used commands
  • Lists 20 randomly chosen commands from history
  • Lists the 20 least recently used commands

Questão 61

Questão
What is the effect of placing the line ALL: ALL into the /etc/hosts.deny files while leaving /etc/hosts.allow empty?
Responda
  • Allow connections to all daemons from any IP address
  • Disallow connections to all daemons from any IP address except 127.0.0.1
  • Disallow connections to all daemons from any IP address

Questão 62

Questão
What is the purpose of the dirs command?
Responda
  • Display the contents of the directory stack
  • Swap entries in the directory stack
  • Remove entries from the directory stack
  • Add entries to the directory stack

Questão 63

Questão
What does the following command do? yum group install Robotics
Responda
  • Install all packages whose names contain with Robotics
  • Install all packages whose names begin with Robotics
  • Install all packages whose names end with Robotics
  • Installs of the packages contained within the group named Robotics

Questão 64

Questão
What is the change command used for?
Responda
  • Change the expiry date on a user's account
  • calculate a user's age based on the information in that user's account
  • Change the date of birth information stored in a user's account
  • change password ageing parameters associated with a user's account

Questão 65

Questão
The CUPS printer server offers which of the following facilities?
Responda
  • Printer hardware configuration
  • Printer class (group) management
  • printer queue configuration and management
  • Print job queueing and management

Questão 66

Questão
Which of the following commands lists all of the devices (printers) configured on the local system?
Responda
  • lpinfo -v
  • lpinfo -m

Questão 67

Questão
User and group ID numbers must be unique on Linux systems.
Responda
  • True
  • False

Questão 68

Questão
Which 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?
Responda
  • at
  • cron
  • anacron

Questão 69

Questão
CUPS supports printing to: locally connected printers, networked printers, and printers shared by other computers.
Responda
  • True
  • False

Questão 70

Questão
How can CUPS be configured?
Responda
  • system-config-printers GUI program
  • Web interface
  • Command line programs
  • All of the above

Questão 71

Questão
Which of the following is the language that almost every printer will accept?
Responda
  • PCL
  • PS
  • Plain Text

Questão 72

Questão
Where is local user account information stored on a Linux system?
Responda
  • /etc/passwd and /etc/shadow
  • /etc/group and /etc/shadow
  • /etc/passwd and /etc/group

Questão 73

Questão
Which of the following is not one of the things that should be available when building and installing a new kernel?
Responda
  • Remove all previous kernels from the system
  • Backup the filesystem
  • Have the OS installation media available
  • Do not remove the last known working kernel from the system

Questão 74

Questão
It is possible to lock a user account. This is achieved by which of the following?
Responda
  • Changing the password to a single %
  • Changing the password to a single !
  • Placing a % at the beginning of the password
  • Placing a ! at the beginning of the password

Questão 75

Questão
Print servers can be built into a printer or run as a daemon on a computr system.
Responda
  • True
  • False

Questão 76

Questão
You 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?
Responda
  • tar -zxf mailer.tar.gz
  • gunzip mailer.tar.gz
  • unzip mailer.tar.gz
  • uncompress mailer.tar.gz

Questão 77

Questão
CUPS provides which of the following print job operations?
Responda
  • Accepts and queues print jobs
  • Dispatches queued print jobs to active printers
  • Notifies the requesting user when a print job is complete
  • Cancels print jobs at the user's request

Questão 78

Questão
What is the purpose of the command: yum check
Responda
  • Check for available package updates
  • Check the status of the local yum database
  • Check the status of the local RPM database

Questão 79

Questão
Which of the following commands will display a list of all available packages with 'httpd' anywhere in their names?
Responda
  • yum list avilable | grep httpd
  • yum list "httpd"
  • yum list httpd*
  • yum list *httpd

Questão 80

Questão
Given the following line from a user cron settings * * * * * /usr/bin/uptime how often will the uptime command be run?
Responda
  • once a minute
  • once a year
  • once a day
  • once an hour
  • once a month

Questão 81

Questão
Which of the following is not a reason to change the characteristics of a Linux kernel?
Responda
  • Install a web server daemon
  • Create a specialized kernel for an embedded system
  • Use a non-default kernel configuration
  • Install a new hardware driver

Questão 82

Questão
Which of the following command pairs will allow users to submit print jobs to queue prt1 without the jobs being immediately printed?
Responda
  • cupsreject prt1 cupsdisable prt1
  • cupsreject prt1 cupsenable prt1
  • cupsaccept prt1 cupsdisable prt1
  • cupsaccept prt1 cupsenable prt1

Questão 83

Questão
System-wide password rules can be set using which of the following commands?
Responda
  • system-config-users
  • system-config-authentication
  • system-config-auth
  • system-config-security

Questão 84

Questão
The rpmdev-setuptree command creates a directory structure for building packages from the course in the home directory of the user that executed the command.
Responda
  • True
  • False

Questão 85

Questão
When an rpm file is downloaded from a website rather than from a repository, which utility or utilities can be used to install it?
Responda
  • both rpm and yum
  • yum
  • Neither rpm nor yum
  • rpm

Questão 86

Questão
The kernel option names used in the /etc/sysctl.conf file and with the sysctl command are the same.
Responda
  • True
  • False

Questão 87

Questão
The 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.
Responda
  • True
  • False

Questão 88

Questão
The web interface for CUPS may have different printer definitions listed than the GUI program.
Responda
  • True
  • False

Questão 89

Questão
You 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)
Responda
  • ./configure (1)
  • Make (2)
  • make test (3)
  • make install (4)

Questão 90

Questão
On a Fedora Linux system, which of the following repositories are enabled by default?
Responda
  • fedora
  • fedora-source
  • updates
  • updates-source

Questão 91

Questão
Which of the following commands is the best one for downloading kernel source code from a repository?
Responda
  • yum install kernel.source
  • yumdownloader kernel.source
  • yum install source.kernel
  • yumdownloader --source kernel

Questão 92

Questão
The sysstat package contains a number of system statistic gathering and reporting tools. Which of the following are some tools in this package?
Responda
  • nfsstat
  • sar
  • iostat
  • netstat

Questão 93

Questão
Which of the following files, related to GRUB configurations, should never be edited directly?
Responda
  • /etc/grub.d/*
  • /boot/grub2/grub.cfg
  • /etc/default/grub

Questão 94

Questão
Which of the following packages are recommended prerequisites for building a new kernel?
Responda
  • gcc
  • rpmdevtools
  • yum-utils
  • python
  • ncurses-devel
  • libglade2-devel

Questão 95

Questão
The only way to modify kernel characteristics is to build a new, custom kernel.
Responda
  • True
  • False

Questão 96

Questão
The command yum install ntp bind will download and install which of the following items?
Responda
  • the bind package
  • all of the dependencies of the ntp package that are not already installed
  • all of the dependencies of the bind package that are not already installed
  • all updates that have not been installed for any package on the system
  • the ntp package

Questão 97

Questão
What is the purpose of the command yum-builddep kernel-3.14.27-100.fc19.src.rpm
Responda
  • Install all of the packages upon which the specified source package depends when the source within the package is built
  • Download, install and build all of the source code related to the specified package
  • Installs all of the build tools needed to build and install the sources within the specified package

Questão 98

Questão
The batch command forces scheduled jobs to run at the specified time no matter what the system load.
Responda
  • True
  • False

Questão 99

Questão
Package repositories are online storage sites for distribution packages, distribution update packages, but are never used for 3rd party packages.
Responda
  • True
  • False

Questão 100

Questão
Which of the following commands deletes the definition of printer prt1?
Responda
  • lpadmin -p prt1 -x
  • lpstat -x prt1
  • lpadmin -p prt1 -d
  • lpstat -d prt1

Questão 101

Questão
CUPS page count quotas work only with PostScript print files
Responda
  • True
  • False

Questão 102

Questão
Given the commanduseradd -s /bin/bash/bash -d /home/joan -G wheel -g staff -c "Joan Smith" joan what will Joan's primary group be?
Responda
  • staff
  • Not specified in the command
  • wheel

Questão 103

Questão
CUPS can accept print jobs from: local users and processes, and remote system.
Responda
  • True
  • False

Questão 104

Questão
What does the following command produce as output: yum list *kern*
Responda
  • A list of all available package with the string 'kern' anywhere in its name
  • A list of all installed package with the string 'kern' anywhere in its name
  • A list of all known package without the string 'kern' anywhere in its name
  • A list of all known package with the string 'kern' anywhere in its name

Questão 105

Questão
Where are user cron job definitions stored?
Responda
  • /var/spool/cron/*
  • /var/cron/*
  • /ext/crontab
  • /etc/cron.*

Questão 106

Questão
By default, CUPS accepts print jobs from both local users and processes, and remote system.
Responda
  • True
  • False

Questão 107

Questão
Which of the following commands will display the current value of the vm.drop_caches kernel parameter?
Responda
  • sysctl
  • sysctl -w vm.drop_caches=1
  • sysctl -a
  • sysctl vm.drop_caches

Questão 108

Questão
Which of the following commands can be used to create a new kernel configuration from scratch?
Responda
  • make config
  • make menuconfig
  • make gconfig
  • make oldconfig

Questão 109

Questão
The 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.
Responda
  • True
  • False

Questão 110

Questão
When 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>
Responda
  • True
  • False

Questão 111

Questão
A good approach to backing up a Linux system is to perform periodic full backups with incremental backups in between them.
Responda
  • True
  • False

Questão 112

Questão
For 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?
Responda
  • 389 udp and tcp
  • 53 tcp and udp
  • 631 tcp and udp
  • 81 tcp and udp

Questão 113

Questão
Which of the following commands can be used to backup a Linux system?
Responda
  • cpio
  • dump
  • rsync
  • tar

Questão 114

Questão
What does the $(arch) of the following command do? rpmbuild -bp --target $(arch) kernel.spec
Responda
  • Retrieves the value of the arch environment variable and substitutes it into the command
  • Runs the arch command and substitutes the result in the command

Questão 115

Questão
Which of the following is not a function of host-based print servers?
Responda
  • Manage print queues
  • Assign an IP address to a network printer
  • Monitor print and queue status
  • Create a print queue and associate it with a printer

Questão 116

Questão
Which of the following commands can be used to create groups on a Linux system?
Responda
  • useradd
  • system-config-users
  • groupmod
  • groupadd

Questão 117

Questão
Every 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?
Responda
  • 0 - 999 system users 1000 - 65535 regular users
  • 0 - 499 system users 500 - 32767 system users
  • 0 - 499 system users 500 - 65535 regular users
  • 0 - 999 system users 1000 - 35767 regular users

Questão 118

Questão
The 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
Responda
  • True
  • False

Questão 119

Questão
Which of the following are methods for permanently changing the configuration of a Linux kernel?
Responda
  • editing the file /etc/sysctl.conf and rebooting the system
  • editing the files in, or adding new files to /etc/sysctl.d and rebooting the system
  • setting options using the sysctl command
  • building and installing a new kernel and then rebooting the system

Questão 120

Questão
Which of the following is not a protocol that CUPS supports for communicating with printers?
Responda
  • IPP
  • SMTP
  • SMB
  • LPD/LPR

Questão 121

Questão
The yum utility should be used to install, update and remove software on a Linux system whenever possible.
Responda
  • True
  • False

Questão 122

Questão
Which 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?
Responda
  • Size
  • Frequency of use
  • Time to load
  • Execution complexity

Semelhante

Estatuto
renathanjo2
Matemática - Triângulos
Felipe Perreira
SUBSTANTIVOS
Viviana Veloso
RACIOCÍNIO LÓGICO
Viviana Veloso
Sistema Respiratório
GoConqr suporte .
PROTAGONISMO DO ALUNO
Alessandra S.
Modelos Atômicos
Marcos do Help
GoConqr para Professores
Lilian Arruda
Liderança Militar - Exercício 2
Ibsen Rodrigues Maciel
Membrana plasmática
Maria Eduarda Saladine