Bash Tip and Tricks

Illustrated infographic summarizing: Bash Tip and Tricks

Check if file or directory exists, multiple ways: https://linuxize.com/post/bash-check-if-file-exists/

Tar: compress a directory

tar -czvf name-of-archive.tar.gz /path/to/directory-or-file

Nano settings

Nano is an easy editor for the terminal. Useful options for ~/.nanorc:

set linenumbers
set softwrap
set tabsize 4

Run a process in the background

Add & at the end to detach a process started in the terminal, for example npm run evaluation &, or nohup bash script.bash & so it keeps running after the terminal closes. jobs lists the running jobs for that user; from another shell use htop or ps -ef | grep bash.

References: run a Node.js server in the background, Node.js app as a background service, npm run start in the background.

Recently installed packages on Ubuntu

grep " install " /var/log/dpkg.log

Latest articles

Before closing an Apache patch ticket, check what is running, which fixes the package contains, and whether the updated service passes configuration and application checks.

Make monthly reporting easier to repeat with AI for Excel, Python and consistent checks. Get imports, error lists and reconciliation under control so the numbers can be verified.

A supplier PDF can influence more than an AI summary. Follow its path to a CRM update and see where validation, tool permissions and destination controls matter.

Check whether AI shopping channels show the right product, variant, price and availability, then trace discrepancies from your catalog through to checkout.

Add approved hours from Clockify to draft invoices in Dinero. AI writes service descriptions, while fixed rules govern amounts, approvals and reruns.

A blanket AI restriction can limit search discovery. Compare Google and Bing controls, agree content permissions, and check what your CMS actually delivers.

Measure AI automation costs per accepted result, including retries and human review. Check caching, batch processing and spending controls before scaling.

A 502 after maintenance can interrupt enquiries or checkout. Trace the NGINX-to-PHP connection, diagnose the failure, and check the fix survives a restart.

Let AI customer service retrieve order status from Shopify and Shipmondo. Learn how to define the scope, verify the customer's identity and hand over cases when information is uncertain.

Move a useful AI workflow into company-controlled projects, with clear ownership, tested permissions, service accounts and a practical plan for replacing credentials.