๐Ÿš€ Mastering Linux, Git, and GitHub: Your Ultimate Cheat Sheet Guide Day-12

Vishal ShekokarVishal Shekokar
3 min read

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 or vim: 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 or htop: Display running processes.

Network Commands

  • ifconfig or ip: Display network configurations.

  • ping: Check network connectivity.

  • wget or curl: Download files from the internet.

Package Management

  • apt or yum: Package management (based on the distribution).

  • dpkg or rpm: 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

0
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! ๐ŸŒŸ