RHCSA Practice Questions and Answers (100% Correct)
What two commands can be used to manage password properties -
Answer✔️✔️-passwd
chage
What chmod option need to be used to add delete only files they own -
Answer✔️✔️-o+t
What command is use to create symlinks between files - Answer✔️✔️-ln
Command to create tar files - Answer✔️✔️-tar
What command is used to create a log entry - Answer✔️✔️-logger
What command is used to modify the timezone - Answer✔️✔️-timedatectl
What two commands can be used to modify the network settings -
Answer✔️✔️-nmcli
nmtui
What command modifies the hostname - Answer✔️✔️-hostnamectl
If it asks to create a caonical hostname that means it wants you to add the
hostname to what - Answer✔️✔️-/etc/hosts
How do you format the option on date to modify the format of the output -
Answer✔️✔️-date +<format option>
1
,©SOPHIABENNET@2024/2025 Tuesday, August 20, 2024 10:21 AM
Ex: date +%R
What command lets you see the type of file a file is - Answer✔️✔️-file
How do you run a command again from history by its number entry in
history - Answer✔️✔️-!<number>
Ex: !45
How do you format the touch command to create multiple files with an
array of options. Explain both a list and a range. - Answer✔️✔️-touch
folder{1,2}_file{1..5}
How do you cd back to a directory you were just in - Answer✔️✔️-cd -
What option can you use to make a man page output to postscript -
Answer✔️✔️--t
Ex: man -t passwd > passwd.ps
What shortcut do you use to enter the visual mode of vim - Answer✔️✔️-v
What file can be modified to set the default password policy settings for
new users - Answer✔️✔️-/etc/login.defs
When making custom sudoers modifications where should you place
these? - Answer✔️✔️-/etc/sudoers.d/<file>
What command will list the cpu details - Answer✔️✔️-lscpu
2
, ©SOPHIABENNET@2024/2025 Tuesday, August 20, 2024 10:21 AM
How do you send a command to be a job - Answer✔️✔️-Add a & at the end
What command do you use with top to save the current configuration as
default for the user - Answer✔️✔️-W (capital)
Command to suspend, kill, etc a process - Answer✔️✔️-pkill
Command you can use to filter though logs - Answer✔️✔️-journalctl
Ex: journalctl --since "30 minutes ago" --until "now"
How do you make logger write to a particular facility and priority -
Answer✔️✔️-logger -p <facility>.<.priority> "Log Message"
Ex: logger -p authpriv.alert "there is an alert"
Tip: -p option supports tab completion
What command should you use to install a downloaded rpm file directly -
Answer✔️✔️-dnf
Ex: dnf install <file name>.rpm
When using find to filter by size how would you specify below 100MB, but
above 50MB - Answer✔️✔️-find / -size -100M -size +50M
3