Linux

Create Custom Command in Linux

linux

Linux Operating System allows custom commands, So anyone can write their own commands for their needs. That’s the power of Linux. I am going to show you how to create custom commands ( now - to shows current time) in Linux System,

Create Bash Script :

The First thing is to create bash script in /usr/bin/ Directory which will run your commands,

$ cd /usr/bin
$ sudo vim now

Write the following code in the file,

Optimizing JPEG Images

image

JPEG is a lossy format, which means you lose information every time you save it, even if you choose 100% Quality, But all the JPEG images have some information (comments/Meta) data within it without losslessly. A tool does this magic is called JPEGTran and is likely already have an UNIX/Linux , If not see how to install it in linux and windows exe file here.

So optimize the JPEG information without losslessly with removing meta information and comments, The following command would do the magic,

How to rsync particular extension files ?

rsync

The rsync command is the greatest tool to syncronize data from the source, The rsync has lot of option to simplify the work. I am going to explain the amazing feature from the same. 

Sometimes we need to syncronize some particular extenstion from the source, The rsync has the simple and coolest solutions for that. The following command will syncronize the particular extenstions from the source.

rsync -rv --include '*' --include '*.jpg' --exclude '*' --prune-empty-dirs /source-path /destination-path

Dual Boot : Linux not showing in Windows boot loader (Recovering Linux)

linux

Recently, I had faced a problem in my system. I am using Dual boot option with Linux and Windows 8, Its all going smoothly But I have decided to re-install the windows 8 So I re-installed the windows 8 After successfully completed the re-install process. The Linux option not showing in the Windows boot loader searched more in google and finally get the simple and effective solution to fix the issue.

EasyBCD :