Last active
August 29, 2015 14:08
-
-
Save jalquisola/a7bb2cefdb91a825ea73 to your computer and use it in GitHub Desktop.
Linux Helpful Commands
This file contains 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
1. Search or find big files Linux (50MB) in current directory: | |
>$ find . -type f -size +10000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }' | |
2. Truncate file: | |
>$ truncate file --size 0 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment