Day: August 18, 2022

How to Change Sudo Password Timeout in Linux

Some Linux commands require administrative privileges for execution. Users without administrative rights can add sudo keyword at the beginning of their command, to temporarily obtain permissions required to execute the command. You can also run sudo command on its own for the same purpose. In both cases, you will be asked for your Linux password …

How to Change Sudo Password Timeout in Linux Read More »

How to Store File Content in Shell Variable

Typically, Linux administrators and developers use shell variables to store strings and numbers. But sometimes you may need to store file content in shell variable. In this article, we will learn how to do this. How to Store File Content in Shell Variable Let us say you have the following text file data.txt. text1 text2 …

How to Store File Content in Shell Variable Read More »

How to Set Vim Default Editor for Git

Git is a popular, free, distributed version control software that is used by millions of developers and organizations. It offers a graphical interface as well as a command line interface. People mostly use its command line interface and enter commands as per their requirements in it. Every time you enter git commands it will open …

How to Set Vim Default Editor for Git Read More »

How to Mount Remote Filesystem or Directory in Linux

Typically, we mount local filesystem or directory in our Linux system. But sometimes you may need to mount remote filesystem or directory in Linux. In this article, we will learn how to mount remote filesystem or directory in Linux. This is useful for system administrators who need to work with remote systems. We will be …

How to Mount Remote Filesystem or Directory in Linux Read More »

How to Set Process Priority in Linux

Every Linux system has multiple processes running at the same time. They are scheduled for execution by kernel scheduler that determines the next process to be executed depending on multiple factors. It uses a priority-based scheduling algorithm to rank and run processes. Processes with higher priority are executed before those with lower priority. In most …

How to Set Process Priority in Linux Read More »

How to Fix “firewall-cmd: command not found” error in Linux

firewall-cmd is a command line interface for firewalld, a popular firewall software for Linux systems. Firewalld offers many useful features and is often employed by many Linux system administrators to manage their networks & systems. While using firewall-cmd you may get an error ‘firewall-cmd command not found’. In this article, we will learn how to …

How to Fix “firewall-cmd: command not found” error in Linux Read More »

How to Protect Hard and Symbolic Links in CentOS

Every Linux system allows you to create hard and symbolic (soft) links to files, applications and directories. Hard links are actual copies of the file or directory whereas symbolic links are simply pointers to the original file or directory. It is important to prevent these links from being deleted otherwise important files & directories on …

How to Protect Hard and Symbolic Links in CentOS Read More »

How to Run Shell Script on Another Server

Shell scripts provide a great way to automate commands, processes and tasks in Linux. Often shell scripts are run on local systems. But sometimes we may need to run a shell script on another server. This is often a requirement for many system administrators that need to do data backups and system maintenance on other …

How to Run Shell Script on Another Server Read More »

How to Manage Systemd Services on Remote Linux Systems

Often system administrators need to manage systemd services and processes on their local as well as remote systems on their network. They use systemctl utility for this purposes. It allows you to manage system not only on local systems but also remote systems. But while using systemctl they need to manage systemd services over SSH. …

How to Manage Systemd Services on Remote Linux Systems Read More »