If you are a Linux or Unix user, then you might be familiar with Bash shell. Bash is a popular command-line interpreter that is widely used in Linux, macOS, and other Unix-like operating systems. It is a powerful tool for running scripts, automating tasks, and working with command line. One of the most common use cases for Bash is working with loops, which allow you to repeat a set of instructions multiple times. However, sometimes you might need to break out of a loop before it has finished executing. In this article, we will explore how to exit from a ... Read More
The default editor for crontab on Linux is the vi editor. However, this can be changed by setting the VISUAL or EDITOR environment variable to the desired editor before running the crontab command. For example, to use nano as the editor for crontab, the command would be − export VISUAL=nano; crontab -e or export EDITOR=nano; crontab -e This will open the crontab file in nano for editing. Methods to Change Crontab Editor Temporary Change To temporarily change the editor for a single crontab session, set the environment variable inline ... Read More
A software is a set of rules or instructions that are given to a computer to perform some function. Basically, software is classified into two types − Application software and System software. System software is the main software of a computer that has direct access to the system's hardware. It takes care and monitors all the other functions of a computer. Application software is additional software in a computer which is used to perform a specific function. Users have direct access to this application software and this software is not mandatory in a system. We can use the system ... Read More
The Kernel I/O Subsystem is a fundamental component of modern operating systems that manages all input/output (I/O) operations on a computer. It provides various services that enable efficient and secure management of I/O operations between applications, the kernel, and hardware devices. Kernel I/O Subsystem Architecture User Applications Kernel I/O Subsystem Scheduling Buffering Caching ... Read More
Wine is a compatibility layer that allows you to run Microsoft Windows applications on Linux and other UNIX-based operating systems (macOS, FreeBSD, Solaris). PlayOnLinux is a graphical frontend for Wine that simplifies the installation and configuration of popular Windows applications and games by automatically setting up Wine environments with the correct settings and dependencies. What is PlayOnLinux PlayOnLinux provides an intuitive interface that eliminates much of the complexity involved in configuring Wine manually. It includes: Automated Scripts − Pre-configured installation scripts for hundreds of Windows applications Multiple Wine Versions − Ability to use different Wine versions ... Read More
Symbolic links (symlinks) are shortcuts in Linux that point to files or directories, allowing users to access them without specifying full paths. However, when the target file or directory is deleted or moved, the symlink becomes broken. This article explains how to identify and fix broken symlinks in Linux systems. What is a Broken Symlink? A broken symlink is a symbolic link that points to a non-existent file or directory. When you try to access it, the system returns a "file not found" error. Broken symlinks occur when: The target file or directory is deleted The ... Read More
Bash is a popular command-line interface shell used extensively in Linux and Unix operating systems. One of its most useful features is the ability to execute loops, which automate repetitive tasks. Sometimes you may need to skip certain iterations within a loop or control its flow. This is where the Bash continue statement becomes essential. What is a Bash Loop? A loop is a programming construct that executes a block of code repeatedly. Bash supports several types of loops including for loops (which iterate over a set of values) and while loops (which execute as long as a ... Read More
Git is a popular open-source version control system that tracks changes in files and coordinates work among multiple developers. Unlike traditional version control systems like CVS or SVN, Git uses a distributed model where each developer has a complete copy of the project history. This article covers the basic steps for installing Git on Linux systems, configuring it, and creating your first repository. Git vs Traditional Version Control Systems Traditional version control systems store data as a list of files with changes made to each file over time. Git takes a different approach by thinking of data as ... Read More
In shell scripting, you can store a command in a variable to improve code organization and reusability. This technique allows you to define commands once and execute them multiple times throughout your script. Basic Command Storage The basic syntax for storing a command in a variable is − variable_name="command" For example − current_date="date" list_files="ls -la" To execute the stored command, you need to use command substitution or eval − # Using eval (less secure) eval $current_date # Using command substitution (preferred) $($current_date) Storing Commands in ... Read More
The operating system can be viewed from two distinct perspectives − the user view and the system view. These viewpoints provide different insights into how an operating system functions and serves its purpose. The user view focuses on the interface and experience provided to users, while the system view examines the internal resource management and hardware interaction aspects. Views of the Operating System Operating System Views User View System View Interface & ... Read More
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Economics & Finance