Category Linux

The uptime Command in Linux

Uptime

As a Linux user, or as a server administrator, you need to regularly understand how long your servers have been up and running to understand their patch levels. What that means is that if a major update was recently rolled…

Methods to Enable or Disable Root Login in Linux

Disable Root Login In Linux

The root user enjoys the privilege of being able to access just about anything in the Linux system. While disabling root login is an authentication strategy that might boost security, people still debate whether it’s truly effective or not. Don’t…

The tail command in Linux

Tail

The tail command in Linux displays the last few lines/blocks of any file, the number of lines/blocks being dependent on the options passed when using the command. Also read: The uptime Command in Linux The Linux tail command default output…

Linux ifconfig command

Ifconfig Command Linux

NOTE: Before reading this article, I would like to inform you that the ifconfig command is outdated, and is not recommended anymore. The ip command is the current replacement for the ifconfig command. Even though this program may be outdated,…

The ‘touch’ command in Linux

The touch command in Linux is used to update timestamps on files, namely, the access and modification time for any file(s). This is basically ‘touching’ the file, and hence the name of the command. This command has different options through…

Setting Hostname in Debian

There are multiple ways of setting hostname in Debian or Linux system. You can temporarily change the hostname, or permanently apply the changes to a system. Let’s go over these methods. Setting hostname temporarily Let’s start with the temporary and…

The mv Command in Linux

The mv command in Linux allows you to move a file from one location to another. Also, we don’t really have a rename command in Linux. Instead, we move files from one name to another. This is facilitated by the…