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
Operating System Articles
Page 46 of 171
Find all links for a specific file on Linux
In Linux, finding all links for a specific file is a common administrative task. A link in Unix/Linux systems is an association between two different files or directories. When you create a link, it creates a new name for the original file. There are two types of links: hard links (multiple names for the same inode) and symbolic links (shortcuts that point to another file path). Setup Example Let's start with a practical example. We have a file1.txt document and several symbolic links pointing to it from different locations: [tpoint@server1:~/test]$ ls -lrth total 12K -rw-r--r-- 1 tpoint ...
Read MoreHow to quickly sum all the numbers in a file on Linux?
Consider that we have a file named bar that contains different numbers inside it. The bar file looks something like this − immukul@192 linux-questions-code % cat bar 11 12 13 We need to get the sum of all the numbers present in the above file. There are several approaches and solutions that we can consider using different commands and techniques. Let's explore these possible solutions one by one. Bash Script Approach The most basic approach is to open the file and read the contents, then calculate the sum of all the numbers using a ...
Read More10 Best Rolling Release Linux Distributions
Rolling release Linux distributions are a popular choice among Linux users who want to stay up-to-date with the latest software packages and features. These distributions have a continuous release cycle, which means that updates are delivered as soon as they are available. Unlike traditional release distributions, which have a fixed release cycle, rolling release distributions provide a more flexible and dynamic user experience. In this article, we'll explore the 10 best rolling release Linux distributions available today. We'll discuss their features, advantages, disadvantages, and unique characteristics to help you choose the right distribution for your needs. What is ...
Read MoreCreate bash alias that accepts parameters
When working with Bash scripts or Unix/Linux command line tools, we often write the same command lines over and over again. Often, these command lines are long and must be repeated multiple times. For instance, when logging into a remote server daily, copying a local folder to the remote server, or searching for hidden files or directories within a directory. You can create aliases using the alias command. In this guide, I will show you how to create an alias that accepts parameters on Linux. This is useful if you want to run a single command repeatedly without having ...
Read More10 Cool Command Line Tools For Your Linux Terminal
As a Linux user, you might have heard that the command line is the true power of Linux. While graphical user interfaces can be useful, the command line offers more control and flexibility. There are many command line tools available for Linux that can make your life easier and improve your productivity. In this article, we will explore 10 cool command line tools for your Linux terminal. The Grep Command The grep command is a powerful tool for searching text files. It allows you to search for specific words or patterns in a file or multiple files. The ...
Read More10 Core Linux Interview Questions with Answers
Linux is a widely used open-source operating system that has become increasingly popular over the years. As a result, there is a high demand for Linux professionals, and many companies are looking for qualified candidates who have the right knowledge and experience. If you are looking to get into a Linux-related career, then it's important to prepare yourself for interviews with some of the most common Linux-related questions that you may face. In this article, we will discuss some of the core Linux interview questions with answers that you can use to prepare for your next interview. What is ...
Read More10 Cron Scheduling Task Examples in Linux
Linux is an operating system that is widely used in servers, supercomputers, and mobile devices. One of the powerful features of Linux is the ability to schedule tasks using a tool called Cron. Cron is a time-based job scheduler in Linux that allows users to run scripts or commands at specified intervals. In this article, we will discuss 10 practical Cron scheduling task examples in Linux. What is Cron? Cron is a time-based job scheduler in Linux that allows users to automate tasks at specified intervals. It can run scripts or commands at a specific time or a ...
Read More10 Linux Distributions and Their Targeted Users
Linux is a versatile, open-source operating system with numerous distributions (distros) designed to meet specific user needs. Each distribution offers unique features, package management systems, and target audiences. Understanding which Linux distribution aligns with your requirements helps optimize your computing experience for desktop use, development, security, or enterprise applications. Ubuntu Ubuntu is one of the most popular Linux distributions, known for its user-friendly approach and comprehensive ecosystem. Its target users include − Desktop Users − Provides an intuitive interface with regular updates, making it ideal for users transitioning from Windows or macOS. Developers − Offers extensive ...
Read MoreHow to Add Linux Host to Nagios Monitoring Server Using NRPE Plugin
Nagios is an open-source monitoring system that helps system administrators monitor the performance and availability of various network resources, including hosts, services, and network devices. NRPE (Nagios Remote Plugin Executor) is a plugin used to monitor remote hosts or devices from the Nagios server by executing monitoring plugins on the remote host and returning results to the Nagios server. This guide demonstrates how to add a Linux host to your Nagios monitoring infrastructure using the NRPE plugin for comprehensive system monitoring. Prerequisites Before beginning the setup, ensure the following requirements are met: Nagios Core installed ...
Read MoreHow to Install Enable OpenSSH on CentOS 7
If you're looking to enable OpenSSH on CentOS 7, you've come to the right place. In this article, we'll take a look at the steps you need to follow to install and enable OpenSSH on your CentOS 7 machine. We'll also explore the benefits of using OpenSSH and how to configure it securely. What is OpenSSH? OpenSSH is a secure shell protocol used to establish a secure connection between two computers over a network. It's an open-source version of the Secure Shell (SSH) protocol, which is widely used to provide secure remote access to servers and other network ...
Read More