Posts

Showing posts from September, 2012

Get SSH Key Fingerprint

ssh-keygen -lf /etc/ssh/ssh_host_rsa_key.pub

Count Files/Directories/Links in *nix

for t in files links directories; do echo `find . -maxdepth 1 -type ${t:0:1} | wc -l` $t; done 2> /dev/null -maxdepth 1 specifies how far to count files