Understanding your system's hardware and software configuration
Code Block |
---|
language | bash |
---|
theme | Midnight |
---|
title | Commands |
---|
|
uname -a # Displays kernel version and system architecture.
lscpu # Provides detailed information about the CPU.
lsblk # Lists all available block devices.
lsusb # Shows USB devices connected to the system.
uptime # Shows how long the system has been running and load averages. |
Div |
---|
|
CPU and Memory Diagnostics |
Monitoring CPU and memory usage helps in identifying performance bottlenecks.
...
Code Block |
---|
language | bash |
---|
theme | Midnight |
---|
|
mpstat
Linux 5.15.0-112-generic (testhost) 06/21/24 _x86_64_ (1 CPU)
10:37:12 CPU %usr %nice %sys %iowait %irq %soft %steal %guest %gnice %idle
10:37:12 all 1.68 0.11 1.38 0.14 0.00 0.04 1.16 0.00 0.00 95.49 |
Keeping track of disk usage and health is crucial for preventing data loss and ensuring efficient storage management.
...
Code Block |
---|
language | bash |
---|
theme | Midnight |
---|
|
iostat
Linux 5.15.0-112-generic (testhost) 06/21/24 _x86_64_ (1 CPU)
avg-cpu: %user %nice %system %iowait %steal %idle
1.68 0.11 1.41 0.14 1.16 95.50 |
Div |
---|
|
Process and Service Management |
Managing processes and services is essential for maintaining system stability.
...
Code Block |
---|
language | bash |
---|
theme | Midnight |
---|
title | Сommands |
---|
|
systemctl restart service_name # Restarts a service.
systemctl enable service_name # Enables a service to start at boot.
kill -9 process_id(PID) # Forces termination of a process.
(No output unless there is an error, the process is terminated forcefully) |
Analyzing logs and monitoring system activities can help in identifying issues and tracking system performance.
...