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
Different types of system calls
The interface between a process and an operating system is provided by system calls. In general, system calls are available as assembly language instructions. They are also included in the manuals used by the assembly level programmers. System calls are usually made when a process in user mode requires access to a resource. Then it requests the kernel to provide the resource via a system call. Types of System Calls There are mainly five types of system calls. These are explained in detail as follows − Types of System Calls ...
Read MoreUsing .Dockerignore file
We know that we can run our docker images on cloud services which provide high computations at low cost. However, one might wonder why we need to optimize a docker image. Think of a situation where you have copied a large file in your docker container that you actually don't need. It will obviously increase the size of the docker image, increase the overall build time, and cause caching issues. So, why not use a simple technique to avoid all these issues and improve the overall performance of the docker build process. What is a .dockerignore file? Similar ...
Read MoreDifferentiate between block-oriented and character-oriented devices in UNIX
In UNIX systems, devices are categorized into two main types based on how they handle data transfer: block-oriented devices and character-oriented devices. Understanding the differences between these device types is crucial for system administration and I/O management. Block-Oriented Devices Block devices are storage devices that transfer data in fixed-size chunks called blocks. These devices can provide random access to data and support both reading and writing operations on entire blocks at once. Common examples include hard drives, floppy disks, optical drives (CD-ROMs, DVD-ROMs), and solid-state drives (SSDs). Most file systems are designed around block devices because they ...
Read MorePeer to Peer Computing
Peer-to-Peer (P2P) Computing is a distributed network architecture where nodes (computers) act as equal participants, serving both as clients and servers. Unlike traditional client-server models, each node can request services and provide resources simultaneously, creating a decentralized system where all participants share the workload equally. Peer-to-Peer Network Architecture ...
Read MoreRunning GUI applications on docker in linux
Running GUI applications inside Docker containers requires connecting the container's display output to the host system's display server. By default, Docker containers cannot access the host's display, making it impossible to run graphical applications. This article demonstrates how to configure Docker containers to run GUI applications like Firefox by forwarding X11 sockets and managing display permissions. X11 Display Forwarding The X11 display server handles graphical output on Linux systems. To run GUI applications in Docker, we need to: Forward the X11 socket to the container Set the DISPLAY environment variable Configure X server authentication permissions ...
Read MoreAssembling Partitions as RAID Devices
RAID (Redundant Array of Independent Disks) is a technology that helps in storing and protecting data across multiple hard drives. It is a powerful tool for ensuring data availability and system reliability, and is commonly used in enterprise-level applications. RAID technology offers different levels, each with its own pros and cons, and these levels are implemented by assembling partitions as RAID devices. RAID Levels There are several RAID levels, each with its own advantages and disadvantages. The most common RAID levels are: RAID Levels Overview ...
Read MoreWhat is the user interface and operating system interface?
The user interface (UI) serves as a bridge between users and the operating system, enabling communication and interaction. An interface allows users to input commands, receive feedback, and control system operations through various interaction methods. Operating systems provide different types of interfaces to accommodate various user needs and system requirements. Each interface type offers unique advantages and is suitable for specific tasks and user expertise levels. Types of Operating System Interfaces Operating System Interfaces OS Interfaces Command ...
Read MoreFind and Convert Files Ending With CRLF on Linux
You can use the find command in Linux to search for files ending with CRLF, and the dos2unix command to convert those files to use LF line endings. CRLF (Carriage Return + Line Feed) line endings are commonly used in Windows systems, while LF (Line Feed) endings are standard on Linux systems. Searching for Files With CRLF Endings The most efficient way to find files with CRLF line endings is using grep with the -r (recursive) and -l (list filenames only) options − grep -rl $'\r' /path/to/search This command searches recursively through the specified ...
Read MoreRUN vs CMD vs Entrypoint in Docker
The commands RUN, CMD, and ENTRYPOINT usually cause a lot of confusion among Docker developers. Understanding all three commands conceptually will help to have a clearer understanding of Docker image building and container execution. When we try to build an image using a Dockerfile, the instructions are executed step by step. The first instruction is usually pulling a base image such as an OS distribution like Ubuntu or CentOS. After that, we modify the base image either by including more images using FROM and AS commands or by modifying the images. Every such instruction creates a new intermediate image ...
Read MoreAtom – A Hackable Text and Source Code Editor for Linux
Atom is an open-source text and source code editor that was first released in 2014. It is created by GitHub and built on the Electron framework, which makes it easily extensible and customizable. Atom is designed to be a hackable editor, which means that it can be modified and configured to suit individual needs. In this article, we will explore Atom's features and capabilities, as well as how to use it for text and source code editing on Linux systems. What is Atom? Atom is a text and source code editor that was developed by GitHub, the ...
Read More