Beginners Guide for Logname Command on Linux

The logname command gives you the username of the currently logged-in user by reading the “/var/run/utmp” file, which is identical to the whoami command with one difference. Stick with this article to learn the difference between the logname and whoami commands, the usage of the

Beginners Guide for Whoami Command on Linux

The whoami (concatenated of the strings “who,” “am,”, “i” as whoami) is a Linux command line utility that prints the username associated with the current effective user ID. It comes in handy, especially while writing the shell script, like fetching the username within the script

Beginners Guide for Time Command in Linux

The time command is used to determine the amount of time taken by the referenced command or shell script to execute in your system, from start to finish. It returns the result in three categories: real time, user time, and system time (we will discuss

Beginners Guide for Sleep Command in Linux

As its name suggests, the sleep command is commonly used by shell script writers to delay the execution of individual or portions of commands specified after this command in script. Using this command, you can delay the next command’s execution for the specified number of

List of Special Parameters in Bash with Examples

In this article, you will learn what the difference is between variables and parameters, what special parameters are, and a list of predefined special parameters in Bash. What are “Special Parameters” in Bash? Before you can understand what special parameters are, you must first understand

What is Subshell in Linux?

When you interactively login to your system, you usually interact with your main shell from the terminal to execute commands; however, from your main shell (or parent shell), you can spawn a subshell (or child shell). Confused? I knew this would be more difficult, especially

What Are the Different Types of Linux Shells?

The UNIX/Linux shell is a command-line program that creates a bridge between the terminal emulator and kernel to allow users to enter commands, execute programs, and perform various other tasks by typing commands at the command prompt. Once the shell has finished executing the user

How to Rename Files and Directories on Linux

Renaming files and directories is one of the most basic tasks that every Linux user performs regularly using the GUI or command line tools. In both of these tools, renaming a single file is pretty easy, but renaming multiple files can be trickier, especially for

Beginners Guide for Rename Command in Linux

In Linux, the rename command is an amazing utility that allows you to rename single or multiple files at once, based on a set of rules or regular expressions you specify. Most of the time, the mv command is used to rename files or folders.

How to Find the Most Used Commands in Your Linux System

As a Linux administrator or a normal user, you often have to execute multiple commands in your terminal emulator like Gnome Terminal or Konsole for different purposes. But have you ever wondered which command you are executing repeatedly without being aware of it? So, don’t

Beginners Guide for Watch Command in Linux

In UNIX/Linux, “watch” is a resourceful utility for monitoring updates in the specified command output (including errors) by refreshing the results every 2 seconds until it is interrupted using the “Ctrl+c” shortcut key. It makes it easier for you to monitor the updates in background