Linux System Monitoring basic commands
-
Upload
mohammad-rafiee -
Category
Technology
-
view
4.032 -
download
2
description
Transcript of Linux System Monitoring basic commands
![Page 1: Linux System Monitoring basic commands](https://reader031.fdocuments.in/reader031/viewer/2022012400/547b0c8fb37959a22b8b4c27/html5/thumbnails/1.jpg)
GNU/Linux Monitoring Tools
![Page 2: Linux System Monitoring basic commands](https://reader031.fdocuments.in/reader031/viewer/2022012400/547b0c8fb37959a22b8b4c27/html5/thumbnails/2.jpg)
2
Operating systems control our hardware and run our applications on
them, how can we monitor linux operating system?
![Page 3: Linux System Monitoring basic commands](https://reader031.fdocuments.in/reader031/viewer/2022012400/547b0c8fb37959a22b8b4c27/html5/thumbnails/3.jpg)
3
When we speak about monitoring it's the matter of all hardwares and users.
users
CPU
MemoryStorage
Ethernet
![Page 4: Linux System Monitoring basic commands](https://reader031.fdocuments.in/reader031/viewer/2022012400/547b0c8fb37959a22b8b4c27/html5/thumbnails/4.jpg)
4
The slides below will describe the very common command line basic
tools for monitoring.
![Page 5: Linux System Monitoring basic commands](https://reader031.fdocuments.in/reader031/viewer/2022012400/547b0c8fb37959a22b8b4c27/html5/thumbnails/5.jpg)
5
ps Command
The ps will provide you a list of processes
currently running. There is a wide variety of
options that thiscommand gives you.
![Page 6: Linux System Monitoring basic commands](https://reader031.fdocuments.in/reader031/viewer/2022012400/547b0c8fb37959a22b8b4c27/html5/thumbnails/6.jpg)
6
pstree Command
This command will give you a hierarchy of
current processes of the CPU regarding to their
parent process.
![Page 7: Linux System Monitoring basic commands](https://reader031.fdocuments.in/reader031/viewer/2022012400/547b0c8fb37959a22b8b4c27/html5/thumbnails/7.jpg)
7
top Command
The most common of Monitoring commands is top. The top will display a continually updating
report of systemresource usage.
![Page 8: Linux System Monitoring basic commands](https://reader031.fdocuments.in/reader031/viewer/2022012400/547b0c8fb37959a22b8b4c27/html5/thumbnails/8.jpg)
8
tcpdump Command
Tcpdump one of the most widely used command-line network packet analyzer or packets sniffer program that is used capture or filter TCP/IP packets that
received or transferred on a specific interface over a network.
![Page 9: Linux System Monitoring basic commands](https://reader031.fdocuments.in/reader031/viewer/2022012400/547b0c8fb37959a22b8b4c27/html5/thumbnails/9.jpg)
9
vmstat Command
The vmstat command will provide a report showing statistics for system processes, memory, swap, I/O, andthe CPU. These statistics are generated using data from
the last time the command was run to the present.
![Page 10: Linux System Monitoring basic commands](https://reader031.fdocuments.in/reader031/viewer/2022012400/547b0c8fb37959a22b8b4c27/html5/thumbnails/10.jpg)
10
iftop Command
iftop listens to network traffic on a named interface, or on the first interface it can find which looks like an external
interface if none is specified, and displays a table of current bandwidth usage by pairs of hosts.
![Page 11: Linux System Monitoring basic commands](https://reader031.fdocuments.in/reader031/viewer/2022012400/547b0c8fb37959a22b8b4c27/html5/thumbnails/11.jpg)
11
iostat Command
The iostat will display the current CPU load average and disk I/O information. This is a great command to monitor your disk I/O
usage.
![Page 12: Linux System Monitoring basic commands](https://reader031.fdocuments.in/reader031/viewer/2022012400/547b0c8fb37959a22b8b4c27/html5/thumbnails/12.jpg)
12
lsof Command
The lsof command will print out a list of every file that is in
use.
![Page 13: Linux System Monitoring basic commands](https://reader031.fdocuments.in/reader031/viewer/2022012400/547b0c8fb37959a22b8b4c27/html5/thumbnails/13.jpg)
13
du Command
To view usage by a directory or file you can
use du. Unless you specify a filename du
will act recursively.
![Page 14: Linux System Monitoring basic commands](https://reader031.fdocuments.in/reader031/viewer/2022012400/547b0c8fb37959a22b8b4c27/html5/thumbnails/14.jpg)
14
netstat Command
Netstat is a command line tool for monitoring incoming
and outgoing network packets statistics as well as interface statistics. It is very useful tool for every system
administrator to monitor network performance and
troubleshoot network related problems.
![Page 15: Linux System Monitoring basic commands](https://reader031.fdocuments.in/reader031/viewer/2022012400/547b0c8fb37959a22b8b4c27/html5/thumbnails/15.jpg)
15
df Command
The df is the simplest tool available to view disk usage. Simply type in df and you'll be shown disk usage for all
your mounted filesystems in 1K blocks
![Page 16: Linux System Monitoring basic commands](https://reader031.fdocuments.in/reader031/viewer/2022012400/547b0c8fb37959a22b8b4c27/html5/thumbnails/16.jpg)
16
iotop Command
iotop is also much similar to top command and Htop
program, but it has accounting function to
monitor and display real time Disk I/O and processes. This
tool is much useful for finding the exact process
and high used disk read/writes of the processes.
![Page 17: Linux System Monitoring basic commands](https://reader031.fdocuments.in/reader031/viewer/2022012400/547b0c8fb37959a22b8b4c27/html5/thumbnails/17.jpg)
17
who Command
The easiest way to see who is on the system is to
do a who or w.
![Page 18: Linux System Monitoring basic commands](https://reader031.fdocuments.in/reader031/viewer/2022012400/547b0c8fb37959a22b8b4c27/html5/thumbnails/18.jpg)
18
It is important that what is going on around us.
Finish
http://linux.org
http://gnu.org
http://xamin.ir
![Page 19: Linux System Monitoring basic commands](https://reader031.fdocuments.in/reader031/viewer/2022012400/547b0c8fb37959a22b8b4c27/html5/thumbnails/19.jpg)
19
● [1] http://tldp.org - The Linux System Administrator's Guide
● [2] http://www.tecmint.com/command-line-tools-to-monitor-linux-performance/
● [3] http://www.cyberciti.biz/tips/top-linux-monitoring-tools.html/top-output
References