Skip to content

Commit 7080fb5

Browse files
committed
🤖 Auto-update eBook files and GitHub Pages [skip ci]
1 parent 7866b47 commit 7080fb5

7 files changed

Lines changed: 96 additions & 40 deletions
997 Bytes
Binary file not shown.
1007 Bytes
Binary file not shown.
196 Bytes
Binary file not shown.

ebook/en/export/101-linux-commands.html

Lines changed: 48 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11624,32 +11624,60 @@ <h3>Additional Flags and their Functionalities</h3>
1162411624
<div style="page-break-after: always;"></div><h1>The <code>wall</code> command</h1>
1162511625
<p>The <code>wall</code> command (short for <em>write all</em>) is used to send a message to all logged-in users on a Linux system. It is commonly used by system administrators to broadcast important information, such as planned maintenance or urgent announcements.</p>
1162611626
<h2>Syntax</h2>
11627-
<pre><code class="language- hljs " data-lang="">wall [options] [message]
11627+
<pre><code class="language-bash hljs bash" data-lang="bash"><span class="hljs-variable">$wall</span> [options] [message]
1162811628
</code></pre>
11629-
<p>If no message is provided as an argument, <code>wall</code> will read the message from standard input (stdin).</p>
11629+
<p>If a [message] is not provided on the command line, wall will read from standard input until it receives an end-of-file character (Ctrl+D).</p>
1163011630
<h2>Options</h2>
11631-
<p>Some popular option flags include:</p>
11632-
<pre><code class="language-php hljs php" data-lang="php">-n <span class="hljs-keyword">Do</span> not display the header (username <span class="hljs-keyword">and</span> terminal of the sender).
11633-
-t [seconds] Set a timeout <span class="hljs-keyword">for</span> writing the message to each terminal.
11631+
<table>
11632+
<thead>
11633+
<tr>
11634+
<th>Option</th>
11635+
<th>Description</th>
11636+
</tr>
11637+
</thead>
11638+
<tbody>
11639+
<tr>
11640+
<td>-n</td>
11641+
<td>Suppress the banner (which shows who sent the message) and only show the message text.</td>
11642+
</tr>
11643+
<tr>
11644+
<td>-t [seconds]</td>
11645+
<td>Set a timeout, in seconds. <code>wall</code> will try to write to a user's terminal for this duration before giving up.</td>
11646+
</tr>
11647+
</tbody>
11648+
</table>
11649+
<h2>Examples:</h2>
11650+
<h3>1. Broadcast a message to all users</h3>
11651+
<p>This command sends a message directly to all logged-in users.</p>
11652+
<pre><code class="language-bash hljs bash" data-lang="bash">$ wall <span class="hljs-string">"The system will shut down in 10 minutes. Please save your work."</span>
1163411653
</code></pre>
11635-
<h2>Few Examples:</h2>
11636-
<ol>
11637-
<li>Broadcast a message to all users</li>
11638-
</ol>
11639-
<pre><code class="language-php hljs php" data-lang="php">wall <span class="hljs-string">"The system will shut down in 10 minutes. Please save your work."</span>
11654+
<h3>Output (on other users' terminals):</h3>
11655+
<pre><code class="language-bash hljs bash" data-lang="bash">Broadcast message from your_username@hostname (pts/0) (Sat Oct 4 19:50:00 2025):
11656+
11657+
The system will shut down <span class="hljs-keyword">in</span> 10 minutes. Please save your work.
1164011658
</code></pre>
11641-
<ol start="2">
11642-
<li>Broadcast a message from a text file</li>
11643-
</ol>
11644-
<pre><code class="language- hljs " data-lang="">wall &lt; message.txt
11659+
<h3>2. Broadcast a message from a text file</h3>
11660+
<p>You can redirect the contents of a file to be used as the message.</p>
11661+
<h3>Contents of message.txt:</h3>
11662+
<pre><code class="language-bash hljs bash" data-lang="bash">System maintenance will begin shortly.
11663+
Connections may be temporarily unstable.
1164511664
</code></pre>
11646-
<ol start="3">
11647-
<li>Send a message without showing the sender header</li>
11648-
</ol>
11649-
<pre><code class="language-php hljs php" data-lang="php">wall -n <span class="hljs-string">"Maintenance completed successfully."</span>
11665+
<h3>Command:</h3>
11666+
<pre><code class="language-bash hljs bash" data-lang="bash">$ wall &lt; message.txt
11667+
</code></pre>
11668+
<h3>3. Send a multi-line message from standard input</h3>
11669+
<p>If you run wall without a message, you can type a multi-line message directly in the terminal. Press Ctrl+D when you are finished to send it.</p>
11670+
<pre><code class="language-bash hljs bash" data-lang="bash">$ wall
11671+
The server is now back online.
11672+
All services are running normally.
11673+
&lt;Ctrl+D&gt;
11674+
</code></pre>
11675+
<h3>Output (on other users' terminals):</h3>
11676+
<pre><code class="language-bash hljs bash" data-lang="bash">Broadcast message from your_username@hostname (pts/0) (Sat Oct 4 19:52:00 2025):
11677+
11678+
The server is now back online.
11679+
All services are running normally.
1165011680
</code></pre>
11651-
<p>Here I showed you how to use the <code>wall</code> command in Linux. It is a simple but effective tool for system-wide communication, especially useful when you need to notify multiple logged-in users at once.</p>
11652-
<p>For more details: <a href="https://en.wikipedia.org/wiki/Wall_%28Unix%29">Wall (Unix) on Wikipedia</a></p>
1165311681
<div style="page-break-after: always;"></div><h1>The <code>ln</code> command</h1>
1165411682
<p>The <code>ln</code> command is used to create links between files in Linux. It can create both hard links and symbolic (soft) links, which are essential for file system management and organization.</p>
1165511683
<h2>Syntax</h2>
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

index.html

Lines changed: 48 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11624,32 +11624,60 @@ <h3>Additional Flags and their Functionalities</h3>
1162411624
<div style="page-break-after: always;"></div><h1>The <code>wall</code> command</h1>
1162511625
<p>The <code>wall</code> command (short for <em>write all</em>) is used to send a message to all logged-in users on a Linux system. It is commonly used by system administrators to broadcast important information, such as planned maintenance or urgent announcements.</p>
1162611626
<h2>Syntax</h2>
11627-
<pre><code class="language- hljs " data-lang="">wall [options] [message]
11627+
<pre><code class="language-bash hljs bash" data-lang="bash"><span class="hljs-variable">$wall</span> [options] [message]
1162811628
</code></pre>
11629-
<p>If no message is provided as an argument, <code>wall</code> will read the message from standard input (stdin).</p>
11629+
<p>If a [message] is not provided on the command line, wall will read from standard input until it receives an end-of-file character (Ctrl+D).</p>
1163011630
<h2>Options</h2>
11631-
<p>Some popular option flags include:</p>
11632-
<pre><code class="language-php hljs php" data-lang="php">-n <span class="hljs-keyword">Do</span> not display the header (username <span class="hljs-keyword">and</span> terminal of the sender).
11633-
-t [seconds] Set a timeout <span class="hljs-keyword">for</span> writing the message to each terminal.
11631+
<table>
11632+
<thead>
11633+
<tr>
11634+
<th>Option</th>
11635+
<th>Description</th>
11636+
</tr>
11637+
</thead>
11638+
<tbody>
11639+
<tr>
11640+
<td>-n</td>
11641+
<td>Suppress the banner (which shows who sent the message) and only show the message text.</td>
11642+
</tr>
11643+
<tr>
11644+
<td>-t [seconds]</td>
11645+
<td>Set a timeout, in seconds. <code>wall</code> will try to write to a user's terminal for this duration before giving up.</td>
11646+
</tr>
11647+
</tbody>
11648+
</table>
11649+
<h2>Examples:</h2>
11650+
<h3>1. Broadcast a message to all users</h3>
11651+
<p>This command sends a message directly to all logged-in users.</p>
11652+
<pre><code class="language-bash hljs bash" data-lang="bash">$ wall <span class="hljs-string">"The system will shut down in 10 minutes. Please save your work."</span>
1163411653
</code></pre>
11635-
<h2>Few Examples:</h2>
11636-
<ol>
11637-
<li>Broadcast a message to all users</li>
11638-
</ol>
11639-
<pre><code class="language-php hljs php" data-lang="php">wall <span class="hljs-string">"The system will shut down in 10 minutes. Please save your work."</span>
11654+
<h3>Output (on other users' terminals):</h3>
11655+
<pre><code class="language-bash hljs bash" data-lang="bash">Broadcast message from your_username@hostname (pts/0) (Sat Oct 4 19:50:00 2025):
11656+
11657+
The system will shut down <span class="hljs-keyword">in</span> 10 minutes. Please save your work.
1164011658
</code></pre>
11641-
<ol start="2">
11642-
<li>Broadcast a message from a text file</li>
11643-
</ol>
11644-
<pre><code class="language- hljs " data-lang="">wall &lt; message.txt
11659+
<h3>2. Broadcast a message from a text file</h3>
11660+
<p>You can redirect the contents of a file to be used as the message.</p>
11661+
<h3>Contents of message.txt:</h3>
11662+
<pre><code class="language-bash hljs bash" data-lang="bash">System maintenance will begin shortly.
11663+
Connections may be temporarily unstable.
1164511664
</code></pre>
11646-
<ol start="3">
11647-
<li>Send a message without showing the sender header</li>
11648-
</ol>
11649-
<pre><code class="language-php hljs php" data-lang="php">wall -n <span class="hljs-string">"Maintenance completed successfully."</span>
11665+
<h3>Command:</h3>
11666+
<pre><code class="language-bash hljs bash" data-lang="bash">$ wall &lt; message.txt
11667+
</code></pre>
11668+
<h3>3. Send a multi-line message from standard input</h3>
11669+
<p>If you run wall without a message, you can type a multi-line message directly in the terminal. Press Ctrl+D when you are finished to send it.</p>
11670+
<pre><code class="language-bash hljs bash" data-lang="bash">$ wall
11671+
The server is now back online.
11672+
All services are running normally.
11673+
&lt;Ctrl+D&gt;
11674+
</code></pre>
11675+
<h3>Output (on other users' terminals):</h3>
11676+
<pre><code class="language-bash hljs bash" data-lang="bash">Broadcast message from your_username@hostname (pts/0) (Sat Oct 4 19:52:00 2025):
11677+
11678+
The server is now back online.
11679+
All services are running normally.
1165011680
</code></pre>
11651-
<p>Here I showed you how to use the <code>wall</code> command in Linux. It is a simple but effective tool for system-wide communication, especially useful when you need to notify multiple logged-in users at once.</p>
11652-
<p>For more details: <a href="https://en.wikipedia.org/wiki/Wall_%28Unix%29">Wall (Unix) on Wikipedia</a></p>
1165311681
<div style="page-break-after: always;"></div><h1>The <code>ln</code> command</h1>
1165411682
<p>The <code>ln</code> command is used to create links between files in Linux. It can create both hard links and symbolic (soft) links, which are essential for file system management and organization.</p>
1165511683
<h2>Syntax</h2>

0 commit comments

Comments
 (0)