Category: Bash

How do I download many pdf’s a webpage at once ?

A combo of curl and regular expression, e.g. Ross Andersons “Security Engineering” is avalaible online under CC here but you must download each chapter as a seperate pdf, this is can the fixed using: $ curl http://www.cl.cam.ac.uk/~rja14/Papers/SEv2-(toc|pref|acks|c[01-27]|biblio|index).pdf$ curl http://www.cl.cam.ac.uk/~rja14/Papers/SEv2-(toc|pref|acks|c[01-27]|biblio|index).pdf Read More

How do I reset pathnames to commands ?

$ hash -r$ hash -r Read More

How can I generate a Public/Private key pair ?

$ cd ~/.ssh $ ssh-keygen -t rsa -f <key-name> <br>$ cd ~/.ssh $ ssh-keygen -t rsa -f <key-name> <br> Then copy .pub into authorized_keys on remote host Read More