Update docs/tech_docs/Linux-commands.md

This commit is contained in:
2024-01-05 15:29:03 +00:00
parent 531328fc53
commit b26a386f6f

View File

@@ -246,4 +246,86 @@ Each command can be explored further with its man page, for example, `man top`.
> Note: This guide provides a basic overview of essential Linux packages for system administration on RHEL and Debian-based systems. Each package's specific functionality can be explored further in its documentation or man page.
---
# Enhanced Linux Troubleshooting Tools Guide
This guide offers a comprehensive overview of essential tools and packages for troubleshooting in Linux environments, with specific emphasis on tools useful in both RHEL and Debian-based distributions.
## General Troubleshooting Tools Common Across Distributions
### GNU Coreutils
Fundamental utilities for file, shell, and text manipulation.
- **Key Tools**: `ls`, `cp`, `mv`, `rm`, `df`, `du`, `cat`, `chmod`, `chown`, `ln`, `mkdir`, `rmdir`, `touch`
### Util-linux
Core set of utilities for system administration.
- **Key Tools**: `dmesg`, `mount`, `umount`, `fdisk`, `blkid`, `lsblk`, `uuidgen`, `losetup`
### IPUtils
Essential for network diagnostics.
- **Key Tools**: `ping`, `traceroute`, `arp`, `clockdiff`
### Procps
Utilities for monitoring running processes.
- **Key Tools**: `ps`, `top`, `vmstat`, `w`, `kill`, `pkill`, `pgrep`, `watch`
## RHEL-Specific Tools and Packages
### Procps-ng
Enhanced version of procps for process monitoring.
- **Additional Tools**: `free`, `pmap`
### IPRoute
Advanced tool for network configuration and troubleshooting.
- **Key Utility**: `ip`, `ss`
### Sysstat
Performance monitoring tools suite.
- **Key Tools**: `iostat`, `mpstat`, `pidstat`, `sar`, `sadf`
### EPEL Repository
Extra Packages for Enterprise Linux; additional tools not in default repo.
- **Notable Tool**: `htop`, `nmon`
## Debian-Specific Tools and Packages
### IPRoute2
Suite of utilities for network traffic control.
- **Key Tools**: `ip`, `ss`, `tc`
### Sysstat
Similar usage as in RHEL for system performance monitoring.
- **Key Tools**: `iostat`, `sar`
## Additional Essential Tools
### Networking Tools
- **Net-tools**: Traditional tools for network administration (`ifconfig`, `netstat`, `route`).
- **OpenSSH**: Tools for secure network communication (`ssh`, `scp`).
### Disk Management and File Systems
- **e2fsprogs**: Utilities for ext2/ext3/ext4 file systems.
- **xfsprogs**: Utilities for managing XFS file systems.
- **ntfs-3g**: Read-write NTFS driver.
### Security and Inspection
- **lsof**: Lists open files and the corresponding processes.
- **strace**: Traces system calls and signals.
### Log Management and Analysis
- **rsyslog** (RHEL) / **syslog-ng** (Debian): Advanced system logging daemons.
- **logwatch**: Simplifies log analysis and reporting.
### Hardware Monitoring and Diagnosis
- **lm_sensors**: Monitors temperature, voltage, and fan speeds.
- **smartmontools**: Controls and monitors storage systems using SMART.
## Conclusion
This guide provides an extensive overview of the tools available in standard Linux distributions for system monitoring and troubleshooting. Mastery of these tools is crucial for effectively diagnosing and resolving issues in both RHEL and Debian-based environments. For detailed usage, refer to each tool's manual page or official documentation.
---
---