Found 1167 Articles for Operating System

Introduction to File Locking in Linux

Bamdeb Ghosh
Updated on 29-Mar-2023 13:58:03
Introduction File locking is a mechanism used to restrict access to a file to only one process or user at a time. It is essential in multi-user systems to avoid conflicts when multiple processes try to access the same file simultaneously. In Linux, file locking is implemented through the use of locks. Lock prevents other processes from accessing a file until the lock is released. In this article, we will explore file locking in Linux and how to implement it using C code. We will discuss the different types of file locks, how to create and release locks, and how ... Read More

How to Use Command Line Arguments in a Bash Script

Bamdeb Ghosh
Updated on 29-Mar-2023 11:20:51
Introduction In general, there are many ways to pass input to programming or scripting languages and sometimes there is a need to pass input from the command line instead of input from the code. Like any other programming or scripting language bash scripting also support the command-line argument. In this article, we will try to explore the syntax for command-line arguments and then we will see some examples for command-line arguments and discuss the special variables. Command-line Argument Syntax We already know how to run a bash script in Linux. We can use either bash or sh command and then ... Read More

How do I Zip/Unzip on the Unix Command Line

Bamdeb Ghosh
Updated on 29-Mar-2023 11:18:50
Introduction Zipping and unzipping a file is a very common practice in Linux. We need to zip many files into one file for the following reasons. It saves disk space in the system. We can keep multiple files inside one file. This also helps to copy this zipped file to another system. When we have one zipped file, we should also know how to unzip it to get all the required files. So, zipping and unzipping commands are very important in Linux. In this article, we are going to learn on various commands for zipping and then unzipping. ... Read More

Guide to Useful File Manipulation Commands

Bamdeb Ghosh
Updated on 29-Mar-2023 11:15:00
Introduction File manipulation commands are some of the most commonly used and important tools available to users. Whether you're a software developer, data analyst, or just an everyday computer user, file manipulation commands allow you to quickly and easily navigate, manipulate, and manage files on your system. Let’s explore some of the most useful file manipulation commands that you can use in a terminal. These commands are essential for anyone who works with files on a regular basis and can greatly improve your efficiency and productivity. By mastering these file manipulation commands, you can become a more efficient and productive ... Read More

Guide to the Linux read Command

Bamdeb Ghosh
Updated on 29-Mar-2023 11:11:53
Introduction As we work with the Linux command line, we often need to interact with input from the user or from files. This is where the "read" command comes in handy. It is a simple yet powerful command that can be used in a variety of ways to process input in Linux. By learning how to use the read command in various ways, we can become more proficient in using this command and automate tasks more efficiently. Let us cover all the methods and formats of the Linux read command. We will start with the basics, including how to read ... Read More

Guide to the AWK Programming Language on Linux

Bamdeb Ghosh
Updated on 29-Mar-2023 11:08:00
Introduction AWK is a scripting language utilized for text processing in Linux. It's designed to manipulate data in text files, making it an ideal tool for data analysis and management tasks. With a range of built-in functions and operators, AWK can perform simple search and replace tasks or complex data transformations. Its concise syntax and versatility allow for easy manipulation of text files. AWK is a powerful tool for those who work with text files in Linux environments. Let us provide a beginner's guide to the AWK programming language on Linux. We will cover the basic syntax of the language, ... Read More

Guide to Linux jq Command for JSON Processing

Bamdeb Ghosh
Updated on 29-Mar-2023 13:58:48
Introduction JSON (JavaScript Object Notation) is a popular data format used for exchanging information between applications. It is a lightweight and easy-to-understand. To process JSON data efficiently, Linux provides a command-line tool called jq. This powerful tool enables users to extract, manipulate, and transform JSON data with ease. With jq, users can quickly perform a wide range of tasks on JSON data, including filtering, sorting, and selecting specific fields. Additionally, jq supports a variety of output formats, making it easy to integrate with other command-line tools. In this article, we will explore the jq command and its various features and ... Read More

Finding the PID of the Process Using a Specific Port

Bamdeb Ghosh
Updated on 29-Mar-2023 10:43:51
Introduction In the world of Linux, processes play a crucial role in enabling software programs to function efficiently. Each running application or task on a computer system is assigned a distinct process identification number (PID) that serves as a unique identifier to differentiate it from any other active process running on the same system. Similarly, every network connection in a computer system is associated with a specific port number that helps identify the source and destination of the data transfer. In some cases, it may be necessary to find the PID of a process that is using a particular port. ... Read More

Bash Functions in Linux

Bamdeb Ghosh
Updated on 29-Mar-2023 10:37:50
Introduction Function is a section in the code where group of instructions are kept in one place. Like all other programming or scripting languages, we can use function in bash in Linux. There are many advantages using function than without using function. Some benefits are like, it is easy to read or execute the code and functions can be reused in code whenever needed. Though there are some limitations in bash function, still it is good to use function for bash scripting if there is a need. There are two ways a bash function can be defined Define ... Read More

3 Ways to Install Skype in Fedora Linux

Satish Kumar
Updated on 28-Mar-2023 10:42:33
Skype is one of most popular video conferencing and instant messaging applications in world. It is a great tool for both personal and professional communication, allowing users to connect with people all over globe. If you are a Fedora Linux user, you may be wondering how to install Skype on your machine. In this article, we will cover three ways to install Skype in Fedora Linux, including using RPM package, using Snap package, and using Flatpak package. Method 1: Installing Skype with RPM Package The RPM (Red Hat Package Manager) package is a popular package management system used by many ... Read More
Previous 1 ... 3 4 5 6 7 ... 117 Next