Category : "Linux Commands"

10 practical examples of Touch command on Linux

Linux Touch command The touch command can be used to modify the access/modification timestamps of files. It is more often used to actually just create an empty file quickly. This post shows some very simple and quick examples of using the touch command to modify timestamps or create files. 1. Create a blank file To simply create a blank file with touch command, use ...

15 simple TOP command examples on Linux to monitor processes

Linux TOP command One of the most basic command to monitor processes on Linux is the top command. As the name suggests, it shows the top processes based on certain criterias like cpu usage or memory usage. The processes are listed out in a list with multiple columns for details like process name, pid, user, cpu usage, memory usage. Apart from the list ...

10 quick tar command examples to create/extract archives in Linux

Tar command on Linux The tar (tape archive) command is a frequently used command on linux that allows you to store files into an archive. The commonly seen file extensions are .tar.gz and .tar.bz2 which is a tar archive further compressed using gzip or bzip algorithms respectively. In this tutorial we shall take a look at simple examples of using the tar ...

Send mail from command line with external smtp server on Linux

Send mail via SMTP servers The default mail command on the Linux terminal, uses the local smtp server (mta) on port 25 to transmit emails. However at times you need to specify an external smtp server to use for sending mails. For example you have just setup an smtp server, like Postfix or Exim, then you would want to test it out ...

9 mail/mailx command examples to send emails from command line on Linux

Send mails from command line The mail command is an essential one that should be available on any linux server so that various services and other web applications can generate and transmit emails. In a previous we saw how the mail command can be used to send emails from the command line on your linux server. In this tutorial we shall be ...

9 commands to check hard disk partitions and disk space on Linux

In this post we are taking a look at some commands that can be used to check up the partitions on your system. The commands would check what partitions there are on each disk and other details like the total size, used up space and file system etc. Commands like fdisk, sfdisk and cfdisk are general partitioning tools that can not ...

10 examples of Linux ss command to monitor network connections

ss - socket statistics In a previous tutorial we saw how to use the netstat command to get statistics on network/socket connections. However the netstat command has long been deprecated and replaced by the ss command from the iproute suite of tools. The ss command is capable of showing more information than the netstat and is faster. The netstat command reads various ...

10 basic examples of linux netstat command

Netstat Netstat is a command line utility that can be used to list out all the network (socket) connections on a system. It lists out all the tcp, udp socket connections and the unix socket connections. Apart from connected sockets it can also list listening sockets that are waiting for incoming connections. So by verifying an open port 80 you can ...

25 simple examples of Linux find command

Linux find command The Linux find command is a very useful and handy command to search for files from the command line. It can be used to find files based on various search criterias like permissions, user ownership, modification date/time, size etc. In this post we shall learn to use the find command along with various options that it supports. The ...



Connect with us