How do you Secure Shell into another system? - ANSWERssh <user>@<host>
How do you execute commands on a remote system via Secure Shell without actually opening a new
shell? - ANSWERssh <user>@<host> <command>
How do you generate a public key and private key file for SSH authentication? - ANSWERssh-keygen
How do you export a public key for SSH authentication on a different machine? - ANSWERssh-copy-id
<user>@<host>
How do you export a *specific* public key for SSH authentication on a different machine? -
ANSWERssh-copy-id <user>@<host> -i <key file path>
If an SSH authentication key has a passphrase, how do you cache that passphrase on the local
machine for passwordless authentication? - ANSWER1. eval $(ssh-agent)
2. ssh-add <key file path>
What is Cockpit? - ANSWERA server Management Tool
How do you check if a service is running? - ANSWERsystemctl status <service>
How do you start a service? - ANSWERsystemctl start <service>
How do you enable a service on startup? - ANSWERsystemctl enable <service>
Which directory contains persistent, system-specific configuration data? - ANSWER/etc
Which directory is the top of the system's file hierarchy? - ANSWER/
Which directory contains user home directories? - ANSWER/home
Which directory contains temporary files? - ANSWER/tmp
Which directory contains dynamic data, such as for databases and websites? - ANSWER/var
Which directory is the administrative superuser's home directory? - ANSWER/root
Which directory contains regular commands and utilities? - ANSWER/usr/bin
Which directory contains non-persistent process runtime data? - ANSWER/run
Which directory contains installed software programs and libraries? - ANSWER/usr
How do you create a directory? - ANSWERmkdir <directory name>
How do you copy a file? - ANSWERcp <old file> <new file>
How do you copy a directory and its contents? - ANSWERcp -r <old directory> <new directory>
How do you move (or rename) a file or directory? - ANSWERmv <old file> <new file>
How do you remove a file? - ANSWERrm <file>
, How do you remove a directory containing files? - ANSWERrm -r <directory>
How do you remove an empty directory? - ANSWERrmdir <directory>
How do you create parent directories while creating a new directory? - ANSWERmkdir -p <new
parent directories>/<new directory>
How do you list the contents of a directory? - ANSWERls
How do you list all contents of a directory including hidden files? - ANSWERls -a
How do you list the contents of a directory and subdirectories? - ANSWERls -R
How do you list the contents of a directory with more detailed information? - ANSWERls -l
How do you change directories? - ANSWERcd <directory path>
How do you change directories to the last directory you were in? - ANSWERcd -
How do you change directories to the parent directory of your current directory? - ANSWERcd ..
How do you list the contents of a file? - ANSWERcat <file>
How do you create an empty file/update an existing file's "last changed" timestamp without making
any changes? - ANSWERtouch <file>
How do you check the working directory? - ANSWERpwd
How do you list directories that are on different file systems? - ANSWERdf
How do you create a soft link between two files/directories? - ANSWERln -s <existing file path> <link
path>
How can you view information about the current user? - ANSWERid
How do you view information another user? - ANSWERid <user>
How do you view process information? - ANSWERps
How do you view process information for all processes in a terminal? - ANSWERps -a
How do you view process information and users associated with those processes? - ANSWERps -u
How many primary groups can a user have? - ANSWER1
How many supplementary groups can a user have? - ANSWERUnlimited
What is a GID? - ANSWERA Group ID number that is unique to a group on a local machine.
What is a UID? - ANSWERA User ID number that is unique to a user on a local machine.
What item represents a number that identifies users at the most fundamental level? - ANSWERUID
What item represents the program that provides the user's command-line prompt? - ANSWERLogin
shell
What is the location of the local group information? - ANSWER/etc/group
What is the location of the user's personal files? - ANSWER/home/<user>