0% found this document useful (0 votes)
7 views3 pages

Linux Command Cheat Sheet

This document is a Linux Command Cheat Sheet that provides a comprehensive list of commands for file and directory management, permissions, user and group management, system monitoring, searching files, archiving, timestamps, networking, editing files, and basic scripting. Each section includes essential commands and their syntax for quick reference. It serves as a handy guide for users to efficiently navigate and utilize Linux commands.

Uploaded by

amnarais14
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views3 pages

Linux Command Cheat Sheet

This document is a Linux Command Cheat Sheet that provides a comprehensive list of commands for file and directory management, permissions, user and group management, system monitoring, searching files, archiving, timestamps, networking, editing files, and basic scripting. Each section includes essential commands and their syntax for quick reference. It serves as a handy guide for users to efficiently navigate and utilize Linux commands.

Uploaded by

amnarais14
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Linux Command Cheat Sheet

File and Directory Management

cd ~/Desktop
mkdir -p Project/{Docs,Scripts}
touch [Link]
mv [Link] [Link]
cp [Link] [Link]
rm [Link]
rm -r directory/
ls -l
ls -a
tree Project/

Permissions and Ownership

chmod +x [Link]
chmod 755 [Link]
chown user [Link]
chown -R user:group directory/
umask 022

User and Group Management

sudo adduser newuser


sudo passwd newuser
sudo deluser newuser
sudo usermod -aG group user
groups username
id username

System Monitoring and Performance

top
htop
free -h
df -h
du -sh *
uptime
who
vmstat
iostat

Searching and Finding Files


Linux Command Cheat Sheet

grep "word" [Link]


grep -r "word" folder/
find . -name "*.sh"
find . -type f -size +1M
locate filename

Archiving and Compression

zip -r [Link] folder/


unzip [Link]
tar -czvf [Link] folder/
tar -xzvf [Link]

Timestamps and Scheduling

touch -t 202505041030 [Link]


date
sudo date -s "2025-05-04 [Link]"
at 10:00 now + 1 day
crontab -e

Network and System Info

ip a
ping [Link]
netstat -tulnp
ss -tulwn
hostnamectl
uname -a

Editing and Viewing Files

nano [Link]
vim [Link]
cat [Link]
less [Link]
head -n 10 [Link]
tail -f [Link]

Scripting Basics

#!/bin/bash
Linux Command Cheat Sheet

echo "Hello World"


read name
if [ -f [Link] ]; then ... fi
for i in {1..5}; do ...; done

You might also like