Posts by Year

2024

Saving Permissions for Files and Directories

1 minute read

Archiving permissions for files and directories can often prove to be a valuable practice, especially in scenarios where system configurations or access requ...

Exploring the Lesser-Known Command: lastb

2 minute read

In the realm of Unix-like operating systems, particularly Linux, there exists a wealth of commands that cater to various administrative needs, ranging from m...

2023

Linux Command History: An Introduction

2 minute read

In the vast realm of Linux, mastering the command line is a valuable skill that empowers users to navigate, control, and customize their systems with precisi...

How to Automatically Add odd_or_even in a Loop

1 minute read

When working with Ruby loops, there may be times when you need to distinguish between odd and even elements. While you can utilize the ActiveSupport cycle he...

Ansible loops - howto control loops

2 minute read

Ansible, a powerful automation tool, empowers system administrators and DevOps engineers to streamline their infrastructure management tasks. One of Ansible’...

Working with ansible loops

1 minute read

Ansible provides various loop constructs that allow you to iterate over lists, dictionaries, and other data structures. Loops are useful for performing repet...

Less Known Bash Variables

2 minute read

Bash, the popular command-line shell for Unix-like systems, offers a wide range of variables that provide control and customization options for your shell en...

How to Check if a Variable is Defined in Ruby

less than 1 minute read

Sometimes, it’s necessary to check whether a variable is defined or not in your Ruby code. In this section, we will explore two common approaches to accompli...

How to List Files in a Directory with Ruby

1 minute read

Often, you may need to obtain a listing of files from a specific directory for your administrative tasks or scripts. Fortunately, it’s quite simple to accomp...

Ways to Find Your Ubuntu Version

less than 1 minute read

Have you ever forgotten which Ubuntu version you are using? If that’s the case, here are some methods to check the Ubuntu version currently running on your s...