}

Articles tagged "bash"

23 min read Intermediate

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.

1 min read Beginner

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

2 min read Intermediate

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.

2 min read Beginner

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

2 min read Beginner

Bash: How to use loops?

Detailed explanation on how to use bash loop using "for". See here some example how to iterate using bash.

1 min read Beginner

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.