Skip to content

Commit c82dafd

Browse files
authored
Fix broken tables due to unescaped pipes
1 parent ef6ce34 commit c82dafd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

linux-1/linux-basics.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -500,9 +500,9 @@ See the [chattr manpage](https://www.man7.org/linux/man-pages/man1/chattr.1.html
500500
| `free -h` | Shows memory usage including swap space. |
501501
| `uptime` | Displays system uptime and load average. |
502502
| `who -b` | Shows last system boot time. |
503-
| `dmesg | head` | Displays system log messages (hardware boot events). |
503+
| `dmesg \| head` | Displays system log messages (hardware boot events). |
504504
| `lsblk` | Lists block devices (disks and partitions). |
505-
| `mount | column -t` | Shows mounted file systems. |
505+
| `mount \| column -t` | Shows mounted file systems. |
506506
| `env` | Prints system environment variables. |
507507

508508
### **Processes**
@@ -548,7 +548,7 @@ Here are some key files inside `/proc` that can provide valuable system data:
548548
| File | Purpose | Example Usage |
549549
|------|---------|--------------|
550550
| `/proc/cpuinfo` | Displays CPU details (cores, vendor, speed). | `cat /proc/cpuinfo` |
551-
| `/proc/meminfo` | Shows memory statistics (RAM usage, swap, buffers). | `cat /proc/meminfo | grep MemTotal` |
551+
| `/proc/meminfo` | Shows memory statistics (RAM usage, swap, buffers). | `cat /proc/meminfo \| grep MemTotal` |
552552
| `/proc/uptime` | Indicates how long the system has been running. | `cat /proc/uptime` |
553553
| `/proc/loadavg` | Displays system load averages over 1, 5, and 15 minutes. | `cat /proc/loadavg` |
554554
| `/proc/swaps` | Lists active swap partitions. | `cat /proc/swaps` |
@@ -563,7 +563,7 @@ Each process running on the system has a **dedicated directory** under `/proc`,
563563
| File | Description | Example Usage |
564564
|------|-------------|--------------|
565565
| `/proc/[PID]/cmdline` | Displays the exact command used to start the process. | `cat /proc/1234/cmdline` |
566-
| `/proc/[PID]/status` | Provides detailed status info, including memory and CPU usage. | `cat /proc/1234/status | grep VmRSS` |
566+
| `/proc/[PID]/status` | Provides detailed status info, including memory and CPU usage. | `cat /proc/1234/status \| grep VmRSS` |
567567
| `/proc/[PID]/fd/` | Lists open file descriptors of the process. | `ls -l /proc/1234/fd/` |
568568
| `/proc/[PID]/environ` | Displays environment variables for the process. | `cat /proc/1234/environ` |
569569

@@ -748,7 +748,7 @@ These Linux networking commands help manage interfaces, connections, and trouble
748748
| `dhclient` | Requests a new IP address via DHCP. | `dhclient eth0` |
749749
| `ping` | Tests network connectivity to a target IP or domain. | `ping google.com` |
750750
| `traceroute` | Displays the route packets take to a destination. | `traceroute 8.8.8.8` |
751-
| `netstat -tulnp` | Lists active network connections and listening services. | `netstat -tulnp | grep :80` |
751+
| `netstat -tulnp` | Lists active network connections and listening services. | `netstat -tulnp \| grep :80` |
752752
| `ss -tulnp` | Modern replacement for `netstat`, shows listening ports and active connections. | `ss -tulnp` |
753753
| `tcpdump` | Captures and analyzes network packets. | `tcpdump -i eth0 port 443` |
754754
| `iptables -L` | Lists firewall rules set by `iptables`. | `iptables -L INPUT` |

0 commit comments

Comments
 (0)