wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

NextGen

Total questions: 40

Worksheet time: 40mins

Name
Class
Date
1.

You want to install a test environment to practice for the RHCSA/RHCE exams. Which of the following distributions should you avoid?

a)

The most recent Fedora version

b)

CentOS 7

c)

Scientific Linux 7

d)

RHEL 7

2.

Which of the following features is not just available in RHEL but also in CentOS?

a)

Hardware certification

b)

Software certification

c)


The right to make support calls

d)

Software updates

3.

Why should you install the server with a GUI installation pattern?

a)

To prepare for RHCSA/RHCE, you need some tools that run in a GUI only.

b)

The minimal installation is incomplete.

c)

If you do not install a GUI immediately, it is very hard to add it later.

d)
  • The Server with GUI is the default installation that is recommended by Red Hat.


4.

Which is the default file system that is used in RHEL 7?

a)

Ext3

b)

Ext4

c)

XFS

d)
  • Btrfs


5.

Which feature is supported in Ext4 but not in XFS?

a)

Shrinking the file system

b)


Snapshots

c)

ile system quota

d)
  • A maximum size that goes beyond 2TB


6.

Which of the following enables you to redirect standard output as well as errors to a file?

a)


1&2> file

b)

2>&1 file

c)

>1&2 file

d)
  • 1>2& file


7.

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.)

a)


/etc/profile

b)


/etc/bashrc

c)

~/.bash_profile

d)

~/.bashrc

8.

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?

a)

An internal command is preventing the startup of the script.

b)

Users are not allowed to run scripts

c)


The directory that contains the script is not in the PATH.

d)

The script does not have appropriate permissions.

9.

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?

a)

ls > less

b)


ls >> less

c)


ls >| less

d)


ls | less

10.

A user wants to remove his complete history. Which of the following approaches would do that?

a)

Remove the ~/.bash_history file and type history -c

b)

Type history -c

c)

Remove the ~/.bash_history file.

d)


Type history -c and close the current shell.

11.

Under which directory would you expect to find nonessential program files?

a)


/boot

b)


/bin

c)

/sbin

d)
  • /usr


12.

Under which directory would you expect to find log files?

a)


/proc

b)

/run

c)

/var

d)
  • /usr


13.

Which of the following directories would typically not be mounted on its own dedicated device?

a)


/etc

b)

/boot

c)

/home

d)


/usr

14.

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)?

a)


mount

b)

mount -a

c)

df -T

d)

du -h

15.

Which command enables you to show all files in the current directory so that the newest files are listed last?

a)


ls -lRt

b)

ls -lrt

c)

ls -alrt

d)


ls -alr

16.

Which command was developed to show only the first 10 lines in a text file?

a)

head

b)

top

c)

first

d)


cat

17.

Which command enables you to count the number of words in a text file?

a)

count

b)


list

c)


ls -l

d)


wc

18.


Which key on your keyboard do you use in less to go to the last line of the current text file?

a)

End

b)

PageDown

c)

q

d)

G

19.

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

a)

-d

b)


-c

c)

-t

d)


-x

20.

Which option is missing if you want to sort the third column of the output of the command ps aux ?
ps aux | sort ...

a)

-k3

b)

-s3

c)

-k f 3

d)


-f 3

21.

Sometimes a server reboot may be necessary. Which of the following is not typically one of them?

a)

To recover from serious problems such as server hangs and kernel panics

b)


To apply kernel updates

c)


To apply changes to kernel modules that are used and because of that cannot be reloaded easily

d)


To apply changes to the network configuration

22.

Which of the following is true about remote access to Linux servers from a Windows environment?

a)

Open a shell terminal on Windows and type ssh . The ssh command is available as a default part of the Windows operating system.

b)


Configure Remote Access on Windows if you want to access Linux servers running the sshd process.

c)


Install the PuTTY program on Windows to access sshd services on Linux from Windows.

