FITFLOP
Home

unix (18 post)


posts by category not found!

Find and replace while preserving case with sed

Finding and Replacing Text with Case Sensitivity Using sed The Challenge Sometimes we need to replace a specific word in a file while maintaining its original c

2 min read 07-10-2024 41
Find and replace while preserving case with sed
Find and replace while preserving case with sed

modifying the cscope DB so that file path can be relative to new sandbox

Navigating Codebases with Cscope A Guide to Modifying the Database for Relative File Paths Cscope is a powerful tool for navigating and understanding large code

2 min read 05-10-2024 27
modifying the cscope DB so that file path can be relative to new sandbox
modifying the cscope DB so that file path can be relative to new sandbox

Hard Link is breaking with npm install

Hard Links Breaking with npm install A Common Problem and Its Solutions If you re encountering the error Hard link is breaking with npm install you re not alone

2 min read 05-10-2024 23
Hard Link is breaking with npm install
Hard Link is breaking with npm install

loading env variable from file in makefile

Loading Environment Variables from Files in Makefiles Makefiles are powerful tools for automating build processes They often rely on environment variables to co

2 min read 05-10-2024 33
loading env variable from file in makefile
loading env variable from file in makefile

Split the data of the particular column from the file using unix command

Extracting Data from a Column A Guide to Unix Commands Extracting specific data from a column in a file is a common task when working with data in a Unix enviro

2 min read 04-10-2024 24
Split the data of the particular column from the file using unix command
Split the data of the particular column from the file using unix command

Cannot reproduce the effect of mallopt(M_PERTURB, 256) with MALLOC_PERTURB_=256

Understanding the Discrepancy Between mallopt M PERTURB 256 and MALLOC PERTURB 256 The behavior of dynamic memory allocation can sometimes be influenced by the

2 min read 04-10-2024 34
Cannot reproduce the effect of mallopt(M_PERTURB, 256) with MALLOC_PERTURB_=256
Cannot reproduce the effect of mallopt(M_PERTURB, 256) with MALLOC_PERTURB_=256

Systemctl service error permission denied while using root and all the right permissions

Systemctl service Error Permission Denied Even as Root Encountering a Permission denied error when using systemctl as root even with seemingly correct permissio

2 min read 03-10-2024 36
Systemctl service error permission denied while using root and all the right permissions
Systemctl service error permission denied while using root and all the right permissions

HTML Content is not recognized in mail utility

Why Your HTML Email Isnt Showing Up Troubleshooting and Solutions Have you ever spent hours crafting a beautiful HTML email only to have it arrive in your recip

2 min read 03-10-2024 27
HTML Content is not recognized in mail utility
HTML Content is not recognized in mail utility

How can extract data single line from file and other process in each that line?

Processing Data Line by Line A Guide to Efficient File Handling Reading and processing data line by line is a common task in many programming scenarios This app

2 min read 03-10-2024 66
How can extract data single line from file and other process in each that line?
How can extract data single line from file and other process in each that line?

Inconsistent behaviour of the `O_NONBLOCK` flag

Unmasking the Inconsistencies of O NONBLOCK in Linux The O NONBLOCK flag in Linux is a powerful tool for building asynchronous and non blocking I O systems Howe

3 min read 02-10-2024 30
Inconsistent behaviour of the `O_NONBLOCK` flag
Inconsistent behaviour of the `O_NONBLOCK` flag

Why reading the contents of a socket takes so long to finish

Why Does Reading from a Socket Take So Long Have you ever found yourself waiting impatiently for data to be read from a socket only to experience a frustratingl

2 min read 02-10-2024 31
Why reading the contents of a socket takes so long to finish
Why reading the contents of a socket takes so long to finish

Extracting CPU Vendor Name via cpuid on qemu-XV6 returns "Genuntelntel" on my AMD machine

Why is my AMD CPU Showing as Genuntelntel on QEMU XV 6 Have you ever run a CPU identification command on a QEMU XV 6 virtual machine and found it reporting your

2 min read 02-10-2024 31
Extracting CPU Vendor Name via cpuid on qemu-XV6 returns "Genuntelntel" on my AMD machine
Extracting CPU Vendor Name via cpuid on qemu-XV6 returns "Genuntelntel" on my AMD machine

Assign maxsize for disk space using shell scrip

Setting Disk Space Limits with Shell Scripts A Guide to quota Managing disk space effectively is crucial for maintaining system performance and stability Shell

2 min read 02-10-2024 32
Assign maxsize for disk space using shell scrip
Assign maxsize for disk space using shell scrip

multi-threading and catching signals

Navigating the Interplay of Multithreading and Signal Handling in Python When it comes to creating high performance applications multithreading is a valuable to

3 min read 30-09-2024 30
multi-threading and catching signals
multi-threading and catching signals

Why does my simple HTTP server need two instances running in order to work?

Why Does My Simple HTTP Server Need Two Instances to Work Have you ever encountered a strange situation where your simple HTTP server requires two instances run

2 min read 30-09-2024 33
Why does my simple HTTP server need two instances running in order to work?
Why does my simple HTTP server need two instances running in order to work?

how to print block like characters in unix

Printing Block Like Characters in Unix A Guide for Beginners Have you ever wanted to create visual effects using special characters in your Unix terminal Perhap

3 min read 30-09-2024 26
how to print block like characters in unix
how to print block like characters in unix

Problem while implementing a function in a conditional bash command using background operator (&)

The Perils of Background Processes in Conditional Bash Commands A Practical Guide Lets say you re writing a Bash script and want to execute a function in the ba

2 min read 29-09-2024 31
Problem while implementing a function in a conditional bash command using background operator (&)
Problem while implementing a function in a conditional bash command using background operator (&)

sh spawn expect - handling multiple lines in expect command

Taming the Multi Line Beast Handling Multiple Lines in Expect Commands When working with interactive applications or remote servers via SSH the expect command i

2 min read 29-09-2024 38
sh spawn expect - handling multiple lines in expect command
sh spawn expect - handling multiple lines in expect command