Whenever you log in to your remote server running on Ubuntu via SSH, you encounter the following SSH welcome screen: This screen is usually shown to users when they connect to a server running on Ubuntu or any other Debian-based distribution. It’s acceptable to have it for a while, but eventually, dealing with a large chunk of SSH welcome text every time you connect to your server becomes annoying. So, in this guide, you will…
There are multiple ways to read the content of a file in Linux. It includes GUI and CLI, and one of the most frequently used is the cat command. What is Cat Command? Cat stands for concatenating, which helps us read single or multiple file content. We can also create a new file by adding some fresh new content using the cat command. The general syntax of Cat Command looks like the one below. Today,…
Linux administrators have to be aware of existing users in the Linux system for different reasons, like finding out their roles or privileges. This all requires knowledge of the commands, which help us list all the current users on the Linux system. Today, we will learn different ways to list users in Linux, with or without a home directory. Method 1: Reading the Passwd File The generic way to list users is by reading the…
Regular users are restricted from many activities to prevent accidental events or unauthorized access to system files. In Linux, the only root user has permission to execute system-level commands. A standard user created using the adduser or useradd command is not granted those root-level privileges. There is an indirect way to grant these privileges to the regular user by adding them to the sudo group. After that, we can attach the sudo keyword at the…
Have you ever gotten annoyed when executing a specific command that requires sudo to ask for a password? If you are a root user, you don’t have to type the password while executing any system-level command. However, regular users with sudo privileges must repeatedly type the same password while running the sudo command per session. Let’s take an apt command that requires sudo privileges and asks for the password. This can all be avoided using…
You might be paying less attention or ignoring it for the sake of the effort. In Linux, whenever you open the terminal or file manager, they pop up in the top left corner. Those who prefer to use the small terminal get annoyed by dragging the window to the center. If you have the same experience as mine, then it’s time to resolve it using any of the below-mentioned methods. Method 1: Using Gnome-Tweak to…
If you are a system administrator maintaining a system with many users or a person holding a lot of accounts in your system, then you need to understand the importance of password change. Phishing or malware attacks often leak the user password, which primarily consists of a simple name or birthday. It is recommended to update your password at a specific interval of time to prevent unauthorized access to your account. When adding a new…
Adding multiple users with access control is one of the main advantages of using Linux. Whenever creating new users in Linux, we need to take care of what type of permission or authorization is being provided to that user. In Linux, you can easily create a new user using the useradd or adduser command. Further, you can assign a group to that user (ex: sudo) or set an expiry date on that account, which we…
The terminal is the star of the Linux system, and every Linux debate includes this term in their conversation. Linux terminals can perform all tasks required by the network or DevOps engineer. In general, a terminal is an interface to communicate with a Linux shell. For the Linux operating system, a “shell” is a program that intercepts the commands you enter in your terminal windows so that the operating system understands what you want to…
Keyboard shortcuts are one of the essential things in computing to improve productivity and workflow by performing tasks related to an opening terminal, file explorer, lock screen, etc., by pressing a specific key combination. Ubuntu and other Linux distributions come with a range of built-in keyboard shortcuts. Different Linux distributions may or may not have identical keyboard shortcuts, but you can remove or reconfigure them manually according to your needs. Navigate to Keyboard Shortcuts Setting…
If a process becomes unresponsive and consumes too many system resources, then it’s time to kill it. In Windows, every process can be shut down easily using a task manager. On Linux, most processes have their own way to shutdown. Few can quit using the q keyboard key, and some use the exit word. Unfortunately, some processes become too obstinate to shut down using any recommended method and do not allow themselves to be shut…
When working on Linux, you fire up one command after another. For example, you edit a configuration file using the nano or vim editors or download files using the wget command and suddenly want to take a look at some other files or need to execute another command. In this scenario, you have two options. First, close the configuration file or cancel copying files, but it can cost you time and effort if you are…