Advanced Shell Scripting Techniques: Automating Complex Tasks with Bash

Bash scripting, a cornerstone of Unix and Linux system administration, offers powerful tools to automate repetitive tasks, streamline workflows, and handle complex operations. For those already comfortable with basic scripting, diving into advanced techniques can unlock new levels of efficiency and capability. This post will explore advanced shell scripting techniques in Bash, focusing on script optimization, robust error handling, and automating complex system administration tasks. Script Optimization Optimization is crucial for ensuring that your scripts run efficiently, especially when dealing with large datasets or intensive tasks. Here are some key techniques to optimize your Bash scripts. ...

June 19, 2024 路 5 min 路 980 words 路 Omid Farhang

Set permanent custom resolution for Ubuntu and KDE Using Xrandr and Xsetup

After switching from Gnome and Unity to KDE, I had a problem with SDDM and it was that it could not detect correct resolution for my UltraWide monitor and set it to Full HD instead of 2560脳1080. I had a similar problem in Ubuntu with another old monitor. Anyway that solution is same in both cases. The solution for this problem is using Xrandr and Xsetup to set the correct resolution and make it permanent. ...

May 24, 2018 路 2 min 路 227 words 路 Omid Farhang