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

ยท

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

ย