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
Posted in Linux | Tagged , | Leave a comment