本文摘自PHP中文网,作者little bottle,侵删。
Linux文件类型常见的有:普通文件、目录、字符设备文件、块设备文件、符号链接文件等。下面我们介绍一下linux几种查看文件类型的方法。
linux查看文件格式的方法:
1、ls -l 或者 ll (ls -l 别名)
1 2 | # ll anaconda-ks.cfg
-rw-------. 1 root root 2460 6月 1 23:37 anaconda-ks.cfg
|
2、file 命令
1 2 | [root@xiaochen ~]# file anaconda-ks.cfg
anaconda-ks.cfg: ASCII English text
|
3、stat 命令
1 2 3 4 5 6 7 8 | # stat install.log
File: “install.log”
Size: 34793 Blocks: 80 IO Block: 4096 一般文件
Device: 802h/2050d Inode: 65282 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2017-06-05 16:53:20.000000000 +0800
Modify: 2017-04-22 13:49:46.000000000 +0800
Change: 2017-04-22 13:49:52.000000000 +0800
|
Linux文件类型:
阅读剩余部分
相关阅读 >>
Linux如何更新系统
Linux如何查看显卡型号
Linux中ftp服务器的搭建步骤
Linux怎么查看版本命令
Linux下关于环境变量如何配置的步骤分享(图)
Linux进入目录的命令是什么
Linux是怎样的
Linux目录映射window本地目录在vmware下实现的图文详解
Linux中cd是什么意思?
Linux如何安装oracle客户端?
更多相关阅读请进入《Linux》频道 >>
转载请注明出处:木庄网络博客 » linux怎么查看文件格式