linuxCommands Flashcards
List files and directories in the current directory
ls
Change directory
cd
Print the current working directory
pwd
Create a new directory
mkdir
Create a new empty file
touch
Copy files
cp
Remove files
rm
Move or rename files
mv
Display disk usage statistics
du
Display disk space statistics
df
Change file permissions
chmod
Change file ownership
chown
Display the contents of a file
cat
Display the last few lines of a file
tail
Display the first few lines of a file
head
Display the contents of a file one page at a time
less
Display the contents of a file one page at a time
more
Edit a file using the nano editor
nano
Edit a file using the vi editor
vi
Display a list of running processes
ps
Display a list of running processes in real-time
top
Kill a running process
kill
Display network interface configurations
ifconfig
Send ICMP echo requests to a target host
ping
Display network statistics
netstat
Perform network scanning and port enumeration
nmap
Display or modify the ARP cache
arp
Perform DNS queries
dig
Retrieve WHOIS information for a domain
whois
Perform DNS lookups
host
Display the route packets take to a destination
traceroute
Show or manipulate the IP routing table
route
Configure firewall rules
iptables
Capture and analyze network traffic
tcpdump