RHEL9 EX200 Flashcards
Command to copy files
cp
Command to remove a directory
rmdir
Command to create a directory
mkdir
Command to show a directory structure and files it contains
tree
Command to show the contents of a text file
cat
Command to match the contents of output with provided text
grep
Command to query & view logs from the systemd journal
journalctl
Command used to switch to another user account in the terminal.
su
Command used to execute commands with elevated privileges
sudo
Command used to add user
useradd
Command used to add a group
groupadd
Command used to determine who is logged in
whoami
Command used to display the user and group information for a specified user or the current user
id
File location to see user information such as home path and ID number
/etc/passwd
File location to see encrypted password of users and the details about when last set, expiration, etc.
/etc/shadow
File location to see group information
/etc/group
Command used to show the manual
man
Option on commands to show available options
--help
Path to where system documentation is located
/usr/share/doc
Command to show you where the command you specify is located
where
Command to search files and directories
find
What are the 2 text editors typically used
vi
vim
Command used to make hard or soft links
ln
Command used to change the permissions of files and directories
chmod