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
Articles on Trending Technologies
Technical articles with clear explanations and examples
How to Add a String After Each Line in a File in Linux?
We occasionally need to make changes to files quickly, preferably from the command line. One common task is adding a string to the end of each line of a file. In this article, we'll explore several methods to accomplish this using various Linux commands. We'll use a sample file called language.txt throughout this article. Let's first create and populate this file − $ touch language.txt $ cat > language.txt Hindi English Chinese Spanish ^D Our goal is to append the phrase "is a good language to learn" to the end of each line in the ...
Read MoreGet the Full Path of a File in Linux
Every file and folder in Linux has a path that directs the user to it. This path is required for programs and scripts to locate and access files. There are various ways to locate the path to a file or folder if you need to. We can get a full file path with different commands on a Linux machine. In this tutorial, we'll show you how to obtain a file's complete path in Linux using multiple command-line methods. Understanding File Paths in Linux In Linux, there are two different kinds of paths: absolute and relative. A forward ...
Read MoreDifference Between .bashrc, .bash-profile, and .profile
When working with the command line on Unix or Linux systems, three configuration files play crucial roles in setting up your shell environment: .bashrc, .bash_profile, and .profile. Understanding when and how these files are executed is essential for effective shell customization and environment management. How Shell Configuration Files Work These files contain shell commands that are automatically executed at specific times during shell initialization. The key difference lies in when they are executed: Login shells − Started when you log into the system (SSH, console login) Non-login shells − Started when you open a new terminal ...
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 MoreHow to Delete Line in Vim on Linux?
Vim (Vi IMproved) is one of the most popular text editors used in the Linux environment. It is a command-line based editor that was initially developed as a free and open-source alternative to the widely-used Vi editor. However, Vim has evolved to be much more than just an alternative. It has become an indispensable tool for programmers, system administrators, and power users who work with text files regularly. One of the primary reasons why Vim is so important for Linux users is its efficiency and flexibility. Unlike traditional graphical user interface (GUI) editors, Vim focuses on quick navigation and ...
Read MoreCreate Your Own Video Sharing Website using ‘CumulusClips Script’ in Linux
Creating a video sharing website can be a challenging task, but with the right tools, it becomes manageable and rewarding. CumulusClips is a popular open-source video sharing script that allows you to build your own platform similar to YouTube or Vimeo on a Linux server. What is CumulusClips? CumulusClips is an open-source video sharing script written in PHP that uses MySQL as its backend database. It provides a user-friendly interface for uploading, managing, and sharing videos with features comparable to major video platforms. Features Supports multiple video formats including MP4, WebM, and FLV Responsive design ...
Read MoreHow to set the environmental variable LD_LIBRARY_PATH in Linux?
LD_LIBRARY_PATH is an environment variable in Linux that tells the dynamic linker where to look for shared libraries at runtime. Setting this variable allows applications to find custom libraries that are not installed in standard system directories like /usr/lib or /lib. There are several ways to set environment variables in Linux, ranging from temporary session-based settings to permanent system-wide configurations. Let's explore how to properly set the LD_LIBRARY_PATH environment variable. Setting Environment Variables Permanently To set an environment variable permanently for your user session, you need to modify your shell's configuration file. Follow these steps to set ...
Read MoreDifference between Cold Booting and Warm Booting
When a user presses the power button on their computer, it initiates the process known as booting, which loads and starts the operating system. Booting involves accessing the computer's ROM to load startup instructions, followed by loading the operating system from the boot disk (typically the local hard drive). There are two types of booting − cold booting and warm booting. What is Cold Booting? Cold booting (also called a "hard boot") is the process of starting a computer from a completely powered-off state. During cold boot, the computer must first be shut down completely, then powered on ...
Read MoreHow to encrypt a large file using openssl?
OpenSSL is a powerful cryptographic toolkit that provides various security functions including file encryption. It comes pre-installed on most Linux distributions, but can be installed via package managers if needed. This article demonstrates how to encrypt large files using OpenSSL's public-key cryptography features. Understanding Encryption Types Before diving into file encryption, it's important to understand the two main encryption approaches: Symmetric (Secret-key) encryption − Uses the same key for both encryption and decryption Asymmetric (Public-key) encryption − Uses separate keys for encryption and decryption Public-key encryption is more secure as it eliminates key-sharing concerns, ...
Read MoreNow, Google+VMware Provide Services to Chrome OS
Google and VMware have partnered to make it easier for enterprise Chromebook users to access Windows applications and desktops through cloud-based virtualization. This collaboration enables Chrome OS users to run Windows environments using VMware's Horizon Desktop as a Service (DaaS), which utilizes VMware's HTML5 Blast protocol for seamless streaming. Google + VMware Chrome OS Integration Chrome OS Chromebook User Device HTML5 Blast ...
Read More