How to view files in linux

angryTom
angryTomOriginal
2019-11-04 11:42:4510880browse

How to view files in linux

How to view files in Linux

1. Check what files are in the directory

ls -l #显示详细信息

How to view files in linux

2. View the file creation time, modification, and access time

stat filename

How to view files in linux

##3. View the file content

cat filename #一次性输出文件内容
more filename #逐屏输出文件内容
head filename #查看文件头部
tail filename #查看文件尾部

Recommended: [

Linux video tutorial

The above is the detailed content of How to view files in linux. 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