Understanding .a , .so and .la library files in Linux

Mukul Latiyan
Published on 31-Jul-2021 12:18:04
In order to understand what the libraries of files with the extensions .a, .so and .la actually mean, we first must be aware of the concept of libraries in Linux. A Linux in its very simple terms is a collection of pre-compiled pieces of code which are known as functions. ... Read More

Threads vs Processes in Linux

Mukul Latiyan
Published on 31-Jul-2021 12:17:40
ProcessA process is the execution of a program that allows you to perform the appropriate actions specified in a program. It can be defined as an execution unit where a program runs. The OS helps you to create, schedule, and terminate the processes which are used by the CPU. The ... Read More

What is the maximum number of threads per process in Linux?

Mukul Latiyan
Published on 31-Jul-2021 12:17:19
There are multiple ways with which we can check the maximum number of threads that Linux has allocated to a particular process.Approach 1cat /proc/sys/kernel/threads-maxOutput61741We can also increase the default value set by linux with the help of the command shown below −echo 123456789 > /proc/sys/kernel/threads-maxwhere 123456789 = Number of threadsApproach ... Read More

Linux – How to resolve the error "can't connect to Docker daemon"

Mukul Latiyan
Published on 31-Jul-2021 12:16:54
It is one of the commonly known errors that the new users can get when trying to start Docker on a daemon process. This error usually comes up when you try to run the following command in your terminaldocker-compose buildThe docker-compose in the above command is a tool that is ... Read More

Is there a goto statement available in bash on Linux?

Mukul Latiyan
Published on 31-Jul-2021 12:15:13
Long story short, Linux’s bash doesn’t have goto statements and no information about the control structures exists in the official documentation. It should also be noted that we can make use of the break and continue statement to achieve the same behaviour that goto statement provides us.A simple behaviour of ... Read More

How would I get a cron job to run every 30 minutes on Linux?

Mukul Latiyan
Published on 31-Jul-2021 12:14:12
In order to create a crontab job to run every 30 minutes we first need to explore and understand what a crontab job is.A crontab is nothing but a list of commands that we can run during a cron job. A cron job is a utility that schedules automatic execution ... Read More

How to write multiple line strings using Bash with variables on Linux?

Mukul Latiyan
Published on 31-Jul-2021 12:03:19
Setting a variable to a single line in bash and then printing it to console is a fairly easy process, but if we want to write multiple line strings using Bash then we have to consider different approaches.In total there are three approaches that we can make use of, all ... Read More

How to use the sub process module with pipes on Linux?

Mukul Latiyan
Published on 31-Jul-2021 12:02:59
In Python, we have the subprocess module that allows us to work with additional processes and makes things easier for us as a developer. While there are other modules available to us that also provide similar functionalities as the subprocess module like the os.spawn(), os.system(), os.popen() and much more, but ... Read More

How to use the sed command to replace a text in files present in a directory and subdirectories?

Mukul Latiyan
Published on 31-Jul-2021 12:01:57
Let’s consider a case where we have two directories, say, d1 and d2 and both these directories contain some files, which may be the same or different. Now we want to make use of the sed command to replace a particular text that might be present in some of the ... Read More

How to use the grep command to search for a string that has a dot in it?

Mukul Latiyan
Published on 31-Jul-2021 12:00:56
In order to be able to grep a string that has a dot inside it, we must first understand what a grep command is and how to use it on Linux.The grep command in Linux is used to filter searches in a file for a particular pattern of characters. It is ... Read More
Previous 1 ... 3 4 5 6 7 8 9 ... 5382 Next
Advertisements