Linux Articles

Page 73 of 134

Guide to Useful File Manipulation Commands

Bamdeb Ghosh
Bamdeb Ghosh
Updated on 17-Mar-2026 2K+ Views

File manipulation commands are essential tools for navigating, managing, and manipulating files in Unix/Linux systems. Whether you're a software developer, system administrator, or regular user, mastering these commands will significantly improve your productivity and efficiency when working with files through the terminal. This guide covers the most commonly used file manipulation commands that every user should know. These commands form the foundation of file management in command-line environments and are crucial for effective system administration and daily computing tasks. Using ls to List Directory Contents The ls command displays the contents of a directory. By default, it ...

Read More

How do I Zip/Unzip on the Unix Command Line

Bamdeb Ghosh
Bamdeb Ghosh
Updated on 17-Mar-2026 563 Views

Zipping and unzipping files is a fundamental practice in Unix/Linux systems for file compression and archiving. We compress files to save disk space and bundle multiple files into a single archive for easier transfer and storage. When working with compressed archives, understanding both compression and extraction commands is essential for effective file management in Unix environments. Installing zip and unzip Commands First, ensure that the zip and unzip utilities are installed on your system: sudo apt install zip unzip Basic zip and unzip Operations Let's start with creating some sample files to ...

Read More

How to Use Command Line Arguments in a Bash Script

Bamdeb Ghosh
Bamdeb Ghosh
Updated on 17-Mar-2026 7K+ Views

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 hardcoded values. Like any other programming or scripting language, bash scripting also supports command-line arguments. In this article, we will explore the syntax for command-line arguments, examine practical examples, and discuss the special variables used to handle these arguments effectively. Command-line Argument Syntax We already know how to run a bash script in Linux using either bash or sh command followed by the script filename. To pass command-line ...

Read More

Introduction to File MIME Types on Linux

Bamdeb Ghosh
Bamdeb Ghosh
Updated on 17-Mar-2026 5K+ Views

MIME types (Multipurpose Internet Mail Extensions) are a crucial aspect of Linux file management, as they enable the operating system to identify file formats and determine the appropriate program for opening each file. Understanding MIME types is beneficial when dealing with various file formats on Linux systems, enhancing productivity and improving the overall user experience. What are MIME Types? MIME types are standardized identifiers that describe the nature and format of files. They consist of a type and subtype separated by a slash, such as text/plain or image/jpeg. Linux uses these identifiers to associate files with appropriate applications ...

Read More

Pipes and Redirection in Linux

Bamdeb Ghosh
Bamdeb Ghosh
Updated on 17-Mar-2026 4K+ Views

Pipes and redirection are fundamental mechanisms in Linux that enable efficient command-line operations. The pipe operator (|) allows the output of one command to serve as input to another command, creating powerful command chains. Redirection operators (>, >>, >> Redirect output (overwrite) Redirect output (append) Redirect input (from file) Redirect errors (STDERR) Output Redirection ls > file.txt echo "text" >> file.txt ...

Read More

Viewing Files in Linux Using cat, more, and less

Bamdeb Ghosh
Bamdeb Ghosh
Updated on 17-Mar-2026 2K+ Views

In Linux, we often need to view file contents without opening them in text editors like vi or vim. Three essential commands for file viewing are cat, more, and less. Each command serves different purposes depending on file size and viewing requirements. The cat command displays entire file content at once, while more and less provide paginated viewing for larger files. The cat Command The cat (concatenate) command is the most straightforward way to display file contents. It reads and displays the entire file content on the terminal screen. Basic File Viewing To display the complete ...

Read More

Working with the AWS S3 CLI in Linux

Bamdeb Ghosh
Bamdeb Ghosh
Updated on 17-Mar-2026 1K+ Views

AWS S3 (Simple Storage Service) is a reliable and scalable object storage service commonly used for storing and retrieving data across various industries. The AWS S3 CLI (Command Line Interface) provides developers and system administrators with powerful command-line tools to interact with S3 buckets and objects efficiently. This article explores essential AWS S3 CLI commands for managing buckets, uploading and downloading files, and performing other common operations in Linux environments. Setting up the AWS CLI Before using the AWS S3 CLI, you need to install and configure the AWS CLI on your Linux system. Installation Install ...

Read More

Introduction to File Locking in Linux

Bamdeb Ghosh
Bamdeb Ghosh
Updated on 17-Mar-2026 4K+ Views

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 prevents other processes from accessing a file until the lock is released. This article explores 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 to handle file lock monitoring. Types of File Locks ...

Read More

Guide to Linux jq Command for JSON Processing

Bamdeb Ghosh
Bamdeb Ghosh
Updated on 17-Mar-2026 13K+ Views

JSON (JavaScript Object Notation) is a popular data format used for exchanging information between applications. It is 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 filtering, sorting, and selecting specific fields. Additionally, jq supports various output formats, making it easy to integrate with other command-line tools. Installation Before using jq, ensure it is installed on your system. jq can be installed using the Linux package manager. Ubuntu/Debian Installation ...

Read More

3 Ways to Install Spotify [Music Streaming] in Fedora Linux

Satish Kumar
Satish Kumar
Updated on 17-Mar-2026 1K+ Views

If you're a music lover using Fedora Linux as your primary operating system, you might be wondering how to install Spotify. Fortunately, there are several straightforward methods to get Spotify running on Fedora Linux. This article explores the three most reliable and practical ways to install Spotify on your Fedora system. Method 1: Install Spotify Using Flatpak One of the easiest and most reliable ways to install Spotify on Fedora Linux is using Flatpak. Flatpak is a universal packaging system that provides sandboxed applications with consistent dependencies across different Linux distributions. Steps to Install via Flatpak ...

Read More
Showing 721–730 of 1,338 articles
« Prev 1 71 72 73 74 75 134 Next »
Advertisements