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 68 of 123
The "Oldconfig" Target In The Linux Kernel Makefile
The Linux kernel provides various configuration targets through its Makefile system to help developers and system administrators build customized kernels. The oldconfig target is a crucial configuration option that allows you to update an existing kernel configuration while preserving your previous settings and only prompting for new options introduced in newer kernel versions. Note − Linux commands are case-sensitive. Understanding the Kernel Build System The Linux kernel build system uses a sophisticated Makefile structure to manage the compilation process. The configuration system determines which features, drivers, and subsystems get included in the final kernel image. There are ...
Read MoreHow to Call an External Program Using awk
Awk is a powerful text processing tool that can automate various tasks such as data manipulation, filtering, and reporting. One of its most interesting features is the ability to call external programs from within an awk script, extending its functionality beyond text processing. Understanding the system() Function The system() function is used to execute external commands from within awk. The syntax is straightforward: system(command) The command argument is the external command you want to execute. When system() is called, awk passes the command to the shell for execution. The shell executes the command and ...
Read MoreRead Random Line From a File in Linux
In Linux, reading a random line from a file can be a useful task in various scenarios. For example, when you want to select a random word from a dictionary or randomly select a line from a log file for analysis purposes. There are several ways to read a random line from a file in Linux. In this article, we will explore different methods to achieve this task along with their pros and cons. Method 1 − Using shuf Command The shuf command is a simple and efficient way to read a random line from a file in ...
Read MoreLinux Job Control &, disown, and nohup
Linux is an open-source operating system that is widely used in industry. One of the most notable features of Linux is its command-line interface (CLI), which provides flexibility and power to users. When working in the command line, it is common to run multiple commands concurrently. However, sometimes, you may want to control how these commands are executed and how they interact with each other. This is where job control comes in. Job Control Job control refers to the ability to manage and manipulate running processes in a Linux system. It allows users to start, stop, pause, resume, ...
Read MoreProcess Memory Management in Linux
Process memory management is a crucial aspect of any operating system. In Linux, the memory management system is designed to efficiently manage memory usage, allowing processes to access and use memory they require while preventing them from accessing memory they do not own. Process Memory Layout Every Linux process has a standardized memory layout divided into distinct segments: Linux Process Memory Layout Stack High Address Unused Heap Data (BSS) ...
Read MoreLinux source Command
The Linux source command is an essential tool for Linux users and administrators. It executes a script file in the current shell environment, allowing you to modify the current shell environment the same way you would if you had typed the commands manually. The source command is crucial for loading configurations, setting variables, and defining functions that persist in your current session. What is the Linux source Command? The source command reads and executes commands from a file within the current shell environment. The file is typically a shell script, but it can be any text file containing ...
Read MoreIntroduction to fzf command in Linux
fzf is a command-line fuzzy finder that revolutionizes how you search and navigate through files, directories, and data in Linux. Unlike traditional command-line tools that require exact matches, fzf uses intelligent fuzzy matching to help you find what you need quickly, even with partial or approximate input. What is fzf? fzf is a fast, portable command-line fuzzy finder written in Go. It acts as an interactive filter that can process any list of items − files, command history, processes, Git branches, or custom data. The tool uses sophisticated ranking algorithms to present the most relevant results first, making ...
Read MoreUnderstanding Time Command in Linux
As a Linux user, you must have come across the time command. It is a simple yet powerful command that allows you to measure execution time of a process. Whether you are a developer, system administrator, or just a curious user, understanding how the time command works is essential for optimizing your workflow and identifying bottlenecks in your system. What is the time Command? The time command is a Linux utility that measures the time it takes for a given command to execute. The command accepts a single argument, which is the command you want to measure. The ...
Read MoreDelete Lines in a Text File That Contain a Specific String
Text files are widely used for storing data and information in various fields such as computer science, engineering, healthcare, finance, etc. However, sometimes it is necessary to remove certain lines that contain specific strings or patterns from a text file. This task can be accomplished easily using various programming languages and command-line tools. Prerequisites Before proceeding further, we need to make sure that we have following prerequisites − A text file containing data and information. A programming language such as Python or command-line tools like Bash. Basic knowledge of regular expressions (regex) for pattern matching. ...
Read MoreHow to Reverse Order of Lines in a File in Linux
As a Linux user, you often need to reverse the order of lines in a file for various purposes like reading log files from most recent entries first, processing data in reverse chronological order, or preparing files for specific operations. This article explores several Linux commands that can accomplish this task efficiently. Using tac Command to Reverse Order of Lines The tac command (which is "cat" spelled backwards) is the simplest and most direct way to reverse line order in a file. It reads the file from end to beginning and prints each line in reverse order. ...
Read More