Understanding top command in Linux top Top is straight-forward to use. This simple command will bring you into the top application. When you want to exit,type the letter q to quit. There are also other key commands to make full use of it that I’ll discuss later. Top command output ha...
The top command on Linux will automatically refresh this data every three seconds by default. A good indicator to see if it is updating is to look at the system uptime shown in the top-left of the screen. Once you are done with the top command, you can quit by pressing theQkey on yo...
The ls command is good to see the file sizes. However, it won't give you the directory size which is almost always displayed as 4K. To get directory size, use the du command. 3. List hidden files Like any other file manager, the ls command won't list the hidden files (I mean the...
Before you see some practical examples of the cp command, I advise getting familiar with the concept of absolute and relative paths because you'll need to use them while copying files from one place to another. Absolute vs Relative Path in Linux: What’s the Difference? In this essential Li...
By default, the pidof command will not include any processes stuck in an uninterruptible or zombie state. However, you can find processes in this state using toolslike the top command. The utility ignores these processes because they can cause pidof to hang. ...
In this scenario, you use the lsmod command to view the available modules on your Linux system. If a module is loaded, you can further troubleshoot by listing out the details of the module. This is achieved using the modinfo command. This tutorial shows you how to use the lsmod and ...
I find that having the log of each command run bysudoto be helpful in training. I can see who did what and whether they actually entered the command correctly. I have done this to delegate authority to run a single program to myself and one other user. However,sudocan be used to do...
Top 20 command netstat for network management Listing all the LISTENING Ports of TCP and UDP connections Listing all ports (both TCP and UDP) using netstat -a option. # netstat -a | more Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address ...
Running any LVM command, the command will hang on connect() syscall. Environment Red Hat Enterprise Linux 4 Red Hat Cluster Suite (RHCS) 4 lvm2-clusterprior to release2.02.74-3.el5 Red Hat Enterprise Linux 5 with the Resilient Storage Add On ...
is a versatile file-copying command in Linux and macOS. It's perfect for the power-user looking for efficiency. Read this article to discover how to work smarter---not harder. Wait---It's Not For Installing Software? Theinstallcommand might have the most misleading name of any of the Li...