Linux

Linux commands which no one will ever tell you

If you are sysAdmins, DevOps Engineer, Developer or in DevSecOps than you will deal with Linux systems in your day today working environment. Using Linux tools is the fundamental requirement in todays IT World as Linux is the spine of the majority of the servers in running applications
As internet is pilled up with various articles, most of them are for beginners and explain the use of ls , mkdir, cd and various other commands, but here we are going to tell you about 5 commands which you might not heard about before.

Following are the commands:

top: [process table]

The top command (process table) shows a real-time view of the processes running on Linux, showing kernel-managed tasks. Displays an automatically updated list of processes with CPU and critical memory usage and CPU usage metrics. This command also provides a summary of system information that shows resource usage, such as CPU and memory usage.

rsync:

Rsync (RemoteSync) is a remote and local file synchronization tool. Used to copy files and directories to the destination, similar to the cp command. However, it can also be copied to a remote location and can provide a commonly used progress bar for backups. Widely used on Linux and Unix-like systems and popular as a system scripting tool, it is included by default in most Linux distributions

Content in directory_1:

Created 50 files in incremented order and a .iso file to showcase the working of rsync command

Content in directory_2:

Rsync can also be used to copy files from one remote server to another server. You will need ssh access to the remote server in order to transfer the files

Wall: [writeall]

wall is a useful command line utility for system administrators that displays a message on the terminals of all logged-in users that are currently logged in to your system. The message can be typed on the terminal or it can be the contents of a file. wall is an abbreviation for writeall, and you can use the write command to send a message only to a specific user. This is very useful and handy for system-wide announcements.

 

lsof: [list (of) open files]


lsof is an abbreviation for “list (of) open files”, It is a powerful utility available on Linux and Unix-based systems. It get the details about different types of files opened by different running processes. These files include network sockets, directories, block files, regular files etc.
lsof can be used to find the various processes that are locking a file or a directory, the user’s process list, any process that is listening on a port and all the files that the process is locking.

Ncdu:

ncdu is a disk usage analyzer with an ncurses interface which provides a quick, convenient view for disk usage. It is designed to find space hogs on a remote server where you don’t have an entire graphical setup available You can use it to see what directories are using the most disk space quickly and easily. It is also a useful tool even on regular desktop systems. Ncdu aims to be fast, simple and easy to use, and should be able to run in any minimal POSIX-like environment with ncurses installed.

 

These are some of the less-known commands, I believe that this information was helpful to you. There whole lot of other commands which we will unfurl in upcoming blog post.
Thank you for reading my post !

Author

admin

Leave a comment

Your email address will not be published. Required fields are marked *