Useful Linux shell tricks. Using Brace expansions to create folders.

The Linux command-line offers many useful methods of creating many folders on your computer at once.  This command will create a few folders on your system named one,two,three,four and create the folders five,six,seven,eight within each folder created. ~$ mkdir -p {one,two,three,four}/five/six/seven/eight~$ mkdir -p {one,two,three,four}/five/six/seven/eight This command will create four folders…

Read More

Strange but useful shell trick with the bash shell.

This is a very strange shell trick that allows you to have a set of parameters to a Linux command that are separated by single quotes. [homer@localhost ~]$ df -h’l’a’T’ Filesystem Type Size Used Avail Use% Mounted on rootfs rootfs 216G 75G 130G 37% / proc proc 0 0 0…

Read More