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>