Useful Commands: Difference between revisions
Jump to navigation
Jump to search
Created page with "=View Certificate Details= <syntaxhighlight lang="bash"> curl --insecure -vvI https://www.google.com 2>&1 | awk 'BEGIN { cert=0 } /^\* SSL connection/ { cert=1 } /^\*/ { if (c..." |
No edit summary |
||
Line 1: | Line 1: | ||
=View Certificate Details= | ==View Certificate Details== | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
curl --insecure -vvI https://www.google.com 2>&1 | awk 'BEGIN { cert=0 } /^\* SSL connection/ { cert=1 } /^\*/ { if (cert) print }' | curl --insecure -vvI https://www.google.com 2>&1 | awk 'BEGIN { cert=0 } /^\* SSL connection/ { cert=1 } /^\*/ { if (cert) print }' | ||
</syntaxhighlight> | |||
==List or Delete Files With Spaces== | |||
<syntaxhighlight lang="bash"> | |||
find DONTUSESLASH -type d -name '.vs' -print0 | xargs -0 ls -l | |||
find DONTUSESLASH -type d -name '.vs' -print0 | xargs -0 rm -rf | |||
</syntaxhighlight> | |||
==Size of Directories== | |||
<syntaxhighlight lang="bash"> | |||
du -sh -- * | sort -rh | |||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 02:44, 5 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