RHCSA Practice Test Questions and Answers All Correct
10 vues 0 achat
Cours
RHCSA
Établissement
RHCSA
RHCSA Practice Test Questions and Answers All Correct
What command can be used to see disk usage - Answer-du -sh <path>
Ex: du -sh /etc
What command can be used to see free disk space - Answer-df -h <path>
Ex: df -h /etc
What command do you use to create a bzip2 tar file ...
RHCSA Practice Test Questions
and Answers All Correct
What command can be used to see disk usage - Answer-du -sh <path>
Ex: du -sh /etc
What command can be used to see free disk space - Answer-df -h <path>
Ex: df -h /etc
What command do you use to create a bzip2 tar file - Answer-tar cfj etc.tar.bz2 /etc
What tool should be used instead of scp to transfer files between systems that is more
secure - Answer-sftp
Ex: sftp pi@192.168.2.5 /home/pi
What is a more robust copy command that can be used to keep directories in sync
locally and remotely - Answer-rsync
What two command can you use to download an rpm from a repo - Answer-
yumdownloader <package name>
dnf download <package name>
Ex: yumdownloader nmap
Ex: dnf download nmap
What does RPM stand for - Answer-Red Hat package management
What command utility can manage what DNS servers are being used - Answer-nmcli
What two commands can you use to resolve a DNS record - Answer-dig <hostname>
getent hosts <hostname>
If you want to look up what rpm a file came from on a system you need to use what
command and option - Answer-rpm -qf /usr/bin/bzip2
bzip2-1.0.8-8.el9.x86_64
-q = quiet
-f = file
,What package does the bzip2 command come from - Answer-bzip2
What command do you use to list the available rpms that can be installed using wildcard
searching - Answer-dnf list 'keyword*'
Ex: dnf list 'bzip*'
If you want to search for a keyword in a package name you can use what command -
Answer-dnf search 'bzip'
What command and option lets you see the history of previous dnf command that were
ran - Answer-dnf history
If you wanted to perform the opposite action of a dnf command in its history you can use
what command and what option - Answer-dnf history undo <#>
Ex: dnf history undo 10
What command do you use to disable a repo - Answer-dnf config-manager --disable
<repo name>
Ex: dnf config-manager --disable rht-updates
What systemd unit does the Web Console run under - Answer-cockpit.socket
What command can be used to gather info that can then be uploaded to Red Hat
suppot portal to get support - Answer-sos
What tool does Red Hat offer to assess the environment proactively and identify threats.
What command and option do you use to enable it. - Answer-Insights client
insights-client --register
What are the two main directories where binary files are placed and what is the
difference - Answer-/usr/local/bin
/usr/local/sbin - s in sbin means system administration
What is the if statement structure in bash - Answer-if [ check condition = value ]
then
else
fi
How do you reference a variable in bash inside of double quotes - Answer-
"${var_name}"
, How do you resolve a command in bash that is inside of double quotes - Answer-"$(
command )"
What is the structure for a for loop in bash - Answer-for i in array
do command $i
done
What manual has details about the comparison operators of bash - Answer-man test
What command and option will list the crontab setup for a user - Answer-crontab -l
What command and option will let you edit a user's crontab file - Answer-crontab -e
What many fields does crontab has under a user profile and the root one located at
/etc/crontab? What is the different field? - Answer-user profile - 6
root - 7
username
What directory does user crontabs get placed in? - Answer-/var/spool/cron
If not using a set time folder for crontab's for the root user you should put the crontab
files in what directory - Answer-/etc/cron.d/
What manual has details about temp file cleanup scripts - Answer-man tmpfiles.d
What service is used for cleaning up temp files - Answer-systemd-tmpfiles-setup.service
What is the priority range of nice for a process. Which is the highest priority and which is
the lowest - Answer--20 to 19
-20 = Highest
19 = Lowest
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
Les avantages d'acheter des résumés chez Stuvia:
Qualité garantie par les avis des clients
Les clients de Stuvia ont évalués plus de 700 000 résumés. C'est comme ça que vous savez que vous achetez les meilleurs documents.
L’achat facile et rapide
Vous pouvez payer rapidement avec iDeal, carte de crédit ou Stuvia-crédit pour les résumés. Il n'y a pas d'adhésion nécessaire.
Focus sur l’essentiel
Vos camarades écrivent eux-mêmes les notes d’étude, c’est pourquoi les documents sont toujours fiables et à jour. Cela garantit que vous arrivez rapidement au coeur du matériel.
Foire aux questions
Qu'est-ce que j'obtiens en achetant ce document ?
Vous obtenez un PDF, disponible immédiatement après votre achat. Le document acheté est accessible à tout moment, n'importe où et indéfiniment via votre profil.
Garantie de remboursement : comment ça marche ?
Notre garantie de satisfaction garantit que vous trouverez toujours un document d'étude qui vous convient. Vous remplissez un formulaire et notre équipe du service client s'occupe du reste.
Auprès de qui est-ce que j'achète ce résumé ?
Stuvia est une place de marché. Alors, vous n'achetez donc pas ce document chez nous, mais auprès du vendeur Scholarsstudyguide. Stuvia facilite les paiements au vendeur.
Est-ce que j'aurai un abonnement?
Non, vous n'achetez ce résumé que pour $13.59. Vous n'êtes lié à rien après votre achat.