Category Archives: All

All posts

Parsing files and rename …

Sometimes you have to rename files. This can be tiring when we do it manually. Command “se” 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 :

Try these commands to… Read More »

Useful commands for Windows XP

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

Create ls command on Windows XP.

When using 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 to use ls -l this command… Read More »

How to change bash custom prompt ?

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 parameter is expanded a to… Read More »

Linux commands : “find” and the option “empty”

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 empty.

These are… Read More »