Hello DevOps enthusiasts! As I wrap up my journey with Linux, Git, and GitHub, Iโm excited to share my comprehensive cheat sheet. Itโs a labor of love, packed with the commands and tips Iโve gathered. Letโs dive in! ๐
Linux Command Line Essentials ๐ง
Linux is the cornerstone of many IT infrastructures, and here's a more extensive list of commands that I've found invaluable:
File Operations
ls
- Lists files and directories.ls -l
for detailed view,ls -a
for hidden files.
touch
- Creates a new file.cp
- Copies files and directories.cp source destination
.
mv
- Moves or renames files and directories.rm
- Removes files or directories.rm -r
for recursive deletion.
Directory Navigation
cd
- Changes the current directory.pwd
- Displays the path of the current directory.mkdir
- Creates a new directory.
System Information
uname
- Shows system information.top
- Displays real-time system stats.df
- Shows disk space usage.du
- Shows file space usage.
Network Operations
ping
- Checks network connectivity.ifconfig
- Configures or displays network interface parameters.ssh
- Connects to a remote server securely.
File Permissions
chmod
- Changes file permissions.chown
- Changes file owner.
Git Command Reference ๐ฟ
Git, the distributed version control system, has been my faithful companion in tracking changes and collaborating on code. Here's a detailed list of Git commands:
Getting Started
git init
- Initializes a new Git repository.git clone
- Clones a repository into a new directory.
Basic Snapshotting
git status
- Shows the working tree status.git add
- Adds file contents to the index.git commit
- Records changes to the repository.
Branching and Merging
git branch
- Lists, creates, or deletes branches.git checkout
- Switches branches or restores files.git merge
- Merges two or more development histories together.
Sharing and Updating Projects
git push
- Updates remote refs along with associated objects.git pull
- Fetches from and integrates with another repository.
Inspection and Comparison
git log
- Shows the commit logs.git diff
- Shows changes between commits, commit and working tree, etc.
GitHub Essentials ๐
GitHub is where my code lives and breathes. It's a platform that complements Git perfectly. Here's a quick rundown:
Repository Management
Create Repository: New project home.
Fork Repository: Make a copy for your own.
Star Repository: Mark your favorite.
Issue Tracking
Open Issue: Start a discussion or report a bug.
Close Issue: Resolve and close discussions.
Pull Requests
Create Pull Request: Propose your changes.
Merge Pull Request: Combine changes into the main project.
๐จ Design and Creativity in My Cheat Sheet: Iโve color-coded sections for quick navigation and included icons for visual appeal. Tips and tricks are in a separate column for advanced users, and each command is accompanied by a brief description and usage example.
๐ Reflections: Building this cheat sheet was not just educational but also a creative journey. Itโs a resource that Iโll keep updating and referring to. Iโm thrilled to share it with the community and hope it proves as useful to others as it has to me! #DevOps #LinuxCommands #GitCheatSheet #GitHubGuide #TechTips ๐๐
Thank you for reading this Blog. Hope you learned something new today! If you found this blog helpful, please like, share, and follow me for more blog posts like this in the future.
You can connect with me at: https://www.linkedin.com/in/davendersingh/