Linux tips

How to download the webiste with all resources ?

In Linux a simple command, wget, allows to download a website and store it with all resources in your system. Imagine that you want to download http://lequipe.fr. You can make it with following comman...

Continue Reading →

How to copy remote file or directory ?

To copy remote file or directory in Linux, you can use scp (Secure Copy) command where the first parameter represents copied resource and the second one the destination. For example, to copy test.txt ...

Continue Reading →

How to create an alias ?

Alias can be useful in the cases when we don't want to search some files located somewhere in a directory. Imagine the case when we have a simple bash script called printer.sh printing "Hello world": ...

Continue Reading →

How to create symbolic link ?

Symbolic link (symlink) creation in Linux is possible thanks to ln -s command. Below you can find a command to make a symlink called /home/bartosz/my_trash for /home/bartosz/tmp directory: ln -s /h...

Continue Reading →

How to make a tar of one directory ?

Simple tar command makes a tar archive. Below you can find a command which: makes a tar archive (c flag) add Gzip compression (z flag) makes the archive for src/ directory (f flag) shows all arc...

Continue Reading →

How to switch azerty on qwerty ?

In Ubuntu we can change keyboard layout with setxkbmap command. Below you can find a command switching keyboard layout to French: setxkbmap fr ...

Continue Reading →

How to create dirs recursively ?

To create directories recursively, we need to specify -p flag for mkdir command: mkdir -p root/child1/child2 If any of these directories exists, this command will create 3 directories: root, c...

Continue Reading →