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
Copy file name to clipboardExpand all lines: ebook/en/content/058-the-reboot-command.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# The `reboot` Command
2
2
3
-
The `reboot` command is used to restart a linux system. However, it requires elevated permission using the [sudo](https://github.com/bobbyiliev/101-linux-commands/blob/main/ebook/en/content/051-the-sudo-command.md) command. Necessity to use this command usually arises after significant system or network updates have been made to the system.
3
+
The `reboot` command is used to restart a Linux system. However, it requires elevated permission using the [sudo](https://github.com/bobbyiliev/101-linux-commands/blob/main/ebook/en/content/051-the-sudo-command.md) command. Necessity to use this command usually arises after significant system or network updates have been made to the system.
4
4
5
5
## Syntax
6
6
```
@@ -10,7 +10,7 @@ reboot [OPTIONS...]
10
10
### Options
11
11
-**–help** : This option prints a short help text and exit.
12
12
-**-halt** : This command will stop the machine.
13
-
-**-w**, **–wtmp-only** : This option only writes wtmp shutdown entry, it do not actually halt, power-off, reboot.
13
+
-**-w**, **–wtmp-only** : This option only writes wtmp shutdown entry, it does not actually halt, power-off, reboot.
14
14
15
15
### Examples
16
16
1. Basic Usage. Mainly used to restart without any further details
@@ -22,9 +22,9 @@ However, alternatively the shutdown command with the `-r` option
22
22
$ sudo shutdown -r now
23
23
```
24
24
25
-
**Note** 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.
25
+
**Note** 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.
26
26
27
-
2. The `reboot` command has limited usage, and the `shutdown` 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
27
+
2. The `reboot` command has limited usage, and the `shutdown` 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
28
28
```
29
29
$ sudo shutdown –r [TIME] [MESSAGE]
30
30
```
@@ -50,7 +50,8 @@ $ sudo shutdown –c [MESSAGE]
50
50
$sudo shutdown -c "Scheduled reboot cancelled because the chicken crossed the road"
Copy file name to clipboardExpand all lines: ebook/en/content/064-the-gunzip-command.md
+8-4Lines changed: 8 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
The `gunzip` command is an antonym command of [`gzip` command](015-the-gzip-command.md). In other words, it decompresses files deflated by the `gzip` command.
4
4
5
-
`gunzip` takes a list of files on its command line and replaces each file whose name ends with _.gz_, _-gz_, _.z_, _-z_, or *\_z* (ignoring case) and which begins with the correct magic number with an uncompressed file without the original extension.`gunzip` also recognizes the special extensions *.tgz* and *.taz* as shorthands for *.tar.gz* and *.tar.Z* respectively.
5
+
"`gunzip` takes a list of files as arguments. It replaces each file whose name ends with `.gz`, `-gz`, `.z`, `-z`, or `_z` (case-insensitive) and which begins with the correct magic number with an uncompressed file, removing the original extension."
6
6
7
7
### Examples:
8
8
@@ -12,13 +12,13 @@ The `gunzip` command is an antonym command of [`gzip` command](015-the-gzip-comm
12
12
gunzip filename.gz
13
13
```
14
14
15
-
2. Recursively uncompress content inside a directory, that match extension (suffix) compressed formats accepted by `gunzip`:
15
+
2."Recursively uncompress all files inside a directory that match the compressed file formats supported by `gunzip`:"
16
16
17
17
```
18
18
gunzip -r directory_name/
19
19
```
20
20
21
-
3. Uncompress all files in the current/working directory whose suffix match *.tgz*:
21
+
3."Uncompress all files in the currentworking directory whose suffix matches `.tgz`:
0 commit comments