HOW TO DELETE CERTAIN FILES IN CENTOS VPS

January 10, 2016   /   by Marco  / Categories :  Software, TIP AND TRICKS
HOW TO DELETE CERTAIN FILES IN CENTOS VPS

The easiest way to delete files based on the filename and extension in CentOS VPS is to use the following syntax:

find . -name "[part of the file]*.bak" -type f -delete
For example, if you want to delete images that has the name businesslegions in it use:
find . -name "businesslegions*.jpg" -type f -delete
If you’re a bit hesitant and want to check which files it will delete then use this command (without the -delete):
find . -name "[part of the file]*.bak" -type f
How to delete certain files in CentOS VPS Hope this helped as I found this very useful.

DO YOU LIKE WHAT YOU'VE READ?
Join our subscription list and receive our content right in your mailbox. If you like to receive some Great deals our Freebies then subscribe now!

Our Sponsors

  • Follow us:

OTHER ARTICLES YOU MAY LIKE


UNLOCKING YOUR FACEBOOK DISABLED ACCOUNT

UNLOCKING YOUR FACEBOOK DISABLED ACCOUNT

The article titled “What You Can Do to Unlock a Facebook Disabled Account” provides valuable information on the steps you can take to regain access to your Facebook account if it has been disabled. It begins by explaining the common reasons why Facebook may disable an account, such as violating community guidelines, engaging in suspicious […]

read more
5 REASONS WHY ZEN FLOWCHART IS OUR FAVORITE FLOWCHART MAKER

5 REASONS WHY ZEN FLOWCHART IS OUR FAVORITE FLOWCHART MAKER

Flowcharts are designed to provide a lot of clarity, improved communication, and problem-solving capabilities – but creating them digitally can always feel a bit like a bit of an uphill battle. Unless of course you are using Zen Flowchart. Designed from the ground up to be the best flowchart maker on the planet today, you’ll […]

read more

Like our Page