Cheat-Sheet for Linux and Git/GitHub

Cheat-Sheet for Linux and Git/GitHub

Here are some cheat sheets for Linux and Git/GitHub:

Linux Cheat-Sheet:

CommandDescription
lsList files and directories
cdChange directory
pwdPrint working directory
mkdirCreate directory
touchCreate empty file
cpCopy file/directory
mvMove/rename file/directory
rmRemove file/directory
catDisplay contents of the file
grepSearch for a pattern in the file
lessView file contents one page at a time
tarCreate/extract compressed archive
chmodChange file permissions
chownChange file ownership
psList running processes
topDisplay system resource usage
killTerminate process
pingTest network connectivity
netstatDisplay network connections
ifconfigConfigure network interface
scpCopy files securely over the network
sshSecurely connect to a remote server

Git/GitHub Cheat-Sheet:

CommandDescription
git initInitialize new repository
git cloneClone repository from a remote server
git addAdd file/directory to the staging area
git commitCommit changes to the repository
git pushPush changes to the remote repository
git pullPull changes from the remote repository
git mergeMerge changes from another branch
git branchList/create/delete branches
git checkoutSwitch to another branch/commit
git statusShow the status of the repository
git logShow commit history
git diffShow differences between commits/branches
git stashTemporarily store changes not ready to be committed
git tagCreate/delete tags
git remoteAdd/remove the remote repository

I hope you find these cheat sheets helpful!

Happy learning!!! Suggestions are welcome.

~Sumit

Thank You - Shubham Londhe