IWATS Linux
News
Course Notes
  • Linux/1
 
 
 
Course Tests
Links
Contact
Get Linux
Notes

History Requirements Inside the system Files and directories Viewing text files Printing files
Copying files Devices Storage File types Filesystem structure

Viewing text files

Available through those commands:

cat - view file contents

$ cat <files>

Without argument, cat reads the standard input. Also, it can be used to paste few files into one:

$ cat file1 > file2 > file3

echo - writes a line of text on a standard out

$ echo [options] <text>

Options:
-n doesn't end the line with a return sign
Text options (inputted via " "):
\b backspace
\c no new line
\f page feed
\n new line
\digit an octal number, represents an ASCII character
\r return (enter)
\t tabulation
\v vertical tabulation
\\ backslash