Blog Archives

5 Find Oneliners for removing all the empty files with a certain extension

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 {}

Tagged with: , , , , , ,
Posted in The Linux and Unix Articles!

20 Find oneliners for changing file and folder permissions

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 {}

Tagged with: , , , , , , , ,
Posted in The Linux and Unix Articles!

Find Trick: How to find and delete the empty directories in a directory tree

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

Tagged with: , , , ,
Posted in The Linux and Unix Articles!

How to find files in Linux and Unix – part 1

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

Tagged with: , , ,
Posted in The Linux and Unix Articles!
Support LinuxG via Patreon
Support LinuxG.net on Patreon!
Subscribe

  

Subscribe to get the latest Linux news and how to guides directly on your e-mail!