Blog Archives

Delete all the files not matching pattern with find and grep

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

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

Find Trick: Print The Broken Symlinks

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

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

15 Basic Commands Every Linux and Unix User Should Know How to Use

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>

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!