Update: HTML docs source converted to comment (#21799)
* Update: HTML docs source converted to comment * Update: added cd command in linux->10 simple and useful...
This commit is contained in:
committed by
Christopher McCormack
parent
6c43bdee1f
commit
bed1febd1f
@ -11,12 +11,11 @@ Comments are started with `<!--` and ended with `-->`, and can span multiple lin
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```html
|
```html
|
||||||
|
|
||||||
<!-- You can comment out a large number of lines like this.
|
<!-- You can comment out a large number of lines like this.
|
||||||
Author: xyz
|
Author: xyz
|
||||||
Date: xx/xx/xxxx
|
Date: xx/xx/xxxx
|
||||||
Purpose: abc
|
Purpose: abc
|
||||||
Read more: https://html.com/tags/comment-tag/#ixzz4vtZHu5uR
|
Read more: https://html.com/tags/comment-tag/#ixzz4vtZHu5uR
|
||||||
-->
|
-->
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
@ -16,6 +16,7 @@ Example 2: `echo "Hello world" > hello.txt`
|
|||||||
9. `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`
|
9. `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`
|
||||||
10. `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"`
|
10. `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"`
|
||||||
11. `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. You can also reboot the system immediately by issuing the command `shutdown -r now`.
|
11. `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. You can also reboot the system immediately by issuing the command `shutdown -r now`.
|
||||||
|
12. `cd` use `cd` to change the directory. Example: `cd dirName` changes the directory to the folder names `dirName`. `cd ..` this command takes to the upper root folder or out of the folder.
|
||||||
|
|
||||||
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.
|
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.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user