You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>The <code>reboot</code> command is used to restart a linux system. However, it requires elevated permission using the <a href="https://github.com/bobbyiliev/101-linux-commands/blob/main/ebook/en/content/051-the-sudo-command.md">sudo</a> command. Necessity to use this command usually arises after significant system or network updates have been made to the system.</p>
6783
+
<p>The <code>reboot</code> command is used to restart a Linux system. However, it requires elevated permission using the <a href="https://github.com/bobbyiliev/101-linux-commands/blob/main/ebook/en/content/051-the-sudo-command.md">sudo</a> command. Necessity to use this command usually arises after significant system or network updates have been made to the system.</p>
<li><strong>–help</strong> : This option prints a short help text and exit.</li>
6790
6790
<li><strong>-halt</strong> : This command will stop the machine.</li>
6791
-
<li><strong>-w</strong>, <strong>–wtmp-only</strong> : This option only writes wtmp shutdown entry, it do not actually halt, power-off, reboot.</li>
6791
+
<li><strong>-w</strong>, <strong>–wtmp-only</strong> : This option only writes wtmp shutdown entry, it does not actually halt, power-off, reboot.</li>
6792
6792
</ul>
6793
6793
<h3>Examples</h3>
6794
6794
<ol>
@@ -6799,9 +6799,9 @@ <h3>Examples</h3>
6799
6799
<p>However, alternatively the shutdown command with the <code>-r</code> option</p>
6800
6800
<pre><code class="language- hljs " data-lang="">$ sudo shutdown -r now
6801
6801
</code></pre>
6802
-
<p><strong>Note</strong> that the usage of the reboot, halt and power off is almost similar in syntax and effect. Run each of these commands with –help to see the details.</p>
6802
+
<p><strong>Note</strong> that the usage of the reboot, halt and power off is almost similar in syntax and effect. Run each of these commands with –-help to see the details.</p>
6803
6803
<ol start="2">
6804
-
<li>The <code>reboot</code> command has limited usage, and the <code>shutdown</code> command is being used instead of reboot command to fulfill much more advance reboot and shutdown requirements. One of those situations is a scheduled restart. Syntax is as follows</li>
6804
+
<li>The <code>reboot</code> command has limited usage, and the <code>shutdown</code> command is being used instead of reboot command to fulfill much more advanced reboot and shutdown requirements. One of those situations is a scheduled restart. Syntax is as follows</li>
<p>The <code>gunzip</code> command is an antonym command of <a href="015-the-gzip-command.md"><code>gzip</code> command</a>. In other words, it decompresses files deflated by the <code>gzip</code> command.</p>
7215
-
<p><code>gunzip</code> takes a list of files on its command line and replaces each file whose name ends with <em>.gz</em>, <em>-gz</em>, <em>.z</em>, <em>-z</em>, or <em>_z</em> (ignoring case) and which begins with the correct magic number with an uncompressed file without the original extension. <code>gunzip</code> also recognizes the special extensions <em>.tgz</em> and <em>.taz</em> as shorthands for <em>.tar.gz</em> and <em>.tar.Z</em> respectively.</p>
7216
+
<p>"<code>gunzip</code> takes a list of files as arguments. It replaces each file whose name ends with <code>.gz</code>, <code>-gz</code>, <code>.z</code>, <code>-z</code>, or <code>_z</code> (case-insensitive) and which begins with the correct magic number with an uncompressed file, removing the original extension."</p>
<p>The <code>hostnamectl</code> command provides a proper API used to control Linux system hostname and change its related settings. The command also helps to change the hostname without actually locating and editing the <code>/etc/hostname</code> file on a given system.</p>
7311
7314
<h2>Syntax</h2>
@@ -21325,14 +21328,24 @@ <h2>Examples</h2>
21325
21328
<li>Custom Column Separator</li>
21326
21329
</ol>
21327
21330
<pre><code class="language-bash hljs bash" data-lang="bash"><span class="hljs-comment"># Format CSV data with custom separator</span>
<pre><code class="language-bash hljs bash" data-lang="bash"><span class="hljs-comment"># Create a left-aligned table from space-separated data</span>
21334
21342
ps aux | head -n 5 | column -t -L
21335
21343
</code></pre>
21344
+
<blockquote>
21345
+
<p><strong>Note:</strong> Options like <code>-L</code> and <code>-R</code> may not be available in all Linux distributions (mainly GNU <code>column</code>).</p>
21346
+
</blockquote>
21347
+
<div style="page-break-after: always;"></div><h1>Format a file into columns (e.g., data.txt)</h1>
21348
+
<p>column -t -s, data.txt</p>
21336
21349
<h2>Additional Information</h2>
21337
21350
<ul>
21338
21351
<li>The <code>column</code> command is part of the <code>util-linux</code> package</li>
<p>The <code>reboot</code> command is used to restart a linux system. However, it requires elevated permission using the <a href="https://github.com/bobbyiliev/101-linux-commands/blob/main/ebook/en/content/051-the-sudo-command.md">sudo</a> command. Necessity to use this command usually arises after significant system or network updates have been made to the system.</p>
6783
+
<p>The <code>reboot</code> command is used to restart a Linux system. However, it requires elevated permission using the <a href="https://github.com/bobbyiliev/101-linux-commands/blob/main/ebook/en/content/051-the-sudo-command.md">sudo</a> command. Necessity to use this command usually arises after significant system or network updates have been made to the system.</p>
<li><strong>–help</strong> : This option prints a short help text and exit.</li>
6790
6790
<li><strong>-halt</strong> : This command will stop the machine.</li>
6791
-
<li><strong>-w</strong>, <strong>–wtmp-only</strong> : This option only writes wtmp shutdown entry, it do not actually halt, power-off, reboot.</li>
6791
+
<li><strong>-w</strong>, <strong>–wtmp-only</strong> : This option only writes wtmp shutdown entry, it does not actually halt, power-off, reboot.</li>
6792
6792
</ul>
6793
6793
<h3>Examples</h3>
6794
6794
<ol>
@@ -6799,9 +6799,9 @@ <h3>Examples</h3>
6799
6799
<p>However, alternatively the shutdown command with the <code>-r</code> option</p>
6800
6800
<pre><code class="language- hljs " data-lang="">$ sudo shutdown -r now
6801
6801
</code></pre>
6802
-
<p><strong>Note</strong> that the usage of the reboot, halt and power off is almost similar in syntax and effect. Run each of these commands with –help to see the details.</p>
6802
+
<p><strong>Note</strong> that the usage of the reboot, halt and power off is almost similar in syntax and effect. Run each of these commands with –-help to see the details.</p>
6803
6803
<ol start="2">
6804
-
<li>The <code>reboot</code> command has limited usage, and the <code>shutdown</code> command is being used instead of reboot command to fulfill much more advance reboot and shutdown requirements. One of those situations is a scheduled restart. Syntax is as follows</li>
6804
+
<li>The <code>reboot</code> command has limited usage, and the <code>shutdown</code> command is being used instead of reboot command to fulfill much more advanced reboot and shutdown requirements. One of those situations is a scheduled restart. Syntax is as follows</li>
<p>The <code>gunzip</code> command is an antonym command of <a href="015-the-gzip-command.md"><code>gzip</code> command</a>. In other words, it decompresses files deflated by the <code>gzip</code> command.</p>
7215
-
<p><code>gunzip</code> takes a list of files on its command line and replaces each file whose name ends with <em>.gz</em>, <em>-gz</em>, <em>.z</em>, <em>-z</em>, or <em>_z</em> (ignoring case) and which begins with the correct magic number with an uncompressed file without the original extension. <code>gunzip</code> also recognizes the special extensions <em>.tgz</em> and <em>.taz</em> as shorthands for <em>.tar.gz</em> and <em>.tar.Z</em> respectively.</p>
7216
+
<p>"<code>gunzip</code> takes a list of files as arguments. It replaces each file whose name ends with <code>.gz</code>, <code>-gz</code>, <code>.z</code>, <code>-z</code>, or <code>_z</code> (case-insensitive) and which begins with the correct magic number with an uncompressed file, removing the original extension."</p>
<p>The <code>hostnamectl</code> command provides a proper API used to control Linux system hostname and change its related settings. The command also helps to change the hostname without actually locating and editing the <code>/etc/hostname</code> file on a given system.</p>
7311
7314
<h2>Syntax</h2>
@@ -21325,14 +21328,24 @@ <h2>Examples</h2>
21325
21328
<li>Custom Column Separator</li>
21326
21329
</ol>
21327
21330
<pre><code class="language-bash hljs bash" data-lang="bash"><span class="hljs-comment"># Format CSV data with custom separator</span>
<pre><code class="language-bash hljs bash" data-lang="bash"><span class="hljs-comment"># Create a left-aligned table from space-separated data</span>
21334
21342
ps aux | head -n 5 | column -t -L
21335
21343
</code></pre>
21344
+
<blockquote>
21345
+
<p><strong>Note:</strong> Options like <code>-L</code> and <code>-R</code> may not be available in all Linux distributions (mainly GNU <code>column</code>).</p>
21346
+
</blockquote>
21347
+
<div style="page-break-after: always;"></div><h1>Format a file into columns (e.g., data.txt)</h1>
21348
+
<p>column -t -s, data.txt</p>
21336
21349
<h2>Additional Information</h2>
21337
21350
<ul>
21338
21351
<li>The <code>column</code> command is part of the <code>util-linux</code> package</li>
0 commit comments