Rsync Over SSH | Here is a quick and easy way for transferring files via rsync over ssh. rsync [options] ssh [local source directory] [user@server]:[destination on server] Example: # rsync -avPz /home/bob/workstuff firstname.lastname@example.org:~/ a (recursive, hidden files incl, etc. – the standard rsync option) v verbose P show Progress z compress data during transfer This will make a copy
shellinabox With Apache Authentication Over HTTPS 443 | shellinabox is an amazing web-based SSH client. It is very handy if you are not on a machine with a good terminal app, are filtered to not having port 22 available, or other uses such as a good web based shell to use while on the ChromeOS notebook. This guide shows how to setup and
Cron Only Email Errors | To have your trusty cron job only email errors, simply add this designation to the end of your cron entry: >/dev/null Example: */30 * * * * /usr/local/bin/myscript.pl >/dev/null Optional more geeky details: There are two different kinds of output from any given command. “>” is the same as issuing “1>” which is the non-error
Use du command to see file and folder sizes | How can I see the size of files and folders from the command line? Use the command du to quickly list sizes! A command I like to use is: du -hsc * This will provide a listing of file and folder sizes from your current working directory, including a total size amount at the bottom.
On Hold – Stuck Jobs in Print Queue OS X | In OS X at times you may have an old print job that you cannot delete. It will often say ‘On Hold’ in the print queue. To clear this out, first open up the Terminal (Applications > Utilities > Terminal ) Type the following, then press Enter: cancel -a That will do it! The cancel
Make an ISO Image in Linux | To make an iso image from a disc in Linux, first put the disc in your drive. If it mounts, umount the disc but leave it in the drive. Then issue:
Use CheckInstall When Installing From Source | Need to compile and install something from source? You should use checkinstall! What is checkinstall? CheckInstall creates a nice neat .deb (or rpm) of your sources which you can then easily install (and more importantly – easily UNinstall!). First, install checkinstall: sudo apt-get install checkinstall Then when compiling from source, first begin the process as
How To Strip EXIF Data | How can I strip EXIF, GPS, and other metadata from photos in Linux? Using a single command from the wonderful ImageMagick, you can strip all of that personal data from your photos before posting them to the web. First, install ImageMagick: sudo apt-get install imagemagick Then simply run this command below. Note: *.jpg will strip
Tar Bzip2 a Directory in Linux | tar.bz2 is an excellent way to compress your files and folders. I’ll show you how!