File system - markhowellsmead/helpers GitHub Wiki
Summarise folder sizes
du -h
$dir
Get recursive list of all files in
Find all generated WordPress images
find . -regextype posix-extended -regex ".*-[:digit:](/markhowellsmead/helpers/wiki/:digit:){2,4}x[:digit:](/markhowellsmead/helpers/wiki/:digit:){2,4}(@2x)?.(jpg|jpeg|png|eps|gif)" -type f
On Mac OS
find -E . -type f -regex ".*-[:digit:](/markhowellsmead/helpers/wiki/:digit:){2,4}x[:digit:](/markhowellsmead/helpers/wiki/:digit:){2,4}(@2x)?.(jpg|jpeg|png|eps|gif)"
Find files or folders matching pattern (recursive in current folder)
find . -name "*-c-default.jpg";
Find a folder
find . -type d -name "src";
Find a file
find . -type f -name "Plugin.php";
Find and delete files matching pattern (recursive in current folder)
Caution: is executed immediately with no warning.
find . -name ".DS_Store" -delete;