Redirects output from the left of the operator to the location to the right of the
operator Right Ans - >
Appends output from the left of the operator to the location to the right of the
operator Right Ans - >>
Return the first 5 lines of the file located after the command Right Ans -
head -5
Return the last 3 lines of the file located to the right of the command Right
Ans - tail -3
Create a hard link called hardlink that points to etc/example Right Ans - ln
etc/example hardlink
Create a soft link (aka symbolic link) called softlink that points to etc/example
Right Ans - ln -s etc/example
Kill the process using the most cpu time Right Ans - use top command and
find the PID using the most cpu. Then enter kill PID
Create a new group called database with a group ID of 50,000 Right Ans - 1.
Login as root using sudo -su
2. groupadd -g 50000 database
Create a user called dbuser1 and set the database group as it's secondary
group Right Ans - useradd -G database dbuser1
Change dbuser1's password to redhat Right Ans - passwd dbuser1
Force dbuser1 to change their password at the 1st login. They also shouldn't
be able to change the password for at least 10 days and they have to change
the password every 30 days Right Ans - chage -d 0 -m 10 -M30 dbuser1
where -d forces the password change, -m is the minimum password age, and -
M is the maximum password age
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 LeCrae. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $8.99. You're not tied to anything after your purchase.