In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article is to share with you about the tools commonly used in Linux. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
1.w
Yes, you read it right. It's the w order. Using this command, we can see who is currently logged in to the system and which commands have been executed.
2.nmon
Nmon is a gadget that can monitor the performance of the current system. Before using it, you need to install it with the following command:
Sudo apt-getinstall nmon
After installation, execute the nmon command to open:
Nmon
Nmon can view network, CPU, memory, and disk usage.
Press c to view CPU information after opening it
Press n to view the network information after opening it:
Disk space monitoring (disk utilization) is one of the most important monitoring items in IT operation and maintenance management. it mainly monitors the logical disk space utilization of computers, and it is very important to monitor disk space in some systems with large growth rate (such as partition of Oracle table space, access log partition, etc.).
Zhitao SUM server monitoring software can monitor the disk space of Windows, Linux, AIX, Solaris, HP-UNIX, FreeBSD and any GNU Linux version. Disk space monitoring in SUM server monitoring software mainly includes disk space utilization index, disk used space, disk remaining space and total disk space monitoring items.
Disk space utilization monitoring-SUM server monitoring software
3.ncdu
The ncdu command can be used to view and analyze the disk space consumption of various directories in Linux. Use the following command to install:
Apt-getinstall ncdu
After installation, execute the following command to start the analysis from the root directory:
Ncdu/
Note: executing the above command will take up a large amount of disk Izuro.
After the analysis is completed, output similar to the following screenshot will be generated:
Cf0f015e00e1c82b3ecf3d5cb43ad326.png
We can sort by name by n or by size by s in the results interface.
The monitoring of Linux by SUM server monitoring software is one of the most basic functions of SUM.
As a centralized monitoring platform software, Zhe Tao SUM server monitoring software can centrally and uniformly monitor all kinds of Linux operating systems. It mainly monitors the CPU utilization, memory utilization, disk space usage and process of Linux. In the SUM server monitoring software, we can not only monitor the basic performance of the Linux system, but also centrally manage the Linux, such as executing Linux commands, restarting the Linux server, restarting some processes and so on.
Linux monitoring, Linux server monitoring, Linux CPU monitoring, Linux memory monitoring, Linux disk monitoring
4.slurm
Slurm is a network card bandwidth monitoring command line utility, it will automatically generate ASCII graphics output. Install with the following command before using:
Apt-getinstall slurm
Use the following command to output:
Slurm-i
The following options can be performed in the slurm interface:
◆ I: displaying lx/tx statu
◆ c: switch to the classic interface
◆ r: refresh the interface manually
◆ Q: exit tool
5.findmnt
Findmnt is a command-line tool built into Linux, which is mainly used to find the mounted file system status. Findmnt can view the mounted devices in the current system and perform mount or unmount operations if necessary.
After executing the findmnt command, you will see the following input:
Of course, the following parameters are also available:
◆ findmnt-l: output as a list
◆ findmnt-s: outputs the devices mounted in the fstab
◆ findmnt-t ext4: output by file system type
6.dstat
Dstat is a very flexible and combined tool that can be used to monitor memory, progress, network and disk performance, and can be used to replace tools such as ifstat, iostat, dmstat, and so on. Before using it, you need to execute the following command to install:
Apt-getinstall dstat
Execute the following command to see all monitoring data:
Dstat
There are many optional parameters, the commonly used ones are:
◆ dstat-c: monitoring CPU
◆ dstat-cdl-D sda1: monitoring CPU details
◆ dstat-d: monitoring disk
7.saidar
Saidar is another CLI system data monitoring and statistics tool that provides monitoring information about disk, network, storage, and SWAP. Install it with the following command before using it:
Sudo apt-getinstall saidar
After installation, you can directly execute saidar for output, but we usually use commands with parameters to generate colored output:
Saidar-c
8.ss
Ss, whose full name is socket statistics, is a network connection viewing tool that can replace netstat.
You can view it by executing ss directly:
The common parameters are:
Ss-A tcp: specifies the viewing protocol
Ss-ltp: displays the process name and PID
9.ccze
Ccze is very useful for highlighting logs in different colors to assist administrators in distinguishing and viewing analysis. Install it with the following command before using it:
Apt-getinstall ccze
We can use it in ways similar to the following:
Tailf/var/log/syslog | ccze
Use the ccze-l parameter to see which log types are supported.
10.ranwhen.py
The ranwhen.py we finally introduced is a python tool that graphically displays system activity.
To use this tool, you need to install python language support:
Sudo apt-add-repository ppa:fkrull/deadsnakes
Sudo apt-getupdate
Sudo apt-getinstall python3.2
Then download ranwhen.py
Wget https://github.com/p-e-w/ranwhen/archive/master.zip
Unzip master.zip&&cd ranwhen-master
Ranwhen.py can be executed using the following command
Python3.2ranwhen.py
Thank you for reading! This is the end of this article on "what are the commonly used tools under Linux". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.