Linux Server and Workstation Configuration How To

  • Decrease font size
  • Default font size
  • Increase font size
  • default color
  • red color
  • green color
cat PDF Print E-mail
Wednesday, 02 December 2009 17:53
AddThis Social Bookmark Button

Command cat

cat command copy the file to standard output (screen).

Syntax

cat [-benstvA] files

Options

-B enumerates in a non-empty string.
-E displays each line ending characters (as $) and all the invisible characters.
-N enumerates all the output lines, starting with 1.
-S replaces several blank lines to one blank line.
-T displays tabs as ^I.
-V show invisible characters.
-A shows all characters (including invisible).

Description

Usually, the cat command is used to display the contents of a file or to concatenate multiple files into one. For example, cat filel file2 file3> all three files together in one file with the name of all.

 

Add comment


Security code
Refresh

Useful Links

Follow us on ...

  • Digg: hgevs
  • Facebook Page: 180986722511
  • Linked In Group: 2571120
  • Ning: linuxconfignet
  • Twitter: linuxconfignet

Friends

Thanks David Ayvazyan for provided useful information and discussions.
www.gnu.am (Armenian Translation)