Deck 4 Flashcards
sed -r with ‘/’ as delimiter and what else what else to be valid?
-sig…allows a process to finish up before being killed
PREROUTING is a PROXY SERVER command in iptables
-double quotes
-term
-ip route add ADDS what?
this command (if [ -f “$filename” ]; then) NEEDS to have teh FUCKING ; before the ‘then’
-pull
-a PERSISTENT route
copy a ssh key file to a server using scp and…
-ssh-copy-id
semange manages SELinux policies. semange -…= ADDS a new rule for a port (semanage port -a -t http_port_t -p tcp 6379)
/etc/systemd/…. = holds system journal
umask default is 666 for files, 777 for directories. Values subtracted from this represent what the permissions will be for whoever (HINT: they have to EQUAL 7)
-a
-journald.conf
if logsearch.service shows a timeout in log, increase the….
df -i= checks INODES (good for if disk appears bit full)
fdisk -l =checks….
lsblk= shows MOUNT points and other info about block devices
TimeoutStartUSec config
-partitions
du -…= shows disk USAGE
….-n 20 shows LAST 20 lines
Containers are stateless
-sh
-tail
an ….is a static specification for a container
docker …shows actively running containers
docker images shows docker images
-image
-ps
docker run and the…number can be used to run
docker build builds…
set SGID bits with 2 (ex 2744), set SUID bits with…
-image
-custom images
-4
getenforce is a SELinux term
used to restore context of files and directories in SELinux
-restorecon
docker run -it creates an…container to do bash stuff
docker run does NOT do an interactive/adminstrative interface
install virtual machines with what command?
-interactive
-virt install
….sh is used to manage virtual machines
free commands shows RAM. Free -h shows used and unused memory and…usage
visudo checks errors in ….file
-vir
swap
-sudoer
docker image tag test allows assigning?
iptable forward is for LEAVING, input is for COMING. ALSO IPTABLES HAS NO COLONS!!!!
/boot/efi is mount point for…
-versions
UEFI
for remotes apps that need/have GUIs, $…..must be set so their gui(s) can be viewed locally
initrd loads when system BOOTS
-DISPAY
sda is SATA! SDA IS SATA!
-git pull is used to UPDATE an already there local repo. git…creates the repo locally on your machine
git clone copies ALL files from a REMOTE repo. git pull copies only MODIFIED files
-clone
ln -s creates a…
terraform output has {}
-softlink