Files ***** .. highlight:: bash - For *Where has my space gone?*, see :doc:`df` Attributes ========== Size ==== Human readable (``h``):: ls -lhrt Type ==== - `Don't Judge a File by its Filename`_ - `Linux vs Windows: file names and file type associations`_ :: $ man file ...file - determine file type ... $ file temp/myfile.zip temp/myfile.zip: Zip archive data, at least v1.0 to extract $ file temp/logs/logger.log temp/logs/logger.log: ASCII English text $ Duplicate ========= To remove duplicate files e.g. photos:: apt install fdupes Find and remove duplicate files:: fdupes -rdN . .. warning:: The ``d`` option will **delete** the duplicate files. ===== ======================================================================== r option makes ``fdupes`` search for files recursively. d option makes ``fdupes`` delete duplicates. N option, when used together with ``d``, preserve the first file in each set of duplicates and delete the others **without** prompting the user. ===== ======================================================================== To move photos into folders:: apt install libimage-exiftool-perl exiftool "-filename=%f%c.%e" '-Directory