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 Mount Remote Linux Filesystem or Directory Using SSHFS Over SSH?
Mounting a remote filesystem or directory on your Linux system can provide convenient access to files and data stored on a remote server. One popular and secure method to achieve this is by using SSHFS (SSH Filesystem). SSHFS allows you to mount a remote directory on your local machine, giving you the ability to interact with the remote files as if they were stored locally. In this tutorial, we will explore how to mount a remote Linux filesystem or directory using SSHFS over SSH. This approach ensures that the data transmission between your local machine and the remote server ...
Read MoreMethods to clean temporary files from Ubuntu
Temporary files are data created by programs for storing information while other operations are being performed. These temporary files can accumulate over time and consume valuable disk space. Ubuntu provides several built-in methods and third-party tools to clean these files and optimize system performance. Regular cleanup of temporary files is essential for maintaining system efficiency, freeing up disk space, and protecting user privacy. Ubuntu offers both command-line utilities and graphical applications to accomplish this task effectively. Methods to Clean Temporary Files Using APT Package Manager Commands The APT clean command removes downloaded package files from the ...
Read MoreHow to Name a Stash and Retrieve a Stash by Name in Git?
Git stashing is a feature that temporarily saves uncommitted changes in your working directory without creating a commit. While Git assigns auto-generated names like stash@{0} by default, you can assign custom names to make stashes more identifiable and easier to manage. What is Git Stashing? Git stashing allows you to save changes in your working directory when you need to switch branches or address urgent tasks without committing incomplete work. Instead of creating messy commits or losing progress, you can stash changes and apply them later when ready to continue. Creating a Named Stash To create ...
Read MoreInitial Server Setup and Configurations on RHEL 7
Red Hat Enterprise Linux (RHEL) 7 is a Linux-based operating system from Red Hat designed for businesses. This article provides a practical guide on performing initial server setup and configurations on RHEL 7. We will walk through essential first steps to prepare a RHEL 7 server for production use. Logging in as Root After your server boots, you will log in as the root user. The root user is the administrative user in a Linux environment with full system privileges. ssh root@your_server_ip Creating a New User After logging in as root, it's recommended ...
Read MoreShell Script to Validate the Date, Considering Leap Year Rules
In this tutorial, we will explore how to create a shell script that validates dates, taking into account the rules of leap years. We will be using the Linux operating system and the Bash shell scripting language for this purpose. Shell scripting allows us to automate tasks and perform complex operations by writing simple and efficient scripts. We will develop a shell script that prompts the user to enter a date in the format YYYY-MM-DD and then validates whether the entered date is valid or not, considering leap year rules. We will break down the problem into smaller steps ...
Read MoreSelfish Round Robin CPU Scheduling
Selfish Round Robin (SRR) is a CPU scheduling algorithm that modifies traditional round robin by introducing dynamic priority adjustments. Unlike standard round robin where all processes get equal treatment, SRR allows processes to "selfishly" increase their priority based on execution time, creating a more adaptive scheduling approach. The traditional round-robin scheduling algorithm is preemptive, giving each process a fixed time slice. After the quantum expires, the process moves to the end of the ready queue. SRR enhances this by maintaining two separate queues and allowing priority manipulation to favor longer-running processes. How Selfish Round Robin Works SRR ...
Read MoreShell Scripting – How to Send Signal to a Process?
In this tutorial, we will explore how to send signals to processes using shell scripting. Signals are software interrupts that enable communication between processes, allowing the operating system and applications to notify processes about events or request specific actions. Understanding signal handling is essential for effective process management in Unix-like systems. Signals serve various purposes including graceful process termination, handling interrupts, suspending processes, and modifying process behavior. Shell scripts can leverage these signals to control running processes programmatically, making system administration and automation more efficient. Understanding Signals and Their Usage Signals are software interrupts sent to processes ...
Read MoreHow to Name or Rename Docker Containers?
Docker container naming is a crucial aspect of container management that significantly improves workflow efficiency. When working with multiple containers, Docker's default random names like "clever_curie" or "admiring_feynman" can make identification and management challenging. By assigning meaningful names, you can easily identify, interact with, and organize your containers effectively. Naming Docker Containers Default Container Names When you create a Docker container without specifying a name, Docker assigns a random name consisting of an adjective and a famous scientist's surname. While creative, these names provide no context about the container's purpose, making management difficult in complex environments with ...
Read MoreShow System Statistics from /proc Filesystem Using procinfo
The procinfo command is a powerful Linux utility that reads system statistics from the /proc filesystem and displays them in a user-friendly format. It provides quick access to essential system metrics like CPU usage, memory consumption, and process information, making it an invaluable tool for system administrators and users monitoring system performance. The /proc filesystem is a virtual filesystem that provides real-time information about running processes and system resources. The procinfo command parses this data and presents it in an organized, readable format. Installation Install procinfo using your distribution's package manager − Ubuntu/Debian sudo ...
Read MoreInitial Server Setup with Ubuntu 20.04 18.04 and 16.04
Initial Server Setup is a critical first step after deploying a fresh Ubuntu server instance. Proper configuration ensures security, stability, and optimal performance for hosting applications or services. This guide covers essential setup procedures for Ubuntu versions 20.04, 18.04, and 16.04, including user management, security hardening, and basic service configuration. Prerequisites Before beginning the server setup process, ensure you have the following requirements − Fresh Ubuntu 20.04, 18.04, or 16.04 server instance Root access or user account with administrative privileges SSH client for remote server connection (e.g., OpenSSH, PuTTY) Server's public IP address System ...
Read More