Created
March 18, 2017 05:23
-
-
Save byteshiva/eee0564ad514c4f6df46e0217b79cd01 to your computer and use it in GitHub Desktop.
FAQs Shell scripts
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
Set all files to zero. | |
``` | |
ls | xargs -I {} sh -c '> {}' | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How many cores are there in a process?
ref: http://ask.xmodulo.com/number-of-threads-process-linux.html