Linux Commands

How to List Mounted Drives on Linux

In this article, I will show you the different ways to list mounted drives on Linux. We can use mount, cat, findmnt and df commands to list mounted device any Linux distribution like Ubuntu or Centos. In Linux, mount command [...]

Bobbin Zachariah 1:33 pm

Echo Command in Linux with Examples

Echo is a Unix/Linux command tool used for displaying lines of text or string which are passed as arguments on the command line. This is one of the basic command in linux and most commonly used in shell scripts. In [...]

Jamie Arthur 1:54 am

How to Append to End of a File in Linux

In this tutorial, we learn different ways to append text to the end of a file in Linux. You can achieve this using several methods in Linux, but the simplest one is to redirect the command output to the desired [...]

Slavisa Milojkovic 8:50 am

How to List Cron Jobs in Linux

List cron jobs linux

For linux to automatically perform tasks that you would otherwise have to perform yourself, such as running scripts and executing specific commands, we use a tool called cron. On Linux systems, the cron utility is the preferred way to automate [...]

Slavisa Milojkovic 6:00 am

How to Get Size of Directory in Linux

how to find disk usage of directories in linux

In this article, we focus on how you can check the size of Directory on Linux Systems. This we are going to achieve using the command line interface. The command used to retrieve the file sizes is the du command, [...]

Winnie Ondara 2:50 pm

How to Rename Files in Linux

Methods to rename a file in linux

Renaming files in Linux is one of the easiest tasks that you can accomplish straight from the command line. There are quite a few ways you can achieve this and in this guide, I will take you through how you [...]

Winnie Ondara 10:09 am

How to Delete Files and Directories in Linux

How to delete files in Linux

You may, in some cases, need to delete directories and files that you do not need to free up space on your hard drive. In this brief tutorial, you will learn how to delete files and directories in Linux. To [...]

Jamie Arthur 7:32 pm

How to List Services in Linux

How to list all running services in linux

In this article, I will show you how to list all running services on Linux. We will also check how to check the status of a service on a systemd system. Let's learn different commands used to list services on Centos/RHEL 7.x. [...]

Winnie Ondara 12:19 pm

Set Time/Date/Timezone in Ubuntu Linux

How to set time and time zone in ubuntu linux

Time is an important aspect in Linux systems especially in critical services such as cron jobs. Having the correct time on the server ensures that the server operates in a healthy environment that consists of distributed systems and maintains accuracy [...]

Pungki Arianto 8:15 am

How to Count Number of Files within a Directory in Linux

count number files directory linux

Have you ever racked your brain for a way that you can count the number of files within a directory and sub directories in Linux? In this brief article, we'll look at how you can do that in a simple [...]

Jamie Arthur 12:05 am

How to Use Linux gunzip Command with Examples

gunzip command

Have you come across files bearing a  .gz extension? These are files which have been compressed using the gzip command. Gunzip is a Linux command that is used to decompress such files earing the .gz extension and in this tutorial, we will [...]

Winnie Ondara 8:25 am

Methods to Use Uniq Command in Linux with Examples

uniq command linux

If you are a Linux user and your work involves with working with and manipulating text files and strings, then you should be already familiar with the uniq command, as it is most commonly used in that area. For those [...]

Nishali Wijesinghe 7:01 am

How to Sort Files by Date Using LS command in Linux

ls command sort by date

The ls command is used to list directory contents and the results can be sorted upon several criteria such as by date, alphabetical order of filenames, modification time, access time, version and file size. In this article, I will show [...]

Ahmed Abdalhamid 7:09 am

Learn How to Get Linux IP Address in Different Ways

Get IP Address Linux Systems

How many commands you know to get IP address on your Linux systems? In this article, we'll discuss a few ways to get IP address as well as public IP on Linux. ifconfig command ip addr Hostname -I command nmcli command ip [...]

Winnie Ondara 3:43 pm