Featured image of post Terminal Knowledge πŸ“Ÿ

Terminal Knowledge πŸ“Ÿ

This article provides comprehensive knowledge about Terminal, system monitoring, networking tools, text processing, and Bash scripting to help users work more efficiently with Linux and DevOps.

πŸ–₯️ Terminal Knowledge

Terminal is a text interface that allows users to interact with computer systems through CLI (Command Line Interface). It is an essential tool for system management, command execution, and task automation.

πŸ“š Free Resources

πŸ”Ή Example:

1
2
ls -l  # List files in current directory
pwd    # Display current directory path

πŸ“Š Process Monitoring

Process monitoring is the continuous observation and analysis of processes in IT systems to ensure performance, efficiency, and compliance. It helps track important metrics such as resource usage and behavior of individual processes or applications running in the system.

  • 🟣 lsof - Lists information about files opened by processes.

πŸ“š Free Resources

πŸ”Ή Example:

1
2
lsof -i :80  # List processes using port 80
ps aux       # Display all running processes

πŸš€ Performance Monitoring

Performance monitoring helps collect, analyze, and report key performance metrics from applications, networks, servers, and databases.

  • 🟣 vmstat - Virtual memory and system performance monitoring tool.

πŸ“š Free Resources

πŸ”Ή Example:

1
vmstat 5 10  # Update system status every 5 seconds for 10 times

🌐 Networking Tools

Networking tools support monitoring, analyzing, troubleshooting, and managing network systems.

  • 🟣 Wireshark - Deep packet analysis.
  • 🟣 Nmap - Network scanning and security testing.
  • Ping - Basic connectivity testing.
  • Traceroute - Determine packet path through network.
  • Netstat - Display network connections.
  • Tcpdump - Command-line packet capture and analysis.
  • Iperf - Network performance testing.
  • Netcat - Perform various network tasks.
  • Nslookup/Dig - DNS queries.
  • PuTTY - Remote connection via SSH or Telnet.

πŸ”Ή Example:

1
2
ping google.com        # Test connection to Google
nmap -sS 192.168.1.1  # Scan internal server ports

βœ‚οΈ Text Manipulation

Tools that support editing, processing, and converting text data.

  • 🟣 sed - Stream editor for data manipulation.
  • 🟣 awk - Pattern scanning and data extraction.
  • 🟣 grep - Text search using regular expressions.
  • cut, sort, tr, uniq - Supporting commands for text data processing.

πŸ”Ή Example:

1
2
grep "error" logfile.txt  # Find "error" in logfile.txt
awk '{print $1}' data.txt  # Get first column from data.txt

⚑ Bash Scripts

Bash is a powerful shell on Unix/Linux that helps execute commands and automate tasks.

πŸ”Ή Example:

1
2
#!/bin/bash
echo "Hello, World!"

✍️ Editors

Text editors are essential tools for editing and managing text files.

  • 🟣 Vim - Powerful, highly customizable, suitable for programmers.
  • 🟣 Emacs - Flexible with many supporting plugins.
  • Sublime Text - High speed, user-friendly interface.
  • Visual Studio Code - Open source, supports debugging, extensions, integrated development tools.

πŸ”Ή Example:

1
2
vim myfile.txt  # Open file with Vim
nano myfile.txt # Open file with Nano

πŸ”š Conclusion

Understanding and mastering these tools helps you work more efficiently in Linux and DevOps environments. Tools 🟣 marked are the most popular and powerful ones, recommended by many experts. You can learn more through the accompanying free resources. If there’s anything that needs clarification or addition, please provide feedback so I can update accordingly!

πŸ‘‰ Next step: Advance your knowledge of Version Control Systems to effectively track, manage, and collaborate on source code.