Rename multiple files and remove some characters

Sometimes you have to rename multiple files and remove some characters. For instance After compressing images you have multiple jpg files with “min” characters:

In this case we want to remove part of file name – “min.”. In order to do it we will use rename command:

This command will remove “min.” from every jpg file (*.jpg). If you want to remove from any file in the directory,…

Read More

Batch converting images in command line

Today I wanted to resize some pictures. I always use command line and “convert” to do it. Usually I type this:

  This command resizes me picture to 1024 pixels in width.   Today I wanted do the same but I had more pictures. So if you would like to do batch convert type this in terminal:

   

Read More

How to setup SSH server on Ubuntu 16.04

First of all – what is SSH? Secure Shell (SSH) is a cryptographic network protocol for operating network services securely over an unsecured network. Wikipedia said… Imagine this situation: you have server at your office and you are at home. You want to do some things on the server from your home. Using SSH protocol you can have a terminal from your server on your computer at home. And finally…

Read More

Synchronize data in Ubuntu using rsync

Last time I bought a desktop PC to my small office. I wanted to have a PC which will be always in my office, because getting notebook every time is not comfortable. So I bought Dell OptiPlex 760 Form Factor (FF) with this configuration: Intel® Core™2 Duo Processor E8400 2 x 3,0 Ghz, 6MB Cache, 4 GB RAM, 160 GB HDD. I deleted Windows and I installed Ubuntu 16.04, of…

Read More