Free RHCSA EX200 Questions and Answers — Questions and Answers
Question 1: How can a cron job be created for a specific user?
- Open the crontab file in the user home directory and add what you want to add
- Log in as that user and type crontab -e to open the cron editor (Correct answer)
- As root, type crontab -u username -e (Correct answer)
- As root, type crontab -e username
Correct answer: Log in as that user and type crontab -e to open the cron editor
Logging in as the target user and running crontab -e creates a cron job in that user's own crontab using the proper editor. Editing a file directly in the home directory is not how user crontabs are managed, and 'crontab -e username' is invalid syntax—the -e flag doesn't accept a username argument.
Question 2: Your goal is to access an SMB share. Which of the following commands exemplifies the appropriate syntax?
- mount -o username=sambauser1@//server/share /somewhere
- mount -o username=sambauser1 //server/share /somewhere (Correct answer)
- mount -o uname=sambauser1 //server/share /somewhere
- mount sambauser1@//server/share /somewhere
Correct answer: mount -o username=sambauser1 //server/share /somewhere
The correct syntax is mount -o username=sambauser1 //server/share /somewhere, using the double-slash UNC path and the proper 'username' option. The other choices use an invalid '@' separator in the path, the wrong option name 'uname' instead of 'username', or omit the required -o option entirely.
Question 3: Where does a system obtain its first supply of time when it starts up?
- Network time
- NTP
- Software time
- The hardware clock (Correct answer)
Correct answer: The hardware clock
When a system is started, it initially gets the system time from the hardware clock, also known as the real-time clock (RTC) or the BIOS clock. The hardware clock is a component of the computer's motherboard that keeps track of the current time and date even when the system is powered off or restarted.
Question 4: In order to find SELinux log messages, you should grep the log file. What strings from the list below should you run grep on?
- avc (Correct answer)
- selinux
- deny
- violation
Correct answer: avc
To grep the log file for SELinux log messages, you should use the string "avc" with the grep command. The "avc" string is a common abbreviation for "Access Vector Cache," which is specific to SELinux and represents SELinux audit or error log messages.
Question 5: Which device file is connected to the virtual console that appears after pressing Alt-F6?
- /dev/tty6 (Correct answer)
- /dev/console6
- /dev/pts/6
- /dev/vty6
Correct answer: /dev/tty6
The device file associated with the virtual console that is opened after using the Alt-F6 key sequence is /dev/tty6. In Linux systems, the /dev/tty prefix is used to represent terminal devices. Each virtual console is assigned a unique number, and /dev/tty6 specifically represents the sixth virtual console.
Question 6: You cannot continue with the installation once you have chosen your root password. What is the most probable explanation?
- If an unsecure password is used, you need to click Done twice. (Correct answer)
- The password is unsecure, and unsecure passwords are not accepted.
- The password does not meet requirements in the password policy.
- You also need to create a user.
Correct answer: If an unsecure password is used, you need to click Done twice.
The most likely reason for being unable to proceed in the installation after setting the root password is that the password you entered is considered weak or insecure. In some installation processes, there are specific password strength requirements that need to be met to ensure security. If the password you entered does not meet these requirements, the installation may not allow you to proceed until a stronger password is provided.
Question 7: Which set of keys allows you to stop an active interactive shell job?
- Ctrl-Z
- Ctrl-Break
- Ctrl-C (Correct answer)
- Ctrl-D
Correct answer: Ctrl-C
The key combination that enables you to cancel a current interactive shell job is "Ctrl-C". Pressing the Ctrl key and the C key simultaneously interrupts the currently running command or job in the shell and returns you to the shell prompt.
How can a cron job be created for a specific user?