chkconfig — View Service Runlevel Settings

chkconfig was commonly used on older Linux distributions to view and manage which services start at different runlevels. On many modern systems, systemctl has replaced it. List service settings Modern systemd equivalent Use chkconfig mainly when working with older Red Hat, CentOS or similar systems that still use the older service model.

printenv — Print Environment Variables

The printenv command prints environment variables for the current shell session. These variables can affect paths, language settings, application configuration and script behaviour. Show all environment variables Show one variable This is useful when troubleshooting scripts that behave differently for different users or services.

md5sum — Compute and Check MD5 Checksums

The md5sum command calculates an MD5 checksum for a file. It is useful for basic file comparison, but it should not be used for modern security-sensitive verification. Create a checksum Save and check a checksum For stronger verification, prefer SHA-256 checksums when they are available.

Mount NTFS Drives in Linux

Linux can read and write NTFS drives using the NTFS driver available in modern distributions. This is useful when accessing Windows partitions or external drives. Identify the device Confirm the device name and filesystem type before mounting. Do not guess device names. Create a mount point Mount the NTFS drive Replace /dev/sdXN with the correct … Read more

sum — Compute a Simple File Checksum

sum prints a simple checksum and block count for a file. It is an older utility and is mostly useful when working with legacy scripts or older Unix-style examples. Check a file For modern file verification, prefer stronger tools such as sha256sum where available.

Protect Secrets Used by Shell Scripts

Shell scripts are convenient, but they are a poor place to store passwords, API keys, or other long-lived secrets. Obfuscating or compiling a shell script does not provide strong secret protection because the secret must still become available to the running process. Prefer secret storage over script encryption Use a dedicated secret manager when one … Read more