Articles tagged "bash"
Bash Scripting for DevOps 2026: 5 Production Scripts with Error Handling and Tests
Bash scripting for DevOps engineers: 5 production-ready scripts for log rotation, HTTP health checks, PostgreSQL backup, Docker deploy, and secret rotation — with error handling, ShellCheck, and bats tests.
Linux: Find Largest Files with du Command
To find the largest file in a directory use the command: sudo du -a / 2>/dev/null | sort -n -r | head -n 20, please check here for more information
How to transfer files over the network using Netcat
Netcat is a helpful tool when you are in a hurry to transfer files between machines. Om this tutorial we will explain how to receive and send files using netcat. For receive: nc -l -p 9999 > received_file.txt, For sending: nc 192.168.0.1 9999 < received_file.txt. Check here how to compress and uncompress data using netcat.
How to install source code from tarball files on linux?
Usually you should use your package manager to install software in Linux, but sometimes you need to install software from source code. The most common steps are to execute: ./configure;make;make install. Check here for full details
Bash: How to use loops?
Detailed explanation on how to use bash loop using "for". See here some example how to iterate using bash.
How can I concatenate strings in Bash?
Check here some string concatenation examples using bash. Lean how to program bash and manipulate strings, in this case using concatenation. We propose different approaches to solve the problem with bash.