🐧
Linux Commands
Essential Linux command line tools and utilities
34 commands found
/ to searchEscto clear
ls
List directory contents
lscd
Change the current directory
cd /path/to/directorypwd
Print working directory - shows current directory path
pwdmkdir
Create new directories
mkdir mydirrm
Remove files or directories
rm file.txtcp
Copy files and directories
cp file.txt backup.txtmv
Move or rename files and directories
mv oldname.txt newname.txtcat
Concatenate and display file contents
cat file.txtless
View file contents with pagination
less file.txthead
Display the first lines of a file
head file.txttail
Display the last lines of a file
tail file.txtgrep
Search for patterns in files or output
grep 'pattern' file.txtsed
Stream editor for filtering and transforming text
sed 's/old/new/' file.txtawk
Pattern scanning and text processing language
awk '{print $1}' file.txtchmod
Change file permissions
chmod 755 script.shchown
Change file owner and group
chown user file.txtps
Display information about running processes
ps auxtop
Display real-time system resource usage and processes
tophtop
Interactive process viewer (better alternative to top)
htopkill
Terminate processes by PID
kill 1234df
Display disk space usage of file systems
df -hdu
Estimate file and directory space usage
du -sh /var/logfree
Display memory usage information
free -hcurl
Transfer data from or to a server using various protocols
curl https://api.example.comwget
Download files from the web
wget https://example.com/file.zipping
Test network connectivity to a host
ping google.comnetstat
Display network connections, routing tables, and interface statistics
netstat -tulnfind
Search for files and directories in a directory hierarchy
find . -name '*.txt'tar
Archive files and directories
tar -czf archive.tar.gz /path/to/directoryzip
Package and compress files
zip archive.zip file.txtssh
Secure Shell - connect to remote machines securely
ssh user@hostnamescp
Securely copy files between hosts over SSH
scp file.txt user@remote:/path/rsync
Efficiently sync files and directories between locations
rsync -avz source/ destination/systemctl
Control systemd services and system state
systemctl start nginx