In this article I will show you how to remove all the files that do not match a certain pattern, with grep and find, combined with grep: As an example, I will remove all the files not containing the string…
In this article I will show you how to remove all the files that do not match a certain pattern, with grep and find, combined with grep: As an example, I will remove all the files not containing the string…
This find oneliner displays all the broken links in the current directory. By adding xargs rm, you can delete all the broken links found. Find all the broken links: $ find . -type l -exec sh -c “file -b {}…
In this article I will show you 20 commands every Linux and Unix users should know how to use. The order of this commands is random. Probably ls and cd are the most used Linux and Unix commands. 1. ls <list>…