Category: Commands

Mac OS X locate bash command

11:06 PM by Christian Koch

Filed under Commands

Last modified 11:09 PM

To activate on your Mac OS X the locate bash command open your bash and insert the following command: It will take a couple of minutes before you can use the locate command, the database for it needs to get created.

Linux shell – execute a programm periodically and watch its output – watch

01:36 PM by Christian Koch

Filed under Commands

Last modified 01:43 PM

In this example I want to view the directory output every 5 seconds: To stop the output press CTRL+C Now to get more awesomeness you can also let watch mark changes in run with the -d parameter:

Optimize png’s from command line with optipng

07:36 PM by Christian Koch

Filed under Commands

Last modified 07:41 PM

Be aware that this updates all png’s in the entire subtree of /to/my/parent/folder/with/pngs

jpegtran – Optimize jpeg’s from command line

07:16 PM by Christian Koch

Filed under Commands

Last modified 07:36 PM

Be aware that this updates all jpeg's in the entire subtree of /to/my/parent/folder/with/jpegs

Recursively replace a word in multiple files in multiple directories

12:13 AM by Christian Koch

Filed under Commands

Last modified 12:13 AM

Great CentOS FTP Tutorial

03:33 PM by Christian Koch

Filed under Commands, vsftp

Last modified 03:34 PM

Copy&Paste and everything wooks great. http://www.etissimo.com/ftp-server-unter-centos-mit-virtuellen-benutzern-einrichten/

Encrypt and decrypt files with OpenSSL

07:08 PM by Christian Koch

Filed under Commands

Last modified 07:09 PM

To encrypt a file, in my example original.file on your terminal using openssl use the following command: This command encrypts the original.file using blowfish cipher. If you want to use another encryption take a look at the man pages of openssl. To decrypt encrypted.file use the following command: That's it.

Mac OS X – Start insecure Chrome

05:12 PM by Christian Koch

Filed under Commands

Last modified 05:19 PM

To open Chrome on Mac OS X in insecure Mode for example to open XMLHttpRequest from another Server use this command in your terminal: Be aware not to open other unsecure or unknown Sites that you don't know. You should prefer to open them in the normal Mode ;-)