Display file contents

To display full file contents while you are at command line or SSH over a windows box, use this:

cat /path/to/file.name

And here are some options you can combine with cat program.

-A, --show-all           equivalent to -vET
-b, --number-nonblank    number nonempty output lines
-e                       equivalent to -vE
-E, --show-ends          display $ at end of each line
-n, --number             number all output lines
-s, --squeeze-blank      suppress repeated empty output lines
-t                       equivalent to -vT
-T, --show-tabs          display TAB characters as ^I
-u                       (ignored)
-v, --show-nonprinting   use ^ and M- notation, except for LFD and TAB
    --help               display help and exit
    --version            output version information and exit

About Madara

I am who I am.
This entry was posted in Linux and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>