Linux 1 Flashcards
Chapter 6-12 RHE
Term/Command
Description
/home
Directory containing user home directories
/root
Home directory for the root user
/etc/passwd
File containing user account information
/etc/shadow
File containing encrypted passwords and other security information for user accounts
/etc/group
File containing group account information
/etc/gshadow
File containing encrypted passwords and other security information for group accounts
/etc/dnf.conf
Configuration file for the DNF package manager
/etc/ssh/sshd_config
Configuration file for the SSH daemon
/etc/yum.repos.d/
Directory containing YUM repository configuration files
/etc/hostname
File containing the system hostname
/etc/hosts
File mapping hostnames to IP addresses
/etc/resolv.conf
File containing DNS resolver configuration
alias
Command to create aliases for other commands
bash
Command to execute the Bash shell
cat
Command to concatenate and display file contents
cut
Command to extract sections from each line of files
dnf
Package manager command for Fedora/RHEL
echo
Command to display a line of text
env
Command to display environment variables
export
Command to set environment variables
file
Command to determine file type
grep
Command to search text patterns in files
gzip
Command to compress files
gunzip
Command to decompress gzip files
head
Command to display the beginning of files
history
Command to display command history
less
Command to view files with pagination
let
Command for integer arithmetic in Bash
locate
Command to find files by name
man
Command to display manual pages
nologin
Shell used for users who are not allowed to log in
pwd
Command to print current working directory
set
Command to set or unset shell options and positional parameters
sort
Command to sort lines of text files
tail
Command to display the end of files
tar
Command to manipulate tape archives
tee
Command to read from standard input and write to standard output and files simultaneously
tr
Command to translate or delete characters
type
Command to display information about commands
umask
Command to set default permissions for new files and directories
uniq
Command to remove duplicate lines from sorted files
unset
Command to unset environment variables
wc
Command to count words, lines, and characters in a file
whereis
Command to locate binary, source, and manual page files for a command
which
Command to display the full path of shell commands
whoami
Command to display the current username
cp
Command to copy files and directories
find
Command to search for files in a directory hierarchy
ln
Command to create links between files
ls
Command to list directory contents
mkdir
Command to create directories
mv
Command to move or rename files and directories
rm
Command to remove files or directories
rmdir
Command to remove empty directories
touch
Command to create empty files or update file timestamps
bg
Command to move a job to the background
chage
Command to change user password expiry information
chfn
Command to change user information
chgrp
Command to change group ownership of files and directories
chmod
Command to change file permissions
chown
Command to change file owner and group
chsh
Command to change the user’s login shell
fg
Command to bring a job to the foreground
free
Command to display amount of free and used memory in the system
groupadd
Command to create a new group
groupdel
Command to delete a group
groupmod
Command to modify a group
iostat
Command to display CPU and I/O statistics
jobs
Command to list active jobs
kill
Command to send signals to processes
killall
Command to kill processes by name
nice
Command to run a command with modified scheduling priority
passwd
Command to change user password
pkill
Command to send signals to processes based on name
ps
Command to display information about processes
pstree
Command to display a tree of processes
renice
Command to alter the priority of running processes
rpm
Package manager command for RPM-based Linux distributions
shutdown
Command to shut down or reboot the system
su
Command to switch user
sudo
Command to execute a command as another user with superuser privileges
top
Command to display system resource usage and running processes
updatedb
Command to update the file database used by locate
useradd
Command to create a new user
userdel
Command to delete a user
usermod
Command to modify user account attributes
watch
Command to execute a program periodically and display the output
uname
Command to display system information
dig
Command-line DNS lookup utility
host
Command-line utility for performing DNS lookups
hostname
Command to display or set the system’s hostname
ip
Command to show/manipulate routing, devices, policy routing, and tunnels
ping
Command to send ICMP Echo Request to network hosts
ping6
Command to send ICMPv6 Echo Request to network hosts
ss
Command to investigate sockets
tracepath
Command to discover the MTU along the path to a target destination