All this 5 oneliners do the same thing. Remove the empty files with a certain extension (.txt in my example), with the Linux and Unix powerfull find command: One: $ find /path/to/dir -type f -name ‘*.txt’ -empty -exec rm {}…
All this 5 oneliners do the same thing. Remove the empty files with a certain extension (.txt in my example), with the Linux and Unix powerfull find command: One: $ find /path/to/dir -type f -name ‘*.txt’ -empty -exec rm {}…
In this article I will show you 10 find oneliners, for manipulating the file and folder permissions. 1. Add execution rights for the user to all the files in the current directory: find . -type f -exec chmod u+x {}…
In this article I will show you how to delete the empty directories from a directory tree with the find command. I will use the find command, combined with rmdir. The rmdir command deletes only the empty directories and doesn’t…
Find is a very powerfull command for searching files and folders in Linux and Unix. This is the first find article in a serios of three. The find command uses the brute force to search for files and folders. The…