d)

You cannot remotely access Linux machines from Windows.

23.

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?

a)


/etc/ssh/remote_hosts

b)

/etc/ssh/known_hosts

c)


~/.ssh/remote_hosts

d)


~/.ssh/known_hosts

24.

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?

a)


Host *

b)

TunnelX11 yes

c)

ForwardX11 yes

d)

Xclient yes

25.

Which of the following statements about key-based SSH authentication is true?

a)

After creating the key pair, you need to copy the private key to the remote server.

b)

Use scp to copy the public key to the remote server.

c)

Use ssh-copy-id to copy the public key to the remote server.

d)
  • Use ssh-keygen on the server to generate a key pair that matches the client keys.


26.

Which command enables you to get information about password properties such as password expiry?

a)


chage -l

b)


usermod --show

c)


passwd -l

d)

chage --show

27.

Which of the following files is not processed when a user starts a login shell ?

a)


/etc/profile

b)


/etc/.profile

c)

~/.bashrc

d)
  • ~/.bash_profile


28.

Which of the following is not a property of a typical LDAP server?

a)


It is hierarchical.

b)


It is replicated.

c)

It is secure by default.

d)


It is distributed.

29.

Which of the following is not a valid tool in RHEL7 to configure LDAP authentication?

a)


system-config-authentication

b)

authconfig

c)

authconfig-tui

d)

authconfig-gtk

30.

When setting up authentication against an LDAP server, you need to specify different items. Which of the following is not part of them?

a)

Base DN

b)

LDAP URI

c)

TLS certificate

d)
  • Administrator name


31.

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?

a)

The setfacl command is not installed on your computer.

b)


You are making an error typing the command.

c)


The user or group to which you want to grant ACLs does not exist .

d)

The file system lacks ACL support

32.

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?

a)

setfacl -m d:g:sales:rw /data

b)

setfacl -m d:g:sales:rwx /data

c)


setfacl -R -m g:sales:rwx /data

d)

  • setfacl -R -m g:sales:rw /data


33.

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?

a)

setfacl -m d:o::- /data

b)

setfacl -m o::- /data

c)

umask 027 /data

d)


umask 027

34.

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.

a)

740

b)

750

c)

027

d)

047

35.

Which command enables you to check all attributes that are currently set on myfile.

a)


ls --attr myfile

b)

getattr myfile

c)


lsattr myfile

d)

  • listattr myfile


36.

Which man page contains excellent examples on nmcli usage?

a)

nmcli

b)

nmcli-examples

c)

nm-config

d)

nm-tools

37.

Which of the following is the name of the text user interface to specify network connection properties?

a)


system-config-network

b)


system-config-networkmanager

c)

nmtui

d)


nmcli

38.

Which of the following commands shows correct syntax to set a fixed IP address to a connection using nmcli?

a)

nmcli con add con-name “static” ifname eth0 autoconnect no type ethernet ipv4 10.0.0.10/24 gw4 10.0.0.1

b)

nmcli con add con-name “static” ifname eth0 autoconnect no type ethernet ipv4 10.0.0.10/24 gwv4 10.0.0.1

c)

nmcli con add con-name “static” ifname eth0 type ethernet ipv4 10.0.0.10/24 gw4 10.0.0.1

d)
  • nmcli con add con-name “static” ifname eth0 autoconnect no type ethernet ip4 10.0.0.10/24 gw4 10.0.0.1


39.

Which of the following is not a recommended way to specify which DNS servers to use?

a)

Edit /etc/resolv.conf

b)

Set the DNS options in /etc/sysconfig/network-scripts/ifcfg-<ID>

c)


Set the DNS server names using nmcli

d)

Use nmtui to set the DNS server names

40.

In which configuration file would you set the hostname?

a)


/etc/sysconfig/network

b)


/etc/sysconfig/hostname

c)

/etc/hostname

d)

/etc/defaults/hostname