1 RHCSA Exam/ Practice Questions with Correct Verified Answers/ Latest Update 2024/ Rated A+
What is Cockpit? - ANS - A server Management Tool
How do you check if a service is running? - ANS - systems status
How do you start a service? - ANS - systems start
How do you enable a service on startup? - ANS - systems enable
How do you set the active tuning profile? - ANS - tuned-Adm profile
How do you stop using a tuning profile? - ANS - tuned-Adm off
What does a process' nice level indicate? - ANS - The priority it has in using CPU time
Will a process with a higher nice value or lower nice value receive higher CPU time priority? - ANS - Lower nice values equates to higher priority
What are the maximum and minimum nice values for processes? - ANS - 19 (lowest priority), -20 (highest priority)
Can non-privileged users adjust the nice level of processes? - ANS - Yes. But they may only raise the nice level of their own. They cannot lower the nice level of their processes, and they cannot adjust the nice level of other users' processes.
- / 3
2 How do you start a job with a specified nice level? - ANS - nice -n
How do you display the first 10 lines of a file? - ANS - head
Where is the main configuration file for sudor? - ANS - /etc./studiers
How would you display the value of a variable? - ANS - echo $
How do you display the first 5 lines of a file? - ANS - head -5
How do you display the last 15 lines of a file? - ANS - tail -15
How do you create a user? - ANS - user add
How do you change a user's primary group? - ANS - user mod
How do you change a user's supplementary groups? - ANS - user mod
How do you add more groups to a user's supplementary groups? - ANS - user mod
How do you specify a home directory for a user account? - ANS - user mod
Which directory contains user home directories? - ANS - /home
Which directory contains temporary files? - ANS - /tamp
Which directory contains dynamic data, such as for databases and websites? - ANS - /var 2 / 3
3
How do you Secure Shell into another system? - ANS - ssh
How do you execute commands on a remote system via Secure Shell without actually opening a new shell? - ANS - ssh
How do you generate a public key and private key file for SSH authentication? - ANS - ssh-keygen
How do you export a public key for SSH authentication on a different machine? - ANS - ssh-copy-id
How do you export a *specific* public key for SSH authentication on a different machine? - ANS - ssh- copy-id
If an SSH authentication key has a passphrase, how do you cache that passphrase on the local machine for password less authentication? - ANS - 1. eval $(ssh-agent)
- ssh-add
Which directory is the administrative superuser's home directory? - ANS - /root
Which directory contains regular commands and utilities? - ANS - /us/bin
Which directory contains non-persistent process runtime data? - ANS - /run
Which directory contains installed software programs and libraries? - ANS - /us
How do you create a directory? - ANS - mudar
How do you copy a file? - ANS - cp
- / 3