Home / Archive by category Shell Archive by category Shell
I’ve spent last 2 days scripting virtual server deployment on Amazon cloud. For my reference, these are some useful commands I had to use to get the job done. 1. Hash “Hello World” string using SHA256 algorithm echo -n "Hello World" | shasum -a 256 You can also hash a file shasum -a 256 myfile.ext […]
Read More
Here’s another useful command line utility – Secure Copy or SCP, that allows you to securely transfer computer files between a local and a remote host. sudo scp localfile.dmg remoteuser(at)somehost.com://pathtoupload/ Much neater that using an SFTP client no? Thanks to my work colleague Luke for bringing this to my attention 🙂 Marko
Read More
I’ve been using command line for zipping and ‘tarring’ for a while and never really needed to exclude directories from the archive. I had to do this today and I worked out that I had to use absolute paths to achieve this. The following examples will exclude multiple directories from tar and zip archives respectively: […]
Read More