Linux

How many files?

You can easily find out how many files are in the current directory by typing the following in your Terminal session: ls -l | wc -l [...]


List only directories from the command line

If you’re in a Terminal session and would like to only list the directories of the current folder you’re in, do a ls -d */ [...]


Batch convert images from the command line

A simple way to convert images in Linux is by using the command line: convert image.jpg newImage.gif will convert the JPG file to a GIF file. convert -quality 78% file.jpg will set the quality of the JPEG file to 78% con[...]


Quick and easy sharing of a directory over HTTP in Linux

Say you want to share a folder for a friend. What better way than pointing him to an URL? Put this in your .bash_profile and login to your account. alias webshare=‘python -c ”import Simpl[...]