Home>Article>Operation and Maintenance> 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
lessis similar tomore, 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
nlSimilar tocat -n, output line number when displayed
tailfSimilar totail -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!