What two commands can be used to manage password properties - passwd
chage
What chmod option need to be used to add delete only files they own - o+t
What command is use to create symlinks between files - ln
Command to create tar files - tar
What command is used to create a log entry - logger
What command is used to modify the timezone - timedatectl
What two commands can be used to modify the network settings - nmcli
nmtui
What command modifies the hostname - hostnamectl
If it asks to create a caonical hostname that means it wants you to add the hostname to what -
/etc/hosts
How do you format the option on date to modify the format of the output - date +<format option>
Ex: date +%R
What command lets you see the type of file a file is - file
,How do you run a command again from history by its number entry in history - !<number>
Ex: !45
How do you format the touch command to create multiple files with an array of options. Explain both a
list and a range. - touch folder{1,2}_file{1..5}
How do you cd back to a directory you were just in - cd -
What option can you use to make a man page output to postscript - -t
Ex: man -t passwd > passwd.ps
What shortcut do you use to enter the visual mode of vim - v
What file can be modified to set the default password policy settings for new users - /etc/login.defs
When making custom sudoers modifications where should you place these? - /etc/sudoers.d/<file>
What command will list the cpu details - lscpu
How do you send a command to be a job - Add a & at the end
What command do you use with top to save the current configuration as default for the user - W
(capital)
Command to suspend, kill, etc a process - pkill
Command you can use to filter though logs - journalctl
, Ex: journalctl --since "30 minutes ago" --until "now"
How do you make logger write to a particular facility and priority - logger -p <facility>.<.priority> "Log
Message"
Ex: logger -p authpriv.alert "there is an alert"
Tip: -p option supports tab completion
What command should you use to install a downloaded rpm file directly - dnf
Ex: dnf install <file name>.rpm
When using find to filter by size how would you specify below 100MB, but above 50MB - find / -size -
100M -size +50M
The - and + can be used for size and other filter options
What is the command to update the locate database - updatedb
Inside of a bash script how do you reference the item in a for loop - ${var}
What is the basic structure of a for loop in bash - for i in array list
do
done
What command can be used to create user deferred jobs