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


FILMORA 15.2.3 UPDATE: DID IT FIX PLAYBACK JITTER? A PRACTICAL TEST WITH GPU SETTINGS

FILMORA 15.2.3 UPDATE: DID IT FIX PLAYBACK JITTER? A PRACTICAL TEST WITH GPU SETTINGS

Wondershare Filmora has received a new point release, and for many editors the first question is simple. Has this update finally fixed that annoying playback jitter in the preview window. If you have felt a stutter during editing that makes your footage look as if frames are being skipped or shuffled rather than played smoothly, […]

read more
FILMORA 15 – WHAT’S NEW? AI EXTEND, DYNAMIC CAPTIONS, TRUE TIMELINE EDITING + INSTALL GUIDE

FILMORA 15 – WHAT’S NEW? AI EXTEND, DYNAMIC CAPTIONS, TRUE TIMELINE EDITING + INSTALL GUIDE

There is a particular thrill to installing a major new release of your everyday editor, especially when your workflow is comfortable and productive in the current version. That feeling is right at the heart of the move from Filmora 14 to Filmora 15. This upgrade promises fresh creative features, faster handling of complex projects, and […]

read more

Like our Page