๐ Mastering Linux, Git, and GitHub: Your Ultimate Cheat Sheet Guide Day-12
Hey fellow developers! ๐ Whether you're a coding ninja or just starting your journey, the command line can be your best friend. In this post, we're diving into the essential commands for Linux, Git, and GitHub. Buckle up for the ultimate cheat sheet that will level up your developer game! ๐
Linux Command Cheat Sheet ๐ง
File and Directory Operations
ls
: List directory contents.cd
: Change directory.cp
: Copy files/directories.mv
: Move or rename files/directories.rm
: Remove files/directories.mkdir
: Create a new directory.
File Manipulation
cat
: Concatenate and display file content.nano
orvim
: Text editors for file editing.grep
: Search for a pattern in files.chmod
: Change file permissions.chown
: Change file ownership.
System Information
uname
: Display system information.df
: Display disk space usage.free
: Display free and used memory.top
orhtop
: Display running processes.
Network Commands
ifconfig
orip
: Display network configurations.ping
: Check network connectivity.wget
orcurl
: Download files from the internet.
Package Management
apt
oryum
: Package management (based on the distribution).dpkg
orrpm
: Package installation and management.
Users and Permissions
whoami
: Display the current user.passwd
: Change user password.sudo
: Execute a command with superuser privileges.
This Linux cheat sheet is your secret weapon for navigating the terminal with ease and becoming a command line maestro! ๐
Git-GitHub Command Cheat Sheet ๐
Git Basics
git init
: Initialize a new Git repository.git clone
: Clone a repository.git add
: Add changes to the staging area.git commit
: Commit changes to the repository.git status
: Check the status of the working directory.
Branching and Merging
git branch
: List, create, or delete branches.git checkout
: Switch branches.git merge
: Merge branches.
Remote Repositories
git remote add
: Add a remote repository.git pull
: Fetch and merge changes from a remote repository.git push
: Push changes to a remote repository.
Undoing Changes
git log
: View commit history.git reset
: Reset the staging area or commit.git revert
: Revert changes in a commit.
GitHub Collaboration
git fork
: Fork a repository on GitHub.git pull request
: Create a pull request.git fetch upstream
: Fetch changes from the original repository.
Git Configurations
git config
: Configure user information.
This Git-GitHub cheat sheet will make you the conductor of the version control orchestra, orchestrating your code with finesse! ๐ถ
Share the Developer Love โค๏ธ
These cheat sheets are your passport to developer greatness. Share them with your coding buddies, tag your DevOps pals, and let's spread the knowledge! ๐โจ
Cheers to mastering Linux, Git, and GitHub! ๐ #Linux #Git #GitHub #DevOps #CheatSheet #KnowledgeSharing
Subscribe to my newsletter
Read articles from Vishal Shekokar directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
Vishal Shekokar
Vishal Shekokar
๐ Hello, I'm Vishal, an aspiring Information Technology enthusiast currently embarking on a journey towards a Bachelor's degree in Engineering. My passion lies in exploring the dynamic realms of cloud computing and DevOps technologies, where I constantly strive to bridge the gap between innovation and practical implementation. ๐ก As a student of Information Technology, I'm on a mission to absorb knowledge, solve real-world problems, and contribute to the tech community. My academic pursuits fuel my curiosity, and my hands-on experience with cloud and DevOps tools empowers me to navigate the evolving landscape of modern technology. ๐ Join me as I share insights, discoveries, and challenges encountered on this exciting educational and professional adventure. Let's connect, collaborate, and grow together in the ever-expanding world of IT. ๐ Connect with me on social media and let's build a network that fosters learning, sharing, and innovation. Happy coding! ๐