Filtering Files Copied When Using rsync on Linux

Pradeep Jhuriya
Updated on 17-Mar-2026 09:01:38

974 Views

The Linux command-line utility rsync is a powerful and flexible tool for synchronizing files and directories across different computers and locations. It is commonly used for backups, file transfers, and data replication. One of the main features of rsync is its ability to filter files based on various criteria such as file type, size, and modification time. Rsync Overview Rsync works by comparing the source and destination directories and copying only the files that have changed or been added to the source directory. This feature makes rsync ideal for transferring large amounts of data over networks, as it ... Read More

How to Fix No route to host SSH Error in Linux?

Satish Kumar
Updated on 17-Mar-2026 09:01:38

50K+ Views

SSH (Secure Shell) is a network protocol that provides secure encrypted communication between two systems over a network. It is widely used for remote system administration, file transfers, and executing commands on remote machines. However, SSH connections can sometimes fail with various error messages, one of the most common being "No route to host". The "No route to host" error indicates that your local system cannot establish a network path to reach the remote SSH server. This error occurs at the network level before any SSH authentication takes place, making it a connectivity issue rather than an SSH configuration ... Read More

How To Use The Bash read Command?

Satish Kumar
Updated on 17-Mar-2026 09:01:38

6K+ Views

The read command is one of the most fundamental commands in Bash scripting. It is used to read input from the user or from a file. In this article, we will explore how to use the read command effectively, with several examples and their output. Basic Usage of read Command The most basic usage of the read command is to take input from the user. Here's a simple example − Example echo "Please enter your name: " read name echo "Hello, $name" When you run this script, it will prompt you to enter ... Read More

Threads vs Processes in Linux

Mukul Latiyan
Updated on 17-Mar-2026 09:01:38

4K+ Views

A 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 other processes created by the main process are called child processes. A thread is an execution unit that is part of a process. A process can have multiple threads, all executing at the same time. It is a unit of execution in concurrent programming. Threads within the same process ... Read More

What is a programmed I/O?

Bhanu Priya
Updated on 17-Mar-2026 09:01:38

11K+ Views

Programmed I/O is one of the simplest forms of I/O where the CPU directly controls and monitors all I/O operations. In this technique, the CPU is responsible for transferring data between memory and I/O devices, constantly checking device status and waiting for operations to complete. How Programmed I/O Works The CPU uses special instructions to read from and write to device registers. It continuously polls the device status register to determine when the device is ready for the next operation. This method requires the CPU's full attention during I/O operations. Example − Printing "TUTORIALS" String Consider ... Read More

Architecture of a Typical Microkernel

Ricky Barnes
Updated on 17-Mar-2026 09:01:38

2K+ Views

A microkernel is the minimum software required to correctly implement an operating system. This includes memory management, process scheduling mechanisms, and basic inter-process communication. The microkernel follows a minimalist approach where only essential services run in kernel mode, while other OS functions operate in user space. Architecture of a Microkernel Microkernel Architecture User Space Device Drivers File Server ... Read More

How to Kill a Detached screen Session on Linux

Pradeep Jhuriya
Updated on 17-Mar-2026 09:01:38

5K+ Views

Screen sessions are an excellent way to run background processes on a Linux machine. However, sometimes it becomes necessary to terminate a detached screen session that is no longer needed. This article demonstrates how to kill detached screen sessions on Linux using various command-line methods. When using the GNU screen tool, we can sometimes accumulate detached sessions that require cleanup. We'll explore several approaches for terminating these disconnected screen sessions safely and efficiently. Listing Active Sessions Before terminating sessions, let's first examine how to view existing sessions. First, we'll create a couple of sample screen sessions. In ... Read More

How to Print Longest Line(s) in a File in Linux?

Satish Kumar
Updated on 17-Mar-2026 09:01:38

2K+ Views

Finding the longest line(s) in a file is a common task in Linux system administration and text processing. Whether you're analyzing log files, configuration files, or data files, several command-line tools can help you identify lines with maximum character length efficiently. Method 1: Using wc Command The wc (word count) command with the -L option finds the length of the longest line in a file. $ wc -L filename For example, with a file named sample.txt containing: This is first line. This is second line. This is the longest line in the ... Read More

File System Structure

Arnab Chakraborty
Updated on 17-Mar-2026 09:01:38

26K+ Views

A file system is a method of organizing and managing files on storage devices such as hard disks or flash drives. It provides a logical structure to physical storage space, allowing users and applications to access and manipulate files efficiently. The file system serves as an interface between the operating system and storage hardware, translating user requests into low-level storage operations. Components of File System A file system consists of several key components that work together to manage data storage − Files − Basic storage units containing data such as text, images, audio, or executable code ... Read More

Best Lightweight Linux Distributions For Older Computers

Satish Kumar
Updated on 17-Mar-2026 09:01:38

1K+ Views

If you have an older computer lying around that's just not powerful enough to run modern software, you may think it's time to send it off to the recycling center. But before you do, consider installing a lightweight Linux distribution. These operating systems are designed to run on older, less powerful machines and can breathe new life into your aging computer. In this article, we'll take a look at some of the best lightweight Linux distributions for older computers. We'll cover the benefits of these operating systems, what to look for when choosing one, and detailed examples to help ... Read More

Advertisements