Useful Commands: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 11: | Line 11: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
du -sh -- * | sort -rh | du -sh -- * | sort -rh | ||
</syntaxhighlight> | |||
==List Size of node_modules== | |||
<syntaxhighlight lang="bash"> | |||
find . -name "node_modules" -type d -prune | xargs du -chs | |||
</syntaxhighlight> | |||
==Delete node_modules== | |||
<syntaxhighlight lang="bash"> | |||
find . -name "node_modules" -type d -prune -exec rm -rf '{}' + | |||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 22:45, 25 January 2021
View Certificate Details
curl --insecure -vvI https://www.google.com 2>&1 | awk 'BEGIN { cert=0 } /^\* SSL connection/ { cert=1 } /^\*/ { if (cert) print }'
List or Delete Files With Spaces
find DONTUSESLASH -type d -name '.vs' -print0 | xargs -0 ls -l
find DONTUSESLASH -type d -name '.vs' -print0 | xargs -0 rm -rf
Size of Directories
du -sh -- * | sort -rh
List Size of node_modules
find . -name "node_modules" -type d -prune | xargs du -chs
Delete node_modules
find . -name "node_modules" -type d -prune -exec rm -rf '{}' +