diff --git a/guide/english/bash/bash-cat/index.md b/guide/english/bash/bash-cat/index.md index 8603f851b9..99b4d9d3db 100644 --- a/guide/english/bash/bash-cat/index.md +++ b/guide/english/bash/bash-cat/index.md @@ -1,15 +1,13 @@ --- -title: Bash Cat +title: Bash cat --- -## Bash Cat +## Bash command: cat -`cat` is one of the most frequently used commands in Unix operating systems. +The bash command `cat` is one of the most frequently used commands in Unix operating systems. It is used to read a file sequentially and print it to the standard output. +The command's name is derived from its function to con**cat**enate files. -`cat` is used to read a file sequentially and print it to the standard output. -The name is derived from its function to con**cat**enate files. - -Cat can also be used to create a text file. +The cat command can also be used to create a text file. ### Usage @@ -19,10 +17,10 @@ cat [options] [file_names] Most used options: -* `-b`, number non-blank output lines +* `-b`, numer non-blank output lines * `-n`, number all output lines * `-s`, squeeze multiple adjacent blank lines -* `-v`, display non-printing characters, except for tabs and the end of line character +* `-v`, display nonprinting characters, except for tabs and the end of line character ### Example @@ -36,6 +34,7 @@ Concatenate the content of the two files and display the result in terminal: cat file1.txt file2.txt ``` + **Tip**: Using `cat` on a directory will cause error, so make sure it's a readable file. Creating a new text file: @@ -44,7 +43,6 @@ cat > yourfile.txt ``` After pressing Enter, the cursor will be placed on the next line. You can start entering your desired text directly into your file. Press Ctrl+D or Ctrl+C to exit the file. + #### More Information: * Wikipedia: https://en.wikipedia.org/wiki/Cat_(Unix) - -