bat command in linux
Bat Command in Linux
bat command
- It is the replacement of cat command
- It is used to show the file contents with syntax highlighting.
- It is similar to cat command but bat command adds support for syntax highlighting to make the text easier to read (retrieval)
NOTE
- By default, this command is not installed on your machine. So you need to install it based on the linux distribution, before to test this command.
Syntax
bat filename
Example 1 - Displaying contents of text file
Comments
Post a Comment