File Content Related Commands in Linux - BunksAllowed

BunksAllowed is an effort to facilitate Self Learning process through the provision of quality tutorials.

Community

File Content Related Commands in Linux

Share This

There are many commands that are used to look at the contents of a file. Here, we will discuss some frequently used commands like head, tac, cat, less & more and strings.

head command

This command is used to display the content from the beginning of a file as shown below.

tail command

This command is used to display the content from the last part of a file.

cat command

This command is used to dispalay content of a file or concatenate content of multiple files as shown below.

more command

This command is used to diaplay content of a file in pager form that is either in more format.

less command

This command is used to diaplay content of a file in pager form that is either in less format.



Happy Exploring!

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.