课程: Setting Up a Red Hat Enterprise Linux Server

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

File view commands

File view commands

- [Instructor] There are many different ways a file content can be viewed in Linux. Most of the time file content is a huge and viewing them in one shot is of course not efficient. Therefore, Linux provides more than one command to view file contents according to your desire or your requirement. Now some of those commands are cat which actually lets you view everything in one shot. If a file has, for example, 10 pages, all 10 pages will be displayed all at one shot. Then you have more command. The more command is used to view the file content one page at a time. The next command is head. In Linux, it is used to display the beginning portion of a file or input stream. By default, it shows the first 10 lines of a file. You define, give me the first 20 lines you'll use head. Similarly, the tail command is the opposite of head. If you want to view a file content from the bottom up, then you'll use the tail command and of…

内容