• Twitter

    • Ads

    Posts Tagged 'bash'

    How to create a 1 gig file

    dd if=/dev/zero of=big-file.bin bs=1g count=1 or mkfile 1g big-file.bin

    12 August 2011 at 20:27 - Comments

    How to tar a directory and only include certain file types

    find myProjectDirectory -type f \( -name \*\.php -o -name \*\.js -o -name \*\.css -o -name \*\.inc \) | xargs tar -rf myProjectTarName.tar

    28 March 2011 at 12:10 - Comments

    How to change file or folder permissions recursively with chmod

    To set only files that end with .tpl to 600 (pattern escaped with slashes) find . -name \*\.tpl -exec chmod 600 {} \;

    28 March 2011 at 11:38 - Comments