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
10 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 MoreHow to Generate SSH Key in Windows 10?
SSH (Secure Shell) is an encryption protocol that provides a secure connection between two computers over an insecure network, such as the internet. It allows users to remotely and securely access and control another computer or server. SSH works by encrypting all data sent between the two computers, including any usernames and passwords used to log in. In order to establish a secure SSH connection between two computers or servers, SSH keys are necessary. An SSH key is a pair of cryptographic keys − one public and one private. The private key is kept on the user's local ...
Read MoreCreating Apache Virtual Hosts with Enable_Disable Vhosts Options in RHEL_CentOS
Apache Virtual Hosts are a powerful feature that allows you to run multiple websites on a single server. With virtual hosts, you can configure Apache to serve different content based on the hostname or IP address of the incoming request. This makes it possible to host multiple websites on a single server, each with their own domain name, content, and settings. In this tutorial, we will show you how to create Apache virtual hosts on a RHEL/CentOS 8.0 server. We will cover the basic concepts of virtual hosts and walk you through the steps of creating virtual hosts using ...
Read MoreHow to grep string without filenames in Linux?
The grep command is a powerful tool for searching patterns in files. By default, when searching multiple files, grep displays the filename along with each matching line. However, sometimes you only want to see the matching lines without the filenames cluttering the output. Let's see a simple example where we grep a pattern in multiple files in a directory. Default grep Behavior with Multiple Files grep -i 'lp' Sample* Sample: The sample was printed via the internet. Sample: I believe lp cares about what the device is. Sample1: This was printed via the ...
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 MoreHow to Use Command Line Arguments in a Bash Script
In general, there are many ways to pass input to programming or scripting languages and sometimes there is a need to pass input from the command line instead of hardcoded values. Like any other programming or scripting language, bash scripting also supports command-line arguments. In this article, we will explore the syntax for command-line arguments, examine practical examples, and discuss the special variables used to handle these arguments effectively. Command-line Argument Syntax We already know how to run a bash script in Linux using either bash or sh command followed by the script filename. To pass command-line ...
Read MoreCopy on Write in Operating System
Copy-On-Write (COW) is a memory optimization technique used by operating systems to reduce overhead when creating new processes. It allows multiple processes to share the same memory pages until one process modifies them. When modification occurs, the OS creates a duplicate copy for the modifying process while other processes continue sharing the original page. How Copy on Write Works The COW mechanism operates through virtual memory management. When a process is created (like during fork()), instead of immediately copying all parent memory pages, the OS marks them as read-only and shares them between parent and child processes. ...
Read MoreAdvanced Copy Command with Progress Bar While Copying/Moving Files in Linux
As a Linux user, you may have found yourself in situations where you need to copy or move large files or directories from one location to another. This process can take some time, and it can be challenging to monitor the progress of copy or move operations. Fortunately, Linux provides several built-in commands that can help you copy or move files efficiently while also monitoring the operation's progress. In this article, we will discuss advanced copy commands with progress bars for copying/moving files in Linux. What is Advanced Copy Command? The Advanced Copy (or cp) command is ...
Read MoreMaster Boot Record
The Master Boot Record (MBR) is a critical 512-byte sector located at the very beginning of a storage device such as a hard disk drive or SSD. It contains essential information required to start the computer's boot process and load the operating system. The MBR consists of three main components: boot code, partition table, and disk signature. MBR Structure and Organization Master Boot Record (512 bytes) Boot Code (446 bytes) Partition Table (64 bytes) ...
Read MoreHow to Generate SSH Keys on Ubuntu?
SSH keys are cryptographic security keys that provide a more secure authentication method than passwords when connecting to remote servers. Ubuntu makes it easy to generate SSH key pairs using the ssh-keygen command-line tool. This guide will walk you through generating SSH keys on Ubuntu, understanding the different key types, and adding your public key to remote servers for secure authentication. The Benefits of Using SSH Keys over Passwords SSH keys offer significant security advantages over traditional password authentication: Enhanced Security − SSH keys use cryptographic algorithms that are nearly impossible to crack without access ...
Read More