diff --git a/client/src/pages/guide/english/linux/10-simple-and-useful-linux-commands/index.md b/client/src/pages/guide/english/linux/10-simple-and-useful-linux-commands/index.md index 3d06b77be8..9f4edbdc1d 100644 --- a/client/src/pages/guide/english/linux/10-simple-and-useful-linux-commands/index.md +++ b/client/src/pages/guide/english/linux/10-simple-and-useful-linux-commands/index.md @@ -3,7 +3,9 @@ title: 10 Simple and Useful Linux Commands --- # 10 Simple and Useful Linux Commands The commands listed here are basic, and will help you get started quickly. But they’re also powerful, and they’ll continue to be useful as your Linux expertise expands. -1. `echo` This takes the text you give it and sends it somewhere—to back to the screen, to a file, or to another command. Example: `echo "hello!"` +1. `echo` This takes the text you give it and sends it somewhere—back to the screen, to a file, or to another command. By default it echoes back to the screen, unless used with redirection `>` +Example: `echo "hello!"` +Example 2: `echo "Hello world" > hello.txt` 1. `cat` To display the contents of a text file, just type `cat myfile`. 1. `find` It does what it says, and it’s good at it. Use it to locate files by path, size, date, owner and a bunch of other useful filters. Example: `find . -type f -mtime -1h # List files in this directory modified in the past hour`. 1. `date` Just type date when you want to know what time it is. Example: `date "+It's %l:%m%p on %A"`. Use it in a script to name files according to the current date.