Lädt...


📚 How to use find command to delete all *.log files created in last 90 days except for last 7 days


Nachrichtenbereich: 🐧 Unix Server
🔗 Quelle: cyberciti.biz

See all UNIX related articles/faq

I have log files created whenever I patch or rebuild Linux containers. They are taking disk space. The logs are helpful if something fails. Otherwise, after a few weeks, those log files have no usage for me. So here is a quick tip on how to use the find command to delete all *.log files created in the last 90 days except for the previous 7 or 10 days. The commands mentioned in these tips are compatible with the Linux, FreeBSD, and macOS versions of the find command.

Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit

The post How to use find command to delete all *.log files created in last 90 days except for last 7 days appeared first on nixCraft.

...

📰 How to use find command to delete all *.log files created in last 90 days except for last 7 days


📈 101.44 Punkte
🐧 Unix Server

🕵️ Apache Cordova up to 5.2.2 on Android Log.v/Log.d()/Log.i()/Log.w()/Log.e() information disclosure


📈 42.96 Punkte
🕵️ Sicherheitslücken

🐧 Find and delete all files in folder, but don't delete the folder itself


📈 37.76 Punkte
🐧 Linux Tipps

🐧 How to quickly find and delete large files on Linux with Large Files Finder


📈 31.78 Punkte
🐧 Linux Tipps

📰 How to quickly find and delete large files on Linux with Large Files Finder


📈 31.78 Punkte
🖥️ Betriebssysteme

📰 How to find and delete files older than X days on macOS


📈 31.3 Punkte
🖥️ Betriebssysteme

🍏 How to find and delete files older than X days on macOS


📈 31.3 Punkte
🍏 iOS / Mac OS

📰 How to find and delete files older than X days on macOS


📈 31.3 Punkte
🖥️ Betriebssysteme

📰 Find command Exclude or Ignore Files (e.g. Ignore All Hidden .dot Files )


📈 29.81 Punkte
🐧 Unix Server

🐧 Why use find command when I can use sort command in my finder


📈 27.47 Punkte
🐧 Linux Tipps

📰 WhatsApp 'Delete for Everyone' Doesn't Delete Media Files Sent to iPhone Users


📈 27.42 Punkte
📰 IT Security Nachrichten

🕵️ CVE-2022-45393 | Delete log Plugin up to 1.0 on Jenkins Build Log cross-site request forgery


📈 27.4 Punkte
🕵️ Sicherheitslücken

🔧 PostgreSQL: Deleting all records from a table, except for the first and last ones.


📈 26.95 Punkte
🔧 Programmierung

🔧 Where to find queue worker config files created from laravel forge?


📈 26.81 Punkte
🔧 Programmierung

🐧 How to Delete Ingress Using “kubectl delete” Command?


📈 25.93 Punkte
🐧 Linux Tipps

📰 How To Delete Win Log Files In Windows 10 (3-Methods)


📈 25.8 Punkte
📰 IT Security Nachrichten

🕵️ CVE-2014-3536 | CloudForms Management Engine 5 Registration top_output.log Log log file


📈 25.78 Punkte
🕵️ Sicherheitslücken

🕵️ CVE-2013-1771 | Monkeyd on Gentoo Log File master.log log file (OSVDB-90602)


📈 25.78 Punkte
🕵️ Sicherheitslücken

🕵️ Palo Alto GlobalProtect App up to 5.0.8/5.1.1 Diagnostic Log PanGPS.log Password debug log file


📈 25.78 Punkte
🕵️ Sicherheitslücken

🍏 FBReader 2.0 - eBook reader for most book formats, except DRM-protected files.


📈 25.28 Punkte
🍏 iOS / Mac OS

🐧 Extracted Media Files From North Korea’s Red Star OS Are Beautiful — Except For A Few


📈 25.28 Punkte
🐧 Linux Tipps

🍏 How Do I Find and Delete Video Files Shorter Than or Equal To 3 Seconds?


📈 24.79 Punkte
🍏 iOS / Mac OS

🍏 Best ways to find and delete duplicate files on Mac


📈 24.79 Punkte
🍏 iOS / Mac OS

🪟 Find and Delete Duplicate Files in Windows 11 With 3 Steps


📈 24.79 Punkte
🪟 Windows Tipps

📰 Vodafone Says, Regulations against every telecom operator in last 2 years, except Jio


📈 24.2 Punkte
📰 IT Security Nachrichten

📰 Vodafone Says, Regulations against every telecom operator in last 2 years, except Jio


📈 24.2 Punkte
📰 IT Security Nachrichten

matomo