formats

Rsync Over SSH

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 bob@192.168.1.125:~/ 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

formats

shellinabox With Apache Authentication Over HTTPS 443

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

formats

Cron Only Email Errors

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

formats

Strip or Remove HTML Tags

Published on November 30, 2010, by + in linux, osx.

Strip or Remove HTML Tags | Here is how to easily strip or remove html tags from a file using sed. (View full post for proper syntax!) sed -e ‘s/]*>//g’ myfile.txt > myfilenew.txt This will strip tags from any sort of text file (html, csv, txt).

formats

Use du command to see file and folder sizes

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.

formats

On Hold – Stuck Jobs in Print Queue OS X

Published on November 12, 2010, by + in linux, osx.

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

formats

Make an ISO Image in Linux

Published on September 23, 2010, by + in linux.

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:

formats

Use CheckInstall When Installing From Source

Published on August 18, 2010, by + in linux.

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

formats

How To Strip EXIF Data

Published on August 7, 2010, by + in linux.

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

formats

Tar Bzip2 a Directory in Linux

Published on July 17, 2010, by + in linux, sysadmin.

Tar Bzip2 a Directory in Linux | tar.bz2 is an excellent way to compress your files and folders. I’ll show you how!

Home Posts tagged "bash" (Page 2)