nixCraft Linux / UNIX Newsletter

Link to [RSS/Feed] nixCraft: Linux Tips, Hacks, Tutorials, And Ideas In Blog Format

I put a cronjob in /etc/cron.{hourly,daily,weekly,monthly} and it does not run and how can I troubleshoot it?

Posted: 23 Aug 2017 02:12 PM PDT


Recently I created a simple shell script called backup.sh in /root/scripts directory to just backup MySQL database and dumped it to /nfs/mysql/ directory. I put a file (more like used the ln command to create a soft link ) in /etc/cron.hourly/ and it doesn't run. There was no error in systemd log or cron log. Why is my cron job was not working, and here is how I troubleshoot it.

How to delete files containing a character or number/digit in their filename on Linux or Unix

Posted: 23 Aug 2017 01:35 PM PDT

I am a new Linux system user. How do I delete file containing a character 'a' or 'z' in their filename or digit such as '4' or '2' in their filename on Linux or Unix bash shell prompt?

Linux: 25 Iptables Netfilter Firewall Examples For New SysAdmins

Posted: 23 Aug 2017 11:59 AM PDT


Linux comes with a host based firewall called Netfilter. This guide shows essential iptables command to control your daily life firewall rules and security of Linux server running on the bare metal server, router, or cloud server.

PHP Log All Errors to a Log File to Get Detailed Information

Posted: 23 Aug 2017 11:45 AM PDT

Ths quick guide describes how to log error messages to a text file when using PHP server side programming language on a Linux/Unix-like system for debugging purpose.