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 93 of 123
Find Files Not Owned by a Specific User in Linux
A Linux system may consist of various users with different permissions. However, sometimes we need to find files that are not owned by a specific user. The find command provides powerful options to search for files based on ownership, allowing you to locate files owned by other users or files with no owner at all. The find command is a versatile utility for searching files and directories based on various criteria including owner, type, permissions, and attributes. It comes pre-installed on almost every Linux distribution and is essential for system administration tasks. How to Find Files Not Owned ...
Read MoreHow to Insert a New Line Character in Linux Shell Script Output ?
In bash, a newline refers to a line's end and marks the beginning of new text. In Linux/Unix operating systems, the newline character is represented as , which instructs the terminal to move the cursor to the beginning of the next line. Many text editors don't display this character by default. Inserting newline characters serves several important purposes − It helps format output to be readable and well-structured. Separating output into sections makes it easier to locate specific information. Newlines act as line breaks that identify where one line ends and another begins in scripts. They allow you ...
Read MoreUsing grep on Files That Match Specific Criteria
The grep (global regular expression print) command is a powerful text-processing utility that searches for specific patterns in files using regular expressions. It filters and displays lines containing the specified pattern, making it one of the most essential commands for system administrators and developers on Unix/Linux systems. Unlike other operating systems, finding content within files in Linux is straightforward with grep. This command can search through single files, multiple files, or entire directories, displaying matching lines or just the filenames that contain your search pattern. When using grep, keep these important points in mind: Grep is ...
Read MoreSet Up cURL to Permanently Use a Proxy on Linux
cURL is a command-line tool used to request data from servers and transfer it to devices. The user specifies the server URL and any data to be sent. cURL works on Windows, macOS, and Linux, supporting over 25 protocols including SFTP, FTP, HTTPS, and HTTP. It is one of the best open-source tools for API calls and debugging network requests. A proxy server acts as an intermediary between users and websites, transferring traffic while providing security and functionality layers. When using a proxy, internet requests first go to the proxy server, which evaluates them against predefined rules before forwarding ...
Read MoreProcessing Linux Commands in Parallel
Processing Linux commands in parallel allows administrators to execute multiple commands simultaneously, significantly improving efficiency when performing tasks like system updates, service management, and file operations. Command chaining is the technique of combining multiple commands using various operators and methods. Using the & (Background) Operator The & operator runs commands in the background, allowing the shell to execute the next command without waiting for the previous one to complete. command1 & command2 Example running ls and cat commands simultaneously: ls & cat Linux.txt [1] 6178 Don't erase the existing ...
Read MorePrint Lines Between Two Patterns in Linux
Printing lines between two patterns is a common text processing task in Linux when you need to extract specific sections from files. While the grep command can find lines matching patterns, it cannot easily extract content between two different patterns. For this purpose, sed and awk commands provide powerful pattern-matching capabilities. This article demonstrates various methods to print lines between two patterns using sed and awk commands with different conditions and filtering options. Sample File Setup First, let's create an example file to demonstrate the pattern matching techniques − cat example.txt Information ...
Read MoreHow To List All Group in Linux ?
Groups in Linux are collections of users that provide a convenient way to manage permissions and resource access. A Linux system can have many users organized into multiple groups, where administrators assign specific privileges to control file and directory access. Users can belong to two types of groups − Primary / Login Group Secondary / Supplementary Group User-created files are assigned to this group. The primary group usually has the same name as the user. Grants additional privileges to a set of users for specific tasks or resources. Users ...
Read MoreHow to Fix \"Your PHP installation appears to be missing the MySQL extension which is required by Wo”?
The error message "Your PHP installation appears to be missing the MySQL extension which is required by Wo" indicates that your server lacks the essential PHP MySQL extension needed for WordPress to function properly. This common error typically occurs during WordPress installation, upgrades, or server migrations when the MySQL extension is not properly installed or configured. Understanding the Error PHP is a server-side scripting language used for web development that enables dynamic website functionality. WordPress relies heavily on PHP to interact with its MySQL database, which stores all website content, user data, and configuration settings. The MySQL ...
Read MoreHow to Fix Broken Packages in Ubuntu?
Broken packages are a common issue for Ubuntu users that occur when there is an error in the installation process or post-installation scripts. When a package is broken, it cannot be installed, upgraded, or even removed from your system, potentially causing programs to malfunction and leaving the system unstable. It is crucial to fix broken packages as soon as possible to avoid further issues with your system stability and prevent potential data loss. Identifying Broken Packages Using the Terminal to Check for Broken Packages The Terminal is a powerful tool for checking broken packages in Ubuntu. ...
Read MoreHow To Fix Broken Ubuntu OS Without Reinstalling It?
Ubuntu is one of the most popular Linux distributions available today, with millions of users worldwide. It's a free and open-source operating system based on the Debian architecture, known for its simplicity, user-friendliness, and stability. However, even with all its benefits, Ubuntu is not invulnerable to problems. Sometimes issues can arise that make the system unusable or unstable. For example, during software updates or upgrades, an unexpected power outage or hardware failure can cause files to become corrupted or packages to break down. When this happens, you might think the only solution is to reinstall Ubuntu from scratch. ...
Read More