在Linux文本界面关于列表的相关命令
2018-03-27 08:53
197 查看
ls -l 以长格式显示文件内容
例如:[root@ns1 ~]# ls -l lshelp.txt
-rw-r--r-- 1 root root 7580 3月 7 22:17 lshelp.txt
备注:文件内容格式:权限文件类型、连接方式数目、文件的所有者(用户)、用户所在的组、文件的
大小(默认为字节)、时间、名字
ls -a 显示包括隐藏文件在内的所有内容
例如:[root@ns1 ~]# ls -a
. .bash_history .bashrc install.log.syslog
.. .bash_logout .cshrc lshelp.txt
anaconda-ks.cfg .bash_profile install.log .tcshrc
ls -lh 显示文件大小
ls -lh lshelp.txt
例如:[root@ns1 ~]# ls -lh lshelp.txt
-rw-r--r-- 1 root root 7.5K 3月 7 22:17 lshelp.txt
ls -ld 显示目录属性
ls -ld /etc/
例如:[root@ns1 ~]# ls -ld /etc
drwxr-xr-x. 107 root root 12288 3月 7 18:44 /etc
例如:[root@ns1 ~]# ls -l lshelp.txt
-rw-r--r-- 1 root root 7580 3月 7 22:17 lshelp.txt
备注:文件内容格式:权限文件类型、连接方式数目、文件的所有者(用户)、用户所在的组、文件的
大小(默认为字节)、时间、名字
ls -a 显示包括隐藏文件在内的所有内容
例如:[root@ns1 ~]# ls -a
. .bash_history .bashrc install.log.syslog
.. .bash_logout .cshrc lshelp.txt
anaconda-ks.cfg .bash_profile install.log .tcshrc
ls -lh 显示文件大小
ls -lh lshelp.txt
例如:[root@ns1 ~]# ls -lh lshelp.txt
-rw-r--r-- 1 root root 7.5K 3月 7 22:17 lshelp.txt
ls -ld 显示目录属性
ls -ld /etc/
例如:[root@ns1 ~]# ls -ld /etc
drwxr-xr-x. 107 root root 12288 3月 7 18:44 /etc
相关文章推荐
- 在Linux文本界面中关于查看的相关命令
- 几个与文本处理相关的Linux命令总结
- Linux中关于文本查看和处理的常用命令
- elinks命令_Linux elinks 命令用法详解:纯文本界面的WWW浏览器
- linux之关于文件和目录管理的相关命令
- 关于 Linux 的配置文件 /etc/profile 路径出错后相关的命令失效解决方式(如:ls,vi不能用)
- 文本文件内容相关命令 Linux
- linux终端下用vi命令创建一个文件(a),创建进入文本编辑界面命令?
- linux中关于用户权限的相关命令
- linux命令3(文本处理相关)
- 关于 Linux 的配置文件 /etc/profile 路径出错后相关的命令失效解决方式(如:ls,vi不能用)
- linux中关于sed命令来处理文本
- 关于 Linux 的配置文件 /etc/profile 路径出错后相关的命令失效解决方式(如:ls,vi不能用)
- Linux下的文本操作相关命令
- linux关于处理文本内容的命令!!
- linux关于系统管理、系统安全相关命令
- linux 文本相关命令
- Linux学习之CentOS(十七)--与Linux文件和目录管理相关的一些重要命令①
- 关于Linux备份文件和应用的几个命令:tar和cp
- Linux基础命令:文本处理工具之sort