Skip to content

Instantly share code, notes, and snippets.

@techlunacy
Last active May 11, 2016 00:58
Show Gist options
  • Save techlunacy/39d03b4f775e1c6927fdb0fabdfdd525 to your computer and use it in GitHub Desktop.
Save techlunacy/39d03b4f775e1c6927fdb0fabdfdd525 to your computer and use it in GitHub Desktop.
commands i need to remember
# SHELL COMMANDS
## SORT BY SIZE
du -hs * | sort -h
## SHOW SUDO PERMISSIONS
sudo -l
## SHOW ARCHITECTURE OF LINUX
uname –a
# YUM
## SHOW DUPLICATE PACKAGES IN A YUM REPOSITORY
yum list available package-name --showduplicates
# GIT
## CHECKOUT SINGLE FILE FROM ANOTHER BRANCH
git checkout branch -- filename
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment