From d388d7f7ef4433dd3200a9ff1384ca2f4724a39b Mon Sep 17 00:00:00 2001 From: mcnorton05 <44177278+mcnorton05@users.noreply.github.com> Date: Wed, 24 Oct 2018 01:48:13 -0400 Subject: [PATCH] Added "shutdown -r" as common command (#21070) --- .../english/linux/10-simple-and-useful-linux-commands/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guide/english/linux/10-simple-and-useful-linux-commands/index.md b/guide/english/linux/10-simple-and-useful-linux-commands/index.md index 9f4edbdc1d..d58cd76a52 100644 --- a/guide/english/linux/10-simple-and-useful-linux-commands/index.md +++ b/guide/english/linux/10-simple-and-useful-linux-commands/index.md @@ -15,7 +15,7 @@ Example 2: `echo "Hello world" > hello.txt` 1. `cut` When you have a string with separators in it, use `cut` to filter out certain fields. Example: `echo "this, that, and the other" | cut -d, -f2 # "that"` 1. `grep` To find lines of text that contain a certain string, use grep. Example: `grep 'root' /etc/passwd # root:x:0:0:root:/root:/bin/bash` 1. `sed` Use sed to find and change a substring in a piece of text. Example: `echo "this, that, and the other" | sed 's/that/those/' # "this, those, and the other"` -1. `shutdown` use shut down the system and turn off the power. Example: `shutdown -h now`shuts down system immediately. `shutdown -h +5` shuts down system after five minutes. +1. `shutdown` use shut down the system and turn off the power. Example: `shutdown -h now`shuts down system immediately. `shutdown -h +5` shuts down system after five minutes. Alternatively, `shutdown -r` will initate a reboot. Use these commands in scripts and at the command line. They're all very powerful commands, and Linux's man page has a lot more information about each one.