Open Source Articles - Page 74 of 136

Viewing Files in Linux Using cat, more, and less

Bamdeb Ghosh
Updated on 29-Mar-2023 11:51:41

2K+ Views

Introduction Sometime in Linux, we do not want to open a file using vi or vim to see the content of file. Instead, we can use other Linux commands like ‘cat’, ‘more’ and ‘less’. Depending on the user requirement, either cat or more or less command can be used. Though there are many options or arguments for each command, but in this article we will try to explore the most commonly used options for each commands with some examples. We will start with most widely used command ‘cat’ and then move on to ‘more’ and ‘less’ command. ‘cat’ command Approach ... Read More

Pipes and Redirection in Linux

Bamdeb Ghosh
Updated on 29-Mar-2023 11:40:55

4K+ Views

Introduction Pipes and redirection are two different kinds of mechanisms used in Linux. Sometimes, we need the output of a command to be passed as input of another command and do some operation. There we use the pipe operator. The operator is “|”. It’s found on top of the “Enter” key. Sometimes, we redirect or pass all the output of a command to a file for storing purposes. Also, we take a file’s content as input for a command. This is called redirection and operators are used like “>”, “>>” and “” to do this operation. In the first example, ... Read More

Introduction to File MIME Types on Linux

Bamdeb Ghosh
Updated on 29-Mar-2023 11:36:40

5K+ Views

Introduction MIME types are a crucial aspect of Linux file management, as they enable the operating system to identify the file format and determine the appropriate program for opening the file. Understanding MIME types can be beneficial, especially when dealing with various file formats on Linux systems. This article provides an overview of MIME types and explains how to determine the MIME type of a file on Linux. It also introduces the xdg-mime command, a powerful tool for managing MIME types on Linux, allowing users to change the default application associated with a particular file type or add new MIME ... Read More

Introduction to File Locking in Linux

Bamdeb Ghosh
Updated on 29-Mar-2023 13:58:03

4K+ Views

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 do I Zip/Unzip on the Unix Command Line

Bamdeb Ghosh
Updated on 29-Mar-2023 11:18:50

503 Views

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

2K+ Views

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

5K+ Views

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

Finding the PID of the Process Using a Specific Port

Bamdeb Ghosh
Updated on 29-Mar-2023 10:43:51

7K+ Views

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

3 Ways to Install Skype in Fedora Linux

Satish Kumar
Updated on 28-Mar-2023 10:42:33

1K+ Views

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

3 Ways to Install Atom Text Editor in openSUSE

Satish Kumar
Updated on 28-Mar-2023 10:41:51

608 Views

Atom is an open-source text editor that is widely used by developers for coding purposes. It is a highly customizable text editor that comes with a vast range of plugins and themes that enhance its functionality. Atom is compatible with different operating systems, including Windows, macOS, and Linux. In this article, we will focus on how to install Atom text editor in openSUSE, a popular Linux distribution. Let's dive in and explore each of these methods. Using openSUSE Package Manager openSUSE Package Manager is a powerful tool that allows users to install and manage software packages in openSUSE. Atom text ... Read More

Advertisements