官术网_书友最值得收藏!

Viewing files from various angles – head, tail, less, and more

As of this very moment, your system likely has many text files of various sizes including a never ending log file being written too. You might even have several large files containing copious amounts of code (such as the Linux kernel or a software project) and would like to quickly view them from the console without slowing your system down to a halt.

To do this, there are four essential commands that should be able to provide you more than enough functionality for their purposes:

  • Head: Can be used to output the beginning lines of a file
  • Tail: Can be used to output the end or tail of a file (continuously as well)
  • More: A tool used as a pager to view large files page by page/line by line
  • Less: Is the same as more, but it has more features, including backwards scrolling
Sometimes, you may see the command more on embedded systems and not the less command. This is because the less command is larger than more. Does your head hurt yet?
主站蜘蛛池模板: 岑溪市| 拜城县| 东宁县| 靖州| 开远市| 乐业县| 泉州市| 五峰| 分宜县| 万全县| 临武县| 正安县| 河池市| 平凉市| 岳阳市| 木兰县| 永新县| 新蔡县| 马鞍山市| 高台县| 贵南县| 乌拉特中旗| 禄劝| 广元市| 花莲市| 靖边县| 吉木萨尔县| 无极县| 泌阳县| 武功县| 河源市| 综艺| 望江县| 家居| 缙云县| 栖霞市| 延寿县| 焉耆| 台安县| 大厂| 长武县|