I'm thrilled to share with you a comprehensive and creatively designed cheat sheet that covers all the essential commands you've learned during the Linux & Git-GitHub hands-on journey. ๐ค Whether you're a beginner or an experienced developer, this cheat sheet will be your go-to reference for daily tasks. Let's dive in and level up our skills!
Linux Commands ๐ง
๐Table of Contents ๐
Section | Commands Covered |
File Manipulation | ls , cd , cp , mv , rm |
Text Processing | cat , grep , sed , awk |
System Information | uname , df , top , ps |
Package Management | apt , yum , dnf , pacman |
Network Management | ping , ifconfig , netstat |
User Administration | useradd , passwd , sudo |
File Permissions | chmod , chown , chgrp |
Compression | tar , zip , unzip , gzip |
Task Automation | cron , at , systemd |
File Manipulation ๐
Command | Usage |
ls๐๐ | List files and directories |
cd๐ช๐ | Change directory |
cp๐โก๏ธ๐ฆ | Copy files or directories |
mv๐โจ | Move or rename files |
rm๐๏ธ๐ซ | Remove files or directories |
Text Processing โ๏ธ
Command | Usage |
cat๐ฑ๐ | Display file content |
grep๐๐ | Search text in files |
sed๐๐๏ธ | Stream text editor |
awk๐ฆ๐ง | Text manipulation tool |
Command | Usage |
uname๐ก๐ | Display system information |
df๐ฝ๐ | Disk space usage |
topโซ๐ | Monitor system processes |
ps๐๐ | Display running processes |
Package Management ๐ฆ
Command | Usage |
apt๐ฆ๐ | Debian/Ubuntu package manager |
yum๐ฅก๐ฆ | CentOS/Fedora package manager |
dnf๐๐ฆ | Next-gen Fedora package mgr |
pacman๐ง๐ฆ | Arch Linux package manager |
Network Management ๐
Command | Usage |
ping๐๐ | Check network connectivity |
ifconfig๐ก๐ | Network interface config |
netstat๐๐ | Network statistics |
User Administration ๐ค
Command | Usage |
useradd๐ฅโ | Add a user |
passwd๐๐ | Change user password |
sudo๐ฆธโโ๏ธ๐ก๏ธ | Execute commands with superuser |
File Permissions ๐
Command | Usage |
chmod๐๐ | Change file permissions |
chown๐ค๐ง | Change file owner |
chgrp๐ฅ๐ง | Change file group |
Compression ๐ฆ
Command | Usage |
tar๐ฆ๐ | Archive files |
zip๐ค๐ | Create compressed zip archive |
unzip๐๏ธ๐ | Extract files from zip archive |
gzip๐ช๏ธ๐ฆ | Compress files |
Task Automation โฐ
Command | Usage |
cronโฒ๏ธ๐
| Schedule tasks |
at๐๐ | Execute commands once |
systemd๐๐ ๏ธ | System and service manager |
Git-GitHub Commands ๐ฑ
Command | Description | Example Usage |
git init | Initialize a new Git repository. | git init (Start tracking current directory) |
git clone | Clone a repository from a URL. | git clone <URL> (Clone a repository) |
git add | Add changes to the staging area. | git add file.txt (Stage changes) |
git commit | Commit staged changes with a message. | git commit -m "Added new feature" (Commit with message) |
git pull | Fetch and merge changes from a remote repository. | git pull origin main (Pull changes from "main" branch) |
git push | Push local changes to a remote repository. | git push origin develop (Push to "develop" branch) |
git branch | List, create, or delete branches. | git branch feature (Create "feature" branch) |
git merge | Merge two or more branches. | git merge feature (Merge "feature" into current branch) |
git log | Display commit history. | git log --oneline (Compact commit history) |
git reset | Unstage changes or reset to a previous commit. | git reset HEAD file.txt (Unstage changes) |
git stash | Temporarily save changes without committing. | git stash save "WIP" (Stash changes) |
git remote | Manages remote repositories | git remote add origin github.com/user/repo.git |
git status | Shows the status of your working directory | git status |
Conclusion
Feel free to share this cheat sheet with your fellow developers and friends! Let's make learning and collaborating even more exciting and productive! ๐
Remember, knowledge grows when shared. ๐ฑ Keep coding, keep exploring, and keep building amazing things! ๐
#HappyLearning #DevOpsCommunity #LinuxGitCheatSheet