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


SUPABASE BACKUP TUTORIAL: USE DBEAVER TO EXPORT YOUR DATABASE SAFELY

SUPABASE BACKUP TUTORIAL: USE DBEAVER TO EXPORT YOUR DATABASE SAFELY

If you are building anything serious on Supabase, whether that is a client portal, a SaaS app, an internal dashboard, or even a small side project that is starting to get traction, having a reliable database backup process is one of those tasks that quickly moves from optional to essential. Supabase makes a lot of […]

read more
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

Like our Page