break-in process - rd.break inserted at the end of the line starting with "linux16"
mount -o rw,remount /sysroot
chroot /sysroot
passwd
touch /.autorelabel
exit
systemctl isolate graphical.target
rename a file - mv <original> <newname>
execute multiple separate commands in a single line - <first command>; <second command>
brace expansion - touch file{1..9}
output redirection into file - <command> > <destination>
append output to existing file - <command> >> <destination>
stdout redirect - <command> 1> <destination>
stderr redirect - <command> 2> <destination>
how can you tell if a user has a non-login shell? - /sbin/nologin homedir location in /etc/passwd
how do you impersonate root but log your actions as your current user account? - sudo -i
, what command would you use to enable, restart, mask a service? - systemctl
shows currently logged in users - w
what would you run to change password expiration policies for an individual user? - chage
what would you run to move a single file from one host to another user's homedir on a remote
machine? - scp <localfile> user@remotehost:~/
you want to make sure members of the wheel group can run root commands as themselves (not root.)
where do you go? - visudo
how do you make an alias in bash? - alias=<command> in .bashrc in homedir
make a directory. - mkdir
make an empty file. - touch
remove a directory and its contents recursively. - rm rf
change a directory to be owned by a group. - chown :<groupname> <directory>
make a directory collaborative to a group with rwx for owner and group and no access for others. -
chmod 2770 <file>
make a file with rwxr-x-wx - chmod 753 <file>
change wd to root filesystem - cd /
make a child directory and a parent directory in a single command. - mkdir -p /<parent>/<child>
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 oneclass. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $13.48. You're not tied to anything after your purchase.