Print the email addresses with status=”bounced” in postfix mail log

To print the email addresses with status “bounced” only from the provided log file, you can use grep to filter lines containing “status=bounced” and then use awk to extract the email addresses. Here’s how you can do it: Explanation: This series of commands will extract and print only the email addresses from lines with status …

4 ways to run Linux Commands in the Background

This is also another Linux command I tend to forget. I usually need to re-search how to run Linux commands in the background. This happens when I stop using the command line for a while. This time I’m going to write a brief Linux tutorial about this. First I need have brew a good cup …

Create Symbolic Links in Linux

Symbolic links in Linux is the same as creating a shortcut in Windows. Use the ln command to create symbolic links. I was a little confusing to me when I was learning about it. But, then I got it. After a walk in the new Long Island RR station at the Grand Central Terminal in …

How to Fix Cron “Operation not permitted” error in macOS

I have been working on putting together a simple bash script to backup my client’s macOS users files to a local NAS in their office. I put this script in a cron job in my macOS Big Sur, but kept getting Operation not permitted” error in my macOS Big Sur machine. WTF! Crazy thing was …

Install Shell Completion for Docker in macOS Big Sur

Docker Desktop comes with scripts to enable completion for the docker and docker-compose commands. The completion scripts may be found inside Docker.app, in the Contents/Resources/etc/ directory and can be installed both in Bash and Zsh. Bash Bash has built-in support for completion To activate completion for Docker commands, these files need to be copied or …

Change Default Shell to bash macOS Big Sur

The other day I got a new Apple M1 processor chip (I really don’t like there’s only two ‘USB-4’ ports and the ‘Magic bar’ bothers me!). But, anyways when I opened my terminal i noticed the below message and wanted to change default shell to bash for this macOS Bir Sur. I got used to …