Sometimes you have to rename files. This can be tiring when we do it manually. Command sed may be helpful in this case. I’ll take a simple example. I will create a working directory called work. We have to create files with the command:

The result should be :… Continue Reading Parsing files and rename …

These are commands that can be used in the command line in Windows XP.

When using the command line on Windows have a big problem. This happens because I use Linux on my computer. Command alias of Linux gave me the idea. I put these lines of code in the Autoexec.bat file:

Now, using the REGEDIT command to startup Autoexec.bat. If you try… Continue Reading Create ls command on Windows XP.

By default, shell prompt is displayed hostname and current working directory. It is composed of some variables called: PS1 – default value is \s-\v\$ . PS2 – default is > PS3 – is used as the prompt for the select command PS4 – default is + and value of this… Continue Reading How to change bash custom prompt ?

The command find is quite used to Linux. One of these uses is for finding files and folders that are empty. Finding empty files:

Finding empty directories:

Counting them is by using pipes, as in the examples below:

We can do the same for those which are not… Continue Reading Linux commands : “find” and the option “empty”

This tutorial works very well on older versions of Fedora 15. It is necessary that you have ImageMagick installed.

To create a screen capture using the following command:

Use the following command for a png image format:

Command import has options for this purpose without using the… Continue Reading How to use the import command to take screenshots?

We will present a more special method of using the Linux command line. This method comes in helping those who need to text or HTML content. In fact, a combination of Linux commands to get an output. Suppose we have a list of jpeg files in folder image. They should… Continue Reading Create html file with bash script.

Download entire site, use command:

If you want the pages that site links than using:

If you want to download only jpg files, then use: