🚀 Day 14: Crafting a Linux & Git-GitHub Cheat Sheet! 📝
Congratulations on reaching this milestone! 🎉 After diving deep into Linux and Git-GitHub, today’s task is all about consolidating your knowledge into a powerful, go-to resource that will not only benefit you but the entire DevOps community. Let’s get started!
Task Overview: Create a Linux & Git-GitHub Cheat Sheet 🧩
Your task is to create a cheat sheet that includes essential Linux and Git-GitHub commands with brief descriptions. Make it unique, visually appealing, and easy to understand. You’ve learned a lot so far, so here’s how you can put that knowledge to good use:
Step-by-Step Guide to Creating the Cheat Sheet:
1. Organize the Commands into Categories
Group commands based on their functionality, such as:
Linux Commands: File management, process management, networking, etc.
Git Commands: Branching, merging, reverting, resetting, etc.
Example:
File Management:
ls
,cd
,cp
,mv
Git Branching:
git branch
,git checkout
,git merge
,git rebase
2. Provide Descriptions for Each Command
Write a brief, clear description explaining what each command does.
Examples:
Linux:
ls
– Lists all files and directories in the current directory.Git:
git status
– Displays the state of the working directory and the staging area.
3. Add Useful Options and Examples
Highlight useful options for each command with practical examples.
Example:
Linux:
ls -la
– Lists all files, including hidden ones, with detailed information.Git:
git commit -am "message"
– Stages all changes and commits them with a message.
4. Design the Cheat Sheet to Be Visually Appealing
Use headings, color coding, icons, and spacing for clarity.
Create sections for easier navigation, such as headers for different categories.
Use tools like Canva, Adobe Spark, or even simple Markdown to design your cheat sheet.
5. Add Handy Tips or Tricks
Include shortcuts or aliases for frequently used commands.
Example:
- Git Alias:
git config --global
alias.co
checkout
– Allows usinggit co
as a shortcut forgit checkout
.
- Git Alias:
🔧 Command-Line Guide for Reference:
Linux Commands
bashCopy code# File Management ls -la # List all files and directories with detailed info cp source.txt dest.txt # Copy a file mv file.txt new_location # Move or rename a file # Process Management ps aux # View all running processes kill -9 PID # Forcefully terminate a process by its PID # Networking ping google.com # Test connectivity to a server ifconfig # Display network interfaces
Git Commands
bashCopy code# Branching git branch # List all branches git checkout -b new_branch # Create and switch to a new branch # Merging git merge branch_name # Merge specified branch into the current one # Resetting git reset --hard HEAD~1 # Reset the last commit
Subscribe to my newsletter
Read articles from Naushad Khan directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
Naushad Khan
Naushad Khan
DevOps engineer with a passion for automation, CI/CD, and cloud platforms like AWS. I bridge dev and ops, optimizing workflows and sharing insights through technical blogs. Let’s automate the future! 🌐⚙️