Last active
February 18, 2017 04:29
-
-
Save laurentsab/716f0adf35a2dd38724a to your computer and use it in GitHub Desktop.
Shell Tips
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Show size of each folder | |
$ du -sch * | sort -h | |
# Count number of files in a folder | |
$ find . -name \* | wc -l | |
# Search a file (or pattern) and execute a command (rm here) | |
$ find . -name ’*.yml’ -exec rm {} ; | |
# Add a line at the end of a file | |
$ echo "/node_modules/" >> .gitignore |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment