Get the App
SLTechnology News&Howtos  ›  Servers  › 

Detailed explanation of cat command

Shulou Source: shulou.com Published: 2022-06-03 09:36:01 10月04日 Update

NAME

Cat-concatenate file and print on the standard output: connect the file and display it to standard output.

SYNOPSIS

Cat [OPTION]... [FILE]...

DESCRIPTION

Concatentate FILE (s), or standard input, to standard output

-A,-- show-all

Eqivalent to-vET is equivalent to-vET

-b-- number-nonblank

Number nonempty output lines labels output lines that are not blank lines

-e equivalent to-vE

-E-- show-ends

Display $at end of each line add $at the end of each line

-n,-- number

Number all output lines: number all output lines

-s-- squeeze-blank

Supress repeated empty output lines suppresses the output of duplicate blank lines (if there is a duplicate line, output one).

-t equicalent to-vT

-T,-- show-tabs

Display TAB characters as ^ I display tabs

Tags: Output blank lines tabs files standards labels tabs commands Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple MariaDB Redmi Shulou Technology Huawei