Testing and learning Linux administration.
- $cat filename : It will show content of given filename
- $cat file1 file2 : This will show the content of file1 and file2.
- $cat -n filename : It will show content with line number.
- $ cat >newfile : Will create and a file named newfile
- $cat [filename-whose-contents-is-to-be-copied] > [destination-filename] : The content will be copied in destination file
- $cat -s notes.txt : Will suppress repeated empty lines in output
- $cat file1 >> file2 : Will append the contents of one file to the end of another file
- $tac filename : Will display content in reverse order
- $cat -E "filename" : Will highlight the end of line
- $cat -- "-dashfile" : Will display the content of -dashfile
First Header | Second Header |
---|---|
Content from cell 1 | Content from cell 2 |
Content in the first column | Content in the second column |