RHCSA - RH124 Comprehensive Questions
And Answers Latest upload 2024/2025 with 100% verified
Solutions
Allow any user to execute a command in context of file2 group owner - ANSWER-setgroupid: chmod g+s
OR chmod 2755 file2
Set permissions of dir5 so only owner of files inside direectory they own can delete - ANSWER-sticky bit:
chmod o+t dir5 OR chmod 1755 dir5
What would a directory's permissions in ls look like if permissions are 7733 - ANSWER-drws-ws-wt
Where can you configure umask for bash shell? - ANSWER-/etc/bashrc
Temporarily set the default permissions to 775 for a directory - ANSWER-umask 002
view current umask settings - ANSWER-umask
View previously run commands in current shell - ANSWER-history
Run previous command by matching string - ANSWER-!string
Clear from cursor to end of line - ANSWER-Ctrl+e
Clear from cursor to beginning of line - ANSWER-Ctrl+u
Repeat previous command arguments - ANSWER-Esc+.
Copy file4 to /tmp - ANSWER-cp file4 /tmp
, Move file3 and file4 into the directory /files - ANSWER-mv file3 file4 /files
Delete file6 - ANSWER-rm file6
Remove the directory /home/me/backup and its contents - ANSWER-rm -r /home/me/backup
Copy directory2 and its contents to /home/me - ANSWER-cp -r directory2 /home/me
Create the directory /backup/files in one command - ANSWER-mkdir -p /backup/files
This character represents a string of zero or more characters in the shell - ANSWER-*
This character represents a single character in the shell - ANSWER-?
In the shell, this will match the letters within the range a-l - ANSWER-[a-l]
In the shell, this will match the characters NOT in the range g-k - ANSWER-[^g-k] or [!g-k]
Create 3 files Month_ ending with the numbers 1-3 - ANSWER-touch Month_{1..3}
Two methods of command substitution - ANSWER-`command` or $(command)
These characters will suppress globbing and shell expansion - ANSWER-"command"
These characters will force the shell to interpret each character literally - ANSWER-'command'
This will suppress a single character - ANSWER-\
Search man pages intro for string - ANSWER-man -a string
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller lecturervince8. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $13.47. You're not tied to anything after your purchase.