Skip to main content
GrN.dk

Main navigation

  • Articles
  • Contact
  • Your Digital Project Manager
  • About Greg Nowak
  • Services
  • Portfolio
  • Container
    • Excel Freelancer
    • Kubuntu - tips and tricks
    • Linux Apache MySQL and PHP
    • News
    • Image Gallery
User account menu
  • Log in

Breadcrumb

  1. Home

Linux

By Greg Nowak, 10 February, 2022

Delete Files and Folders Older Than X days

find /[FOLDER_NAME]/* -mtime +[OLDER_THAN_DAYS] -exec rm -rf {} \;

Example deletes all files and folders in tmp folder that are older than 180 days: find /tmp/* -mtime +180 -exec rm -rf {} \;

Tags

  • bash
  • Script
  • Linux
By Greg Nowak, 23 September, 2021

Ubuntu Logs Journalctl and Dmesg

You can see a lot of good information for debugging and fixing errors on your Ubuntu server with journalctl and dmesg

journalctl --since "1 days ago"

journalctl --since "10 hours ago"

journalctl --since "12 hours ago" -p 3 -x --utc --no-pager

dmesg | less

dmesg -H --time-format iso| less

Resources:

https://unix.stackexchange.com/questions/50098/linux-network-troublesho…

Tags

  • Linux
  • logistics
  • Script
By Greg Nowak, 23 September, 2021

WordPress Cron: When to Replace WP-Cron with Server Cron

WP-Cron depends on site traffic and loopback requests, so important background jobs can drift or fail quietly. This guide explains when to keep it, when to replace it with server cron, and how to test it properly.

Tags

  • wordpress
  • WP-CLI
  • Linux
  • Operations
By Greg Nowak, 22 September, 2021

Bash Find and Delete Files Older Than X Days

find [FOLDER_NAME]/* -prune -mtime +14 -exec rm {} \;

Tags

  • Script
  • Linux
By Greg Nowak, 6 September, 2021

Nagios check_http notes for practical HTTPS monitoring

Practical Nagios `check_http` guidance for teams monitoring client or business-critical websites, including redirects, content checks, certificate age, and when to switch to `check_curl`.

Tags

  • Nagios
  • Monitoring
  • Linux
  • Web Operations
By Greg Nowak, 24 August, 2021

How to Flush DNS Cache on Ubuntu Linux

If a site cutover, mail change, or API move is still resolving the old address, this guide shows the current Ubuntu DNS flush command, the legacy alias, and how to check whether another local cache is actually the problem.

Tags

  • Ubuntu
  • Linux
  • DNS
  • Operations
By Greg Nowak, 11 August, 2021

Remove whoopsie-upload

sudo systemctl stop apport
sudo systemctl stop whoopsie 
sudo systemctl disable apport
sudo systemctl disable whoopsie
sudo aptitude purge apport whoopsie

Source: https://askubuntu.com/questions/1245078/woopsie-upload-all-process-cons…

Tags

  • Linux
By Greg Nowak, 11 August, 2021

SystemD Notes Tips and Tricks

A nice little guide: https://tecadmin.net/run-shell-script-as-systemd-service/

Tags

  • Linux
  • Script
By Greg Nowak, 10 August, 2021

Skype For Linux Fix High CPU Consumption

Possible fix:

Delete the cache: ~/.config/skypeforlinux/Cache/

Skype start command: nice -n 19 rm -r ~/.config/skypeforlinux/Cache/* ; nice -n 19 /usr/bin/skypeforlinux %U skypeforlinux --disable-accelerated-video-decode=true

Skype start command vanilla: /usr/bin/skypeforlinux %U

Tags

  • Linux
By Greg Nowak, 8 August, 2021

Linux Browser Tweaks

In firefox I have enabled a couple of tweaks described here for hardware acceleration: https://askubuntu.com/questions/1216192/why-is-kubuntu-using-much-more-…

 

Maybe more info here: https://itectec.com/ubuntu/ubuntu-why-is-kubuntu-using-much-more-cpu-th…

Tags

  • Linux

Pagination

  • 1
  • Next page
Linux

Review Greg on Google

Greg Nowak Google Reviews

 

  • Drupal CMS 2.0 Makes Marketing-Site Rebuilds Faster, but Canvas, Recipes, and Governance Are Still Paid Work
  • Public Staging URLs and Admin Panels Are Still an Ops Leak, and Cloudflare Access Is a Paid Cleanup Job
  • WordPress 6.8 Password Hashing Makes Legacy Login Bridges a Paid Troubleshooting Problem
  • WooCommerce HPOS Migration Is Now an Ops Project for Stores With Plugin and Reporting Debt
  • Bulk Delete Cloudflare DNS Records: Better Than Chrome Browser Console JavaScript
RSS feed

GrN.dk web platforms, web optimization, data analysis, data handling and logistics.