Linux
Basic Commands
ls
List files and directories in current directory.
cd
Change directory.
pwd
Print working directory.
mkdir
Make a new directory.
touch
Create a new file.
cat
Display the contents of a file.
cp
Copy files or directories.
mv
Move or rename files or directories.
rm
Remove files or directories.
sudo
Run a command with administrative privileges.
System Information
uname
Print system information.
df
Report file system disk space usage.
top
Display system resource usage.
ps
Report a snapshot of the current processes.
whoami
Print current user name.
Network and Internet
ping
Test network connectivity.
ifconfig
Display network interface configuration.
netstat
Print network connections, routing tables, interface statistics, masquerade connections, and multicast memberships.
dig
DNS lookup utility.
wget
Download files from the Internet.
Compression and Archives
tar
Manipulate archives in the tar format.
gzip
Compress or decompress files using gzip algorithm.
zip
Compress files into ZIP archive format.
unzip
Extract files from a ZIP archive.
Text Manipulation
grep
Search files for a particular pattern.
sed
Stream editor for filtering and transforming text.
awk
Pattern scanning and text processing language.
cut
Select sections from each line of a file.
sort
Sort lines of text files.
File Permissions
chmod
Change file permissions.
chown
Change file ownership.
chgrp
Change group ownership of file.
Miscellaneous
history
Show command history.
man
Display manual pages.
date
Print or set the system date and time.
echo
Print a message to the screen.
exit
Exit the current shell.
These are just a few examples of common Linux commands. There are many more commands available, and each command has additional options and arguments that can be used to tailor its behavior.
Last updated
Was this helpful?