File Operations

File Operations

Fast file deletion

perl

yum install ncurses ncurses-devel
cd <directory>
perl -e 'for(<*>){((stat)[9]<(unlink))}'

rsync

mkdir empty_dir
rsync -a --delete empty_dir/ <directory>/

/home/www/sites/esgr.in/wiki/data/pages/operations/file_operations.txt · Last modified: 2018/03/05 05:48 by eServices Greece