Posted in Linux commands

sort: Change Directory for Temporary Files

To change the directory for temporary files during sort use the parameter -T:

$ sort -T /var/big_filesystem file_to_sort

This can be helpful, if you sort a big file and the default directory (/tmp) is full or too small.

Advertisements