Found 993 Articles for Open Source

General DaemonServer Design - Best Practices (CC++, Linux)

Satish Kumar
Updated on 03-Mar-2023 14:50:46
Introduction In today’s world, where usage of computers is everywhere, it’s almost impossible not to encounter a daemon server. Daemon servers are crucial for any system to perform tasks in background, without disturbing user’s experience. They are responsible for tasks such as managing file systems, networking, security, and many more. In this article, we will discuss some general daemon server design best practices using CC++ programming language and Linux operating system. Daemon Server Design The design of a daemon server should be efficient, reliable, and easy to manage. A well-designed daemon server should follow certain best practices, some of which ... Read More

Using direct IO with ecryptfs and similar stackable file systems

Satish Kumar
Updated on 03-Mar-2023 14:49:07
Introduction Encryption is process of converting plain text into an unreadable format known as ciphertext. encrypted text can only be read with help of a secret key or password. In modern era, encryption has become a very important tool for maintaining data privacy and security. ecryptfs is a popular encryption mechanism that is used in Linux-based operating systems. It provides a secure and transparent way to encrypt files, directories, and entire filesystems. It is a stackable filesystem, which means that it can be layered on top of other filesystems to provide encryption. In this article, we will discuss how to ... Read More

How do you determine which individual pages are resident on Linux

Satish Kumar
Updated on 03-Mar-2023 14:47:54
As a Linux user, it is essential to have a good understanding of how to determine which individual pages are resident on your system. This knowledge can help you optimize your system's performance and avoid memory issues. In this article, we will discuss different ways to identify resident pages on Linux, including using command-line tools and system monitoring utilities. Understanding Resident Pages Before we dive into ways of identifying resident pages on Linux, let's first understand what resident pages are. When a process in Linux accesses a file or program, kernel copies data into memory to speed up future access. ... Read More

Compiling native GCC for arm using cross-compiler

Satish Kumar
Updated on 03-Mar-2023 14:47:15
Introduction Cross-compiling is process of compiling program for different system than one it is being compiled on. It is typically done to target embedded systems or compile for a different architecture than host system. process of cross-compiling for ARM is essential when targeting embedded systems that are commonly found in Internet of Things (IoT) devices. In this article, we will discuss how to compile native GCC for ARM using a cross-compiler. What is ARM? ARM is a type of processor architecture that is widely used in embedded systems. It is a type of Reduced Instruction Set Computer (RISC) architecture that ... Read More

Multiple simultaneous downloads using Wget

Satish Kumar
Updated on 03-Mar-2023 14:46:25
When it comes to downloading files from internet, there are numerous ways to go about it. One such method is using command-line tool Wget, which is an extremely versatile and powerful utility for downloading files. Wget is a popular tool among developers, system administrators, and even casual users due to its simplicity and speed. In this article, we will take a closer look at Wget's ability to download multiple files simultaneously, and how this feature can improve your download speeds. What is Wget? Wget is a command-line utility used for retrieving files from web. It is a non-interactive tool that ... Read More

Linux Commands Comparison curl vs wget

Satish Kumar
Updated on 03-Mar-2023 14:45:21
Introduction Linux is a versatile operating system that is popular among developers, system administrators, and enthusiasts. It offers a variety of tools to help users perform various tasks, and two of most commonly used command-line utilities are curl and wget. Both these commands are used to download files from internet, and while they have some similarities, they also have distinct differences. In this article, we'll compare and contrast curl and wget, including their features, syntax, and use cases. Overview of curl and wget Curl and wget are both command-line tools used to retrieve data from internet. They use different protocols ... Read More

Common Linux Text Search

Satish Kumar
Updated on 03-Mar-2023 14:43:54
Introduction Linux is an open-source operating system that is widely used for servers, workstations, and mobile devices. It is well-known for its stability, reliability, and security. One of most useful features of Linux is its command-line interface (CLI), which allows users to perform various tasks quickly and efficiently. In this article, we will focus on one of most common tasks in Linux CLI – text search. Text search is an essential task for many Linux users, as it allows them to find specific pieces of text in files, directories, and even across entire system. Linux provides several tools for text ... Read More

Splitting Files in Unix Systems

Satish Kumar
Updated on 03-Mar-2023 14:43:15
Introduction Unix systems have been popular for their efficiency and versatility in handling file operations. One of common operations is to split files into smaller chunks to make them more manageable. split command in Unix is used to achieve this task. This command allows user to split a large file into smaller files of specific sizes or based on specific delimiters. In this article, we will explore split command and its usage in Unix systems. Split Command Syntax − The basic syntax of split command is as follows − split [OPTION]... [INPUT [PREFIX]] The [OPTION] and [PREFIX] are optional ... Read More

How to Find Broken Symlinks in Linux

Satish Kumar
Updated on 03-Mar-2023 14:41:52
Introduction Symbolic links, also known as symlinks, are a fundamental part of Linux file system, and they allow users to create shortcuts to files or directories. A symbolic link is a file that points to another file or directory, and it allows users to access a file or directory without having to use its full path. However, sometimes a symbolic link can become broken or outdated, which can cause issues for system or user. In this article, we will explain how to find and identify broken symlinks in Linux, and provide some examples of how to fix them. What is ... Read More

Guide to Stream Redirections in Linux

Satish Kumar
Updated on 03-Mar-2023 14:40:28
As a Linux user, it's essential to understand concept of stream redirections. Stream redirections allow us to manipulate and control input and output streams of Linux commands. It means that we can control where standard input, output, and error streams are going to and coming from. In this article, we'll guide you through basics of stream redirections and show you how to use them with examples. Introduction to Stream Redirections In Linux, there are three types of streams − Standard Input (stdin) − This is input stream that allows us to send data into a command. Standard Output (stdout) ... Read More