Mastering Linux and Git-GitHub: Your Ultimate Cheat Sheet
Learning the multitude of commands in the broad world of Git-GitHub and Linux might be a daunting process. Don't worry we've put together a thorough cheat sheet that may act as a quick reference and help you navigate the complexities of these potent tools with ease.
Linux Cheat Sheet:
1.Navigating the File System:
pwd: Print the current working directory.
ls: List directory contents.
cd: Change directory.
mkdir: Create a new directory.
cp: Copy files or directories.
mv: Move or rename files or directories.
rm: Remove files or directories.
cat: Display the contents of a file.
nano or vim: Open a text editor to create or edit files.
2.User and Permissions:
whoami: Display the current username.
chmod: Change file permissions.
chown: Change file ownership.
sudo: Execute a command with superuser privileges.
su: Switch user.
3.Processes:
ps: Display information about active processes.
kill: Terminate a process using its process ID (PID).
top: Display real-time system statistics.
4.System Information:
uname: Display system information.
df: Show disk space usage.
free: Display system memory usage.
uptime: Show system uptime.
Git-GitHub Cheat Sheet:
1.Basic Git Commands:
git init: Initialize a new Git repository.
git clone: Clone a repository into a new directory.
git add: Add changes to the staging area.
git commit: Record changes to the repository.
git status: Show the status of changes as untracked, modified, or staged.
git log: Display the commit history.
2.Branching and Merging:
git branch: List, create, or delete branches.
git checkout: Switch branches or restore working tree files.
git merge: Combine changes from different branches.
3.Remote Repositories:
git remote: Manage set of tracked repositories.
git fetch: Download objects and refs from another repository.
git pull: Fetch from and integrate with another repository or a local branch.
git push: Update remote refs along with associated objects.
4.Undoing Changes:
git reset: Reset current HEAD to the specified state.
git revert: Create a new commit that undoes changes made in the previous commit.
#Linux #DevOps #cloud #AWS #community
#techenthusiast #CloudComputing #Devops
Follow for more: