|
CentOS Linux Server Guide |
Showing or Displaying file content in CentOS Linux |
|||||||||||
cat is the Linux command is to
concatenate files and print on the standard output on screen.
|
| Command and options | Description | |
cat |
cat is the short name
of 'conCATenate'. We use this command to show the content of
particular file or more than one files. Below example shows the content of file name called network.
|
|
cat -n |
-n options will
display the line numbers including empty lines You will notice line numbering are added, this included the empty lines in the file.
|
|
cat -b, --number-nonblank |
this will output
output lines with number but ignore blank lines
|
|
Copyright 2011 http://www.1a-centosserver.com All Rights Reserved All trademarks are the property of their respective owners. Contact Us | Terms of Use | Privacy Policy |