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
Docker host network vs bridge network
Docker provides two primary single-host networking modes: host and bridge networks. Single-host networks operate locally on each individual Docker host, providing different levels of network isolation and connectivity options. In host networking, Docker containers share the host's network stack directly, eliminating network isolation between container and host. With bridge networking, containers run in an isolated network namespace and require explicit port mapping to communicate with external systems. Host Network Mode Host networking allows containers to use the host's network interface directly. This mode provides maximum performance but sacrifices network isolation. Creating a Container with Host Network ...
Read More5 Things I Dislike and Love About GNU/Linux
GNU/Linux is an open-source operating system that has been gaining popularity over the years. It is known for its reliability, security, and flexibility. While every user's experience differs, there are common aspects that people tend to appreciate or find challenging about GNU/Linux. This article examines five key dislikes and loves that users commonly express about GNU/Linux. Things Users Dislike About GNU/Linux Software Compatibility Limitations One major challenge with GNU/Linux is that some proprietary software may not be compatible with the operating system. This creates obstacles for users who depend on specific programs unavailable on GNU/Linux platforms. ...
Read MoreHow to display the current working directory in the Linux system?
To print the current working directory, we use the pwd command in the Linux system. pwd (print working directory) − The pwd command is used to display the name of the current working directory in the Linux system using the terminal. This is a shell builtin command that is available in most Unix shells such as Bourne shell, ash, bash, ksh, and zsh. Syntax The general syntax of the pwd command is as follows − pwd [-LP] A brief description of options available in the pwd command. Option Description ...
Read MoreHow to edit a file after I shell to a Docker container?
When working with Docker containers, you may need to edit files directly inside the container after accessing its shell. This is common during debugging, configuration changes, or quick fixes. There are multiple approaches to achieve this, depending on whether you need a temporary solution or want to prepare an image with pre-installed editors. Accessing a Container Shell First, you need to access the container's shell. There are two main scenarios: Creating a New Container with Shell Access To create and run a new Ubuntu container with interactive shell access: $ docker run -it --name=mycont ...
Read MoreStorage Area Networks
Storage Area Networks (SANs) are specialized high-speed networks that provide block-level access to consolidated storage devices. Unlike traditional file-based storage access, SANs make storage devices appear as locally attached drives to servers, enabling multiple systems to share storage resources efficiently. SANs are widely adopted across organizations of all sizes due to their cost-effectiveness and scalability. They separate storage resources from individual servers, creating a dedicated storage infrastructure that can be managed centrally. Storage Area Network Architecture Host Layer Server 1 ...
Read MoreRemove Line Endings From a File on Linux
Line endings are special characters that mark the end of a line in a text file. On Unix-based systems like Linux, the line ending is represented by a single newline character (). On Windows, the line ending is represented by a combination of a carriage return (\r) and a newline character (), which is referred to as CRLF. Sometimes, you may need to remove line endings from a file for various reasons. For example, you may want to remove line endings before using it as input to a command that expects a single line of input, or to make ...
Read MoreUser defined bridge on Docker network
A user-defined bridge network in Docker provides enhanced networking capabilities compared to the default bridge network. It allows containers to communicate using container names instead of IP addresses, offers better isolation, and provides more flexible network management options. Advantages of User-Defined Bridge Networks User-defined bridge networks offer several key benefits over default bridge networks: Name-based communication − Containers can access each other using names or aliases instead of IP addresses Better isolation − Only containers within the same user-defined network can communicate with each other Dynamic connectivity − Containers can be connected or disconnected from networks ...
Read MoreHow to Install and Configure GitLab on CentOS 8/7?
GitLab is an open-source platform that allows you to manage your source code repositories and collaborate with your team members. With GitLab, you can host your Git repositories, manage code reviews, automate CI/CD pipelines, and much more. In this article, we will guide you through the process of installing and configuring GitLab on CentOS 8/7. Prerequisites Before we start with the installation, there are a few prerequisites that you need to fulfill − A CentOS 8/7 server with a minimum of 4GB of RAM and 2 CPU cores. A domain name pointing to the server's IP ...
Read MoreHow to display the first part of the file in the Linux system?
The head command in Linux is used to display the first part of a file or piped data. By default, it shows the first 10 lines of the specified file, making it useful for quickly previewing file contents without opening the entire file. Syntax The general syntax of the head command is − head [OPTION]... [FILE]... Common Options Option Description -n NUM Display the first NUM lines instead of the default 10 -c NUM Display the first NUM bytes of each file ...
Read MoreWhat is a .pid File in Linux?
On Linux, a .pid file is a process identification (PID) file that stores the process ID of a running process. The PID is a unique number assigned to each process when it starts and serves as the process identifier within the operating system. These files are typically located in /var/run or /var/run/ directories and are named after the process they represent. What is a PID File? A PID file is a simple text file containing the process ID of a running process. It gets created when the process starts and is deleted when the process terminates. System administrators, ...
Read More