Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (15 sloc) 487 Bytes

command note

find

find . -type l -print | perl -nle '-e || print'

empty file
    cat /dev/null >file 

    or

    : >file  # this does not fork a new process, since ":" is a builtin.
mv dir
    (cd /source/directory && tar cf - . ) | (cd /dest/directory && tar xpvf -)
    # Move entire file tree from one directory to another
    # [courtesy Alan Cox <a.cox@swansea.ac.uk>, with a minor change]