simple script to watch for file changes on Linux

simple script to watch for file changes on Linux
Its a pretty common exercise in Linux/Unix shell programming to monitor a particular folder for file changes, typically the addiiton or change of a file. There’s a variety fo ways to do it , the more common approach is to use. In Linux, we can use the inotify interface to monitor a directory or a file. We do this ...

How to Rsync between two folders automatically on file changes 3

How to Rsync between two folders automatically on file changes
A common usage of rsync is to copy files from one location to another, rsync is the successor of scp command . However, there are some advantages that rsync has over scp: Incremental transfer: rsync can transfer only the differences between two files, which makes it faster and more efficient than scp. This is particularly ...

Keeping Things Running: Mastering Background Processes in Linux

Keeping Things Running: Mastering Background Processes in Linux
In the world of Linux, sometimes you need tasks to run indefinitely without hogging your terminal. This is where background processes come into play! They allow you to continue using your terminal while long-running operations quietly execute in the background. There are three primary ways to achieve this: 1. The “&” Operator: This is the ...

Fix mount error(95): solved! Operation not supported SMB 39

Fix mount error(95): solved! Operation not supported SMB
Mounts SMB/CIFS shares with Linux It’s common practice to mount Windows file shares on Linux  using the SMB (Samba) implementation on Linux.  the command is fairly straight forward. # Install the required libraries if you haven't done that yet sudo apt update sudo apt install cifs-utils #Next mount the folder you want sudo mount -t ...

short and simple Linux .profile status banner 1

short and simple Linux .profile status banner
Here’s just a short post about a little .profile code snippet I use to help give me a brief system overview upon logging into my accounts.. It produces an output similar to the one below.  Now  I understand there are tons of little utilities out there like Neofetch (commind line system information tool), that provides ...

WordPress linux backup script to offsite NAS via Rsync 5

WordPress linux backup script to offsite NAS via Rsync
Here’s a simple straightforward bash | shell script that I use for this SITE to easily and routinely backup my Entire  Wordpress Site , all its folders and plugins , and the corresponding database.   Of course there are dozens of WordPress Backup  plugins (such as Backup Buddy;  Updraft Plus; BackWpUp ) that do this ...