Command line tools (Linux) Flashcards
(36 cards)
ls
Lists files and directories
pwd
Displays the current working directory
mv
Moves or renames files and directories
cp
Copies files and directories
rm
Deletes files or directories
chmod
Changes files or folder permissions
chown
Changes file/folder ownership
grep
Searches text using patterns
find
Searches for files/directories
fsck
Checks and repairs the filesystem / storage device (like “chkdsk” in Windows)
mount
Attaches a filesystem or device to the directory tree
su
Switches to another user account (often root)
sudo
Runs a command as another user, usually root (with permissions)
apt
Installs, updates, or removes packages (Debian-based systems like Ubuntu)
dnf
Manages packages on RPM-based systems like Fedora and RHEL
ip
Displays and configures network interfaces and routing
ping
Tests network connectivity
curl
Retrieves data from a URL (web/server requests)
dig
Queries DNS records (like “nslookup” in Linux)
traceroute
Shows the path packets take to a destination
man
Displays the manual for a command (help)
cat
Displays the contents of a file
top
Shows running processes and system resource usage
ps
Displays current running processes