Efficiently Displaying Configuration Files in Linux: Excluding Empty Lines and Comments

Efficiently Displaying Configuration Files in Linux: Excluding Empty Lines and Comments When working with Linux, there’s a frequent need to view the contents of configuration files, such as `/etc/my.cnf`, without the clutter of empty lines or comments. This task can be efficiently accomplished using a combination of command-line tools. Here’s a simple yet effective command … Continue reading Efficiently Displaying Configuration Files in Linux: Excluding Empty Lines and Comments

Efficiently Logging Your Linux Console Activities

Efficiently Logging Your Linux Console Activities Working with the Linux console regularly demands a systematic approach to logging your activities. This practice isn’t just about keeping a record; it’s crucial for analyzing past actions and generating detailed reports. Here’s how you can achieve this with ease. 1. Understanding the `history` Command Firstly, the Linux environment … Continue reading Efficiently Logging Your Linux Console Activities

Dealing with Binary Files in the Console: A Quick Fix for Common Issues – using reset command

Viewing binary files through the console can occasionally lead to unexpected and disruptive issues. You might have experienced situations where the console seems to ‘break’— displaying strange characters, replacing normal text with incomprehensible hieroglyphs, and even triggering unexpected sound alerts or bizarre color blends. These anomalies can render the console practically unusable, disrupting your workflow. … Continue reading Dealing with Binary Files in the Console: A Quick Fix for Common Issues – using reset command

Exploring Array Syntax in Shell Scripting: A C-Like Approach

Shell scripting provides a versatile way to automate tasks in Unix-like systems. For programmers familiar with C or languages with similar syntax, the following pattern can be particularly intuitive: In this script, we define an array named arr with three string elements: ‘foo’, ‘bar’, and ‘baz’. We then iterate over the array using a for … Continue reading Exploring Array Syntax in Shell Scripting: A C-Like Approach

Linux find search for files changed in date range

Introduction In this quick guide, we’ll explore some useful bash commands to find files modified within a specific time frame. This is especially useful for system administrators and developers. Finding Files Modified Today To find all files in a directory that were modified today, you can use the following command: This command searches for files … Continue reading Linux find search for files changed in date range

Some useful composer options we are use for production Docker setup in Laravel apps

Composer logo

As a part of our Docker production setup of Laravel web application we are using the following composer install with some options described below: –optimize-autoloader or -o: This flag tells Composer to optimize the autoloader for better performance. Autoloading is a mechanism in PHP that automatically loads classes when they are needed. Optimizing the autoloader … Continue reading Some useful composer options we are use for production Docker setup in Laravel apps