Font size
WorksheetsNextGen
Total questions: 40
Worksheet time: 40mins
You want to install a test environment to practice for the RHCSA/RHCE exams. Which of the following distributions should you avoid?
The most recent Fedora version
CentOS 7
Scientific Linux 7
RHEL 7
Which of the following features is not just available in RHEL but also in CentOS?
Hardware certification
Software certification
The right to make support calls
Software updates
Why should you install the server with a GUI installation pattern?
To prepare for RHCSA/RHCE, you need some tools that run in a GUI only.
The minimal installation is incomplete.
If you do not install a GUI immediately, it is very hard to add it later.
The Server with GUI is the default installation that is recommended by Red Hat.
Which is the default file system that is used in RHEL 7?
Ext3
Ext4
XFS
Btrfs
Which feature is supported in Ext4 but not in XFS?
Shrinking the file system
Snapshots
ile system quota
A maximum size that goes beyond 2TB
Which of the following enables you to redirect standard output as well as errors to a file?
1&2> file
2>&1 file
>1&2 file
1>2& file
You are looking for a variable that is set in a bash login shell for all users. Which of the following files is the most likely location where this variable is set? (Choose two.)
/etc/profile
/etc/bashrc
~/.bash_profile
~/.bashrc
A user has created a script with the name myscript. He tries to run it using the command myscript , but it is not started. The user has verified that the script permissions are set as executable. Which of the following is the most likely explanation?
An internal command is preventing the startup of the script.
Users are not allowed to run scripts
The directory that contains the script is not in the PATH.
The script does not have appropriate permissions.
You need the output of the command ls to be used as input for the less command. Which of the following examples will do that for you?
ls > less
ls >> less
ls >| less
ls | less
A user wants to remove his complete history. Which of the following approaches would do that?
Remove the ~/.bash_history file and type history -c
Type history -c
Remove the ~/.bash_history file.
Type history -c and close the current shell.
Under which directory would you expect to find nonessential program files?
/boot
/bin
/sbin
/usr
Under which directory would you expect to find log files?
/proc
/run
/var
/usr
Which of the following directories would typically not be mounted on its own dedicated device?
/etc
/boot
/home
/usr
Which of the following commands would give the most accurate overview of mounted disk devices (without showing much information about mounted system devices as well)?
mount
mount -a
df -T
du -h
Which command enables you to show all files in the current directory so that the newest files are listed last?
ls -lRt
ls -lrt
ls -alrt
ls -alr
Which command was developed to show only the first 10 lines in a text file?
head
top
first
cat
Which command enables you to count the number of words in a text file?
count
list
ls -l
wc
Which key on your keyboard do you use in less to go to the last line of the current text file?
End
PageDown
q
G
Which option is missing from the following command, assuming that you want to filter the first field out of the /etc/passwd file and assuming that the character that is used as the field delimiter is a:? cut .... : -f 1 /etc/passwd
-d
-c
-t
-x
Which option is missing if you want to sort the third column of the output of the command ps aux ?
ps aux | sort ...
-k3
-s3
-k f 3
-f 3
Sometimes a server reboot may be necessary. Which of the following is not typically one of them?
To recover from serious problems such as server hangs and kernel panics
To apply kernel updates
To apply changes to kernel modules that are used and because of that cannot be reloaded easily
To apply changes to the network configuration
Which of the following is true about remote access to Linux servers from a Windows environment?
Open a shell terminal on Windows and type ssh . The ssh command is available as a default part of the Windows operating system.
Configure Remote Access on Windows if you want to access Linux servers running the sshd process.
Install the PuTTY program on Windows to access sshd services on Linux from Windows.
You cannot remotely access Linux machines from Windows.
What is the name of the file in which the public key fingerprint of the SSH servers you have connected to in the past are stored?
/etc/ssh/remote_hosts
/etc/ssh/known_hosts
~/.ssh/remote_hosts
~/.ssh/known_hosts
To allow graphical applications to be used through an SSH session, you can set a parameter in the /etc/ssh/ssh_config file. Using this parameter makes it unnecessary to use the -X command-line option each time an SSH session is initiated. Which of the following parameters should be used?
Host *
TunnelX11 yes
ForwardX11 yes
Xclient yes
Which of the following statements about key-based SSH authentication is true?
After creating the key pair, you need to copy the private key to the remote server.
Use scp to copy the public key to the remote server.
Use ssh-copy-id to copy the public key to the remote server.
Use ssh-keygen on the server to generate a key pair that matches the client keys.
Which command enables you to get information about password properties such as password expiry?
chage -l
usermod --show
passwd -l
chage --show
Which of the following files is not processed when a user starts a login shell ?
/etc/profile
/etc/.profile
~/.bashrc
~/.bash_profile
Which of the following is not a property of a typical LDAP server?
It is hierarchical.
It is replicated.
It is secure by default.
It is distributed.
Which of the following is not a valid tool in RHEL7 to configure LDAP authentication?
system-config-authentication
authconfig
authconfig-tui
authconfig-gtk
When setting up authentication against an LDAP server, you need to specify different items. Which of the following is not part of them?
Base DN
LDAP URI
TLS certificate
Administrator name
You are trying to use the setfacl command to set ACLs on the directory /data, but you are getting an “operation not supported” message. Which of the following is the most likely explanation?
The setfacl command is not installed on your computer.
You are making an error typing the command.
The user or group to which you want to grant ACLs does not exist .
The file system lacks ACL support
Which of the following commands grants rw permissions for the group sales to all new files that will be created in the /data directory and all of its subdirectories?
setfacl -m d:g:sales:rw /data
setfacl -m d:g:sales:rwx /data
setfacl -R -m g:sales:rwx /data
setfacl -R -m g:sales:rw /data
Which command enables you to make sure that others have no access to any new files that will be created in the /data directory, assuming that you want others to have read permissions on all other files?
setfacl -m d:o::- /data
setfacl -m o::- /data
umask 027 /data
umask 027
Which of the following umask settings meets the following requirements:
--> Grants all permissions to the owner of the file.
--> Grants read permissions to the group owner of the file.
--> Grants no permissions to others.
740
750
027
047
Which command enables you to check all attributes that are currently set on myfile.
ls --attr myfile
getattr myfile
lsattr myfile
listattr myfile
Which man page contains excellent examples on nmcli usage?
nmcli
nmcli-examples
nm-config
nm-tools
Which of the following is the name of the text user interface to specify network connection properties?
system-config-network
system-config-networkmanager
nmtui
nmcli
Which of the following commands shows correct syntax to set a fixed IP address to a connection using nmcli?
nmcli con add con-name “static” ifname eth0 autoconnect no type ethernet ipv4 10.0.0.10/24 gw4 10.0.0.1
nmcli con add con-name “static” ifname eth0 autoconnect no type ethernet ipv4 10.0.0.10/24 gwv4 10.0.0.1
nmcli con add con-name “static” ifname eth0 type ethernet ipv4 10.0.0.10/24 gw4 10.0.0.1
nmcli con add con-name “static” ifname eth0 autoconnect no type ethernet ip4 10.0.0.10/24 gw4 10.0.0.1
Which of the following is not a recommended way to specify which DNS servers to use?
Edit /etc/resolv.conf
Set the DNS options in /etc/sysconfig/network-scripts/ifcfg-<ID>
Set the DNS server names using nmcli
Use nmtui to set the DNS server names
In which configuration file would you set the hostname?
/etc/sysconfig/network
/etc/sysconfig/hostname
/etc/hostname
/etc/defaults/hostname
