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
Linux Articles
Page 69 of 134
Linux 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 MoreString Manipulation in Bash on Linux
Bash is a shell language used in Linux systems that allows users to interact with the system through a command-line interface. Bash offers several string manipulation capabilities that can help users manipulate and process text strings effectively. Basic String Operations Bash provides fundamental operations for manipulating strings. To create a string variable in Bash, you simply assign a value to a variable name − mystring="Hello, world!" To display contents of a string variable, you can use the echo command − echo $mystring The output will be − Hello, ...
Read MoreHow Do so (Shared Object) Filenames Work in Linux
Shared Objects (SO) are dynamic libraries in Linux that contain code and data shared between multiple processes. Similar to DLLs in Windows, SO files enable efficient memory usage and modular programming by allowing multiple programs to share the same library code loaded in memory. What are Shared Objects? Shared objects are files containing executable code and data that can be loaded and linked at runtime. When a program needs functionality from a shared library, the dynamic linker loads the SO file into memory and makes it available to the requesting process. Multiple programs can simultaneously use the same ...
Read MoreUsing gzip and gunzip in Linux
When working in Linux, it's common to encounter large files that need to be compressed for storage or transfer. One popular compression tool available in Linux is gzip, which is used to compress files to save disk space and reduce transfer time. In this article, we'll explore how to use gzip and gunzip in Linux, including how to compress and decompress files, and how to work with compressed archives. What is gzip? Gzip is a compression utility tool used in Linux and other Unix-based systems. It's used to compress and decompress files, reducing their size for storage and ...
Read MoreHow to find number of RAM Slots in Linux
Random Access Memory (RAM) is an essential component of any computer system that stores data the processor uses frequently to speed up program execution. Since the number of RAM slots determines the maximum amount of memory that can be installed, knowing how many slots are available is crucial for planning memory upgrades. This article demonstrates three methods to find the number of RAM slots in Linux systems. Why Know the Number of RAM Slots? Understanding your system's RAM slot configuration is essential for several reasons. The amount of installed RAM determines how many programs can run simultaneously and ...
Read MoreLinux ping Command
In the world of networking, the ability to check if a networked device is reachable is a basic requirement. One of the tools that can help us achieve this is the ping command. The ping command is a tool that sends a signal to a specified networked device, and then waits for a response. The ping command is available in almost all operating systems, including Linux. What is ping Command in Linux? The ping command in Linux is a utility that helps to test connectivity between two devices on a network. The ping command sends a request to ...
Read More