Home  >  Article  >  Operation and Maintenance  >  linux open file command

linux open file command

藏色散人
藏色散人Original
2019-06-06 09:52:007171browse

linux open file command

Linux command to open a file

Command to view file contents:

catDisplays content starting from the first line and outputs all contents

tacDisplays content from the last line in reverse order and outputs all contents

moreAccording to the window size, the actual file content page by page

less is similar to more, but its advantage is that you can turn pages forward, and You can search for characters

headOnly the first few lines are displayed

tailOnly the last few lines are displayed

nl Similar to cat -n, output line number when displayed

tailfSimilar to tail -f

Recommended related video tutorials: "Linux Tutorial"

The above is the detailed content of linux open file command. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn