Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Open Source Articles
Page 29 of 123
10 ‘Avconv’ Commands to Record, Convert and Extract Videos & Audios from Linux Terminal
Are you a Linux user who frequently works with video and audio files? If so, you'll want to learn about the versatile avconv tool. Avconv is a command-line utility that can record, convert, and extract videos and audios from Linux terminals. In this article, we'll explore 10 essential avconv commands that you can use to accomplish a variety of multimedia tasks. Record a Video The first avconv command we'll look at is how to record a video. This is useful when you need to capture a video of your screen or webcam. Here's the command − ...
Read MoreFind last Directory or file from a given path
Extracting the last directory or file name from a given path is a common task in shell scripting and Linux command-line operations. For example, from the path /tmp/dir/target, we want to extract target as the final component. While this seems straightforward, there are several edge cases that can cause simple solutions to fail, such as trailing slashes, root directory paths, and filenames containing spaces. Common Solutions Since Linux filesystems use forward slashes (/) as path separators and don't allow slashes in filenames, we can treat the path as slash-separated components and extract the last non-empty element. ...
Read MoreWhat is the maximum number of threads per process in Linux?
Linux manages thread allocation through several system parameters and limits. The maximum number of threads per process is determined by multiple factors including system-wide thread limits, virtual memory availability, and stack size configurations. System-Wide Thread Limit The first approach to check the maximum number of threads is to examine the system-wide limit: cat /proc/sys/kernel/threads-max 61741 This value represents the total number of threads that can exist on the entire system. You can modify this limit using: echo 123456789 > /proc/sys/kernel/threads-max where 123456789 is your desired maximum thread ...
Read More10 7zip (File Archive) Command Examples in Linux
If you're a Linux user, you probably deal with file archives frequently. Whether you're sending files to someone, backing up data, or just organizing your files, compressing them into a single file archive can save a lot of space and make things easier to manage. One tool you can use for this purpose is 7zip. In this article, we'll cover 7zip command examples in Linux that you can use to compress and extract files in various ways. What is 7zip? 7zip is a free and open-source file archiver, similar to WinZip or WinRAR on Windows. It was developed ...
Read MoreDelete empty files and directories in Linux
Empty files and directories in Linux systems don't consume significant disk space, but removing them periodically helps maintain system cleanliness and organization. This tutorial covers various methods to delete empty files and directories using the powerful find command in Linux systems. Delete Empty Files in a Directory The find command with specific options can locate and remove all empty files in a directory structure. The basic syntax combines type filtering, empty file detection, and deletion in one command. find . -type f -empty -print -delete Let's examine this command with a practical example. Consider ...
Read MoreKylin Operating System
An operating system (OS) is a group of programs that controls computer hardware resources and offers standard services to software applications. The Operating System (OS) serves as a conduit between you and the computer components when you first use a computer system. The operating system is actually a type of low-level software known as a "system software, " which powers a computer's fundamental operations like memory management, task scheduling, and peripheral control. Overview and History of Kylin OS The National University of Defense Technology (NUDT) in China created the Linux-based operating system known as Kylin. Since its initial ...
Read MoreLRU Cache implementation using Double Linked Lists
LRU (Least Recently Used) Cache is a caching algorithm that evicts the least recently accessed item when the cache reaches its capacity. It maintains items in order of their usage, with the most recently used at the front and the least recently used at the back. A doubly linked list combined with a hash map provides an efficient implementation with O(1) time complexity for both get and put operations. How LRU Cache Works The LRU cache maintains two key data structures: Doubly Linked List − Stores cache items in order of usage, with head as most ...
Read MoreMechanism for building Distributed file system
A Distributed File System (DFS) is a file system that allows multiple clients to access and share files stored across various servers in a network. Building a DFS requires careful integration of several key components including file servers, metadata management, directory services, file access protocols, replication mechanisms, caching strategies, and security measures. Distributed File System Architecture The architecture of a DFS consists of interconnected components that work together to provide seamless file access across the network. The system is designed with multiple file servers, each storing portions of the distributed files, connected through a network infrastructure. ...
Read MoreHow to Install and Configure Cluster with Two Nodes in Linux?
In today's era, the use of clusters has become increasingly important in the field of computing. A cluster is a group of interconnected computers that work together as a single entity to provide high-performance computing, data analysis, and fault tolerance. In this tutorial, we will demonstrate how to install and configure a two-node cluster in Linux using Pacemaker and Corosync. A cluster consists of two or more nodes that work together as a single system. Each node is a separate computer with its own resources (CPU, memory, storage) connected through a network for communication and resource sharing. Pacemaker acts ...
Read MoreHow to Install and Configure Nginx on CentOS 7?
Nginx is a popular web server that is known for its high performance, scalability, and low resource usage. It is commonly used as a reverse proxy, load balancer, and HTTP cache. In this article, we will discuss how to install and configure Nginx on CentOS 7. Step 1: Update System Before installing any packages, it's essential to update your system to the latest version. Run the following command − sudo yum update Step 2: Install Nginx Once the system is updated, we can proceed with the installation of Nginx. Install Nginx using the ...
Read More