linux 常用命令ll 即 ls -l --color=auto
来源:互联网 发布:不一样的美男 知乎 编辑:程序博客网 时间:2024/06/08 05:56
1.linux系统运维或者开发中,经常会用到ll 即 ls -l --color=auto 命令.比如 ll -hF,
<span style="font-size:18px;">[doctor@localhost ~]$ ll -hF总用量 1.1Gdrwxrwxr-x. 2 doctor doctor 4.0K 1月 18 10:23 Documents/-rw-r-----. 1 doctor doctor 701M 12月 24 21:51 Far123-XP-2014.5c.isodrwxr-xr-x. 4 doctor doctor 4.0K 11月 30 16:00 hadoop/drwxrwxr-x. 6 doctor doctor 4.0K 12月 16 22:04 hbaseRootDir/drwxrwxr-x. 27 doctor doctor 4.0K 1月 17 11:16 opt/drwxrwxr-x. 2 doctor doctor 4.0K 8月 13 21:48 save/drwxrwxr-x. 2 doctor doctor 4.0K 1月 1 15:26 share/drwxrwxr-x. 3 doctor doctor 4.0K 1月 2 21:11 vmware/-rwxr-x--x. 1 doctor doctor 418M 12月 24 23:07 VMware-Workstation-Full-11.0.0-2305329.x86_64 (1).bundle*drwxrwxr-x. 3 doctor doctor 4.0K 12月 3 21:03 WebstormProjects/drwxrwxr-x. 4 doctor doctor 4.0K 12月 28 08:15 workspace/drwxrwxr-x. 4 doctor doctor 4.0K 10月 26 18:28 workspaceForWork/drwxrwxr-x. 7 doctor doctor 4.0K 1月 17 23:50 workspace-sts-3.6.2.RELEASE/drwxrwxr-x. 5 doctor doctor 4.0K 9月 25 01:25 zookeeper/drwxr-xr-x. 2 doctor doctor 4.0K 1月 18 20:05 公共/drwxr-xr-x. 2 doctor doctor 4.0K 10月 30 21:11 视频/drwxr-xr-x. 2 doctor doctor 4.0K 12月 7 23:04 图片/drwxr-xr-x. 4 doctor doctor 4.0K 12月 13 20:58 文档/drwxr-xr-x. 3 doctor doctor 12K 1月 18 10:46 下载/drwxr-xr-x. 3 doctor doctor 4.0K 8月 19 21:09 音乐/drwxr-xr-x. 2 doctor doctor 4.0K 12月 4 21:54 桌面/</span>
当然,为了方便,我们也可以利用别名像alias ll='ls -l --color=auto'
一样,定义一个别名:
<span style="font-size:18px;">[doctor@localhost ~]$ alias ll='ls -lhF --color=auto'[doctor@localhost ~]$ ll总用量 1.1Gdrwxrwxr-x. 2 doctor doctor 4.0K 1月 18 10:23 Documents/-rw-r-----. 1 doctor doctor 701M 12月 24 21:51 Far123-XP-2014.5c.isodrwxr-xr-x. 4 doctor doctor 4.0K 11月 30 16:00 hadoop/drwxrwxr-x. 6 doctor doctor 4.0K 12月 16 22:04 hbaseRootDir/drwxrwxr-x. 27 doctor doctor 4.0K 1月 17 11:16 opt/drwxrwxr-x. 2 doctor doctor 4.0K 8月 13 21:48 save/drwxrwxr-x. 2 doctor doctor 4.0K 1月 1 15:26 share/drwxrwxr-x. 3 doctor doctor 4.0K 1月 2 21:11 vmware/-rwxr-x--x. 1 doctor doctor 418M 12月 24 23:07 VMware-Workstation-Full-11.0.0-2305329.x86_64 (1).bundle*drwxrwxr-x. 3 doctor doctor 4.0K 12月 3 21:03 WebstormProjects/drwxrwxr-x. 4 doctor doctor 4.0K 12月 28 08:15 workspace/drwxrwxr-x. 4 doctor doctor 4.0K 10月 26 18:28 workspaceForWork/drwxrwxr-x. 7 doctor doctor 4.0K 1月 17 23:50 workspace-sts-3.6.2.RELEASE/drwxrwxr-x. 5 doctor doctor 4.0K 9月 25 01:25 zookeeper/drwxr-xr-x. 2 doctor doctor 4.0K 1月 18 20:05 公共/drwxr-xr-x. 2 doctor doctor 4.0K 10月 30 21:11 视频/drwxr-xr-x. 2 doctor doctor 4.0K 12月 7 23:04 图片/drwxr-xr-x. 4 doctor doctor 4.0K 12月 13 20:58 文档/drwxr-xr-x. 3 doctor doctor 12K 1月 18 10:46 下载/drwxr-xr-x. 3 doctor doctor 4.0K 8月 19 21:09 音乐/drwxr-xr-x. 2 doctor doctor 4.0K 12月 4 21:54 桌面/[doctor@localhost ~]$ alias alias egrep='egrep --color=auto'alias fgrep='fgrep --color=auto'alias grep='grep --color=auto'alias l.='ls -d .* --color=auto'alias ll='ls -lhF --color=auto'alias ls='ls --color=auto'alias vi='vim'alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'</span>
我这里是覆盖了系统的别名,shell 语法中不要出现空格,注意.
2.如何显示隐藏的文件呢,一般配置jdk等系统命令是要在.bash_profile .bashrc 中定义.
你可能想到ls -a,不过他也显示了其它目录.
可以用ls -d .* 只显示这些隐藏的目录.
0 0
- linux 常用命令ll 即 ls -l --color=auto
- Linux ls -l &ll
- linux下出现+ ls --color=auto -l --color=auto...++ echo -ne '\033]0;root@imon-2:~'等
- linux下出现+ ls --color=auto -l --color=auto...++ echo -ne '\033]0;root@imon-2:~'等
- Linux下ll命令与ls -l
- Linux ls -l ll ln介绍
- ls -l与ll
- Linux命令:ls -l(ll)结果解析
- Mac 命令行中的ll l ls -l
- linux ls和 ll 命令
- linux ls和 ll 命令
- linux ls和 ll 命令
- linux ls和 ll 命令
- linux ls和 ll 命令
- linux ls和 ll 命令
- linux ls和 ll 命令
- linux ls和 ll 命令
- linux ls和 ll 命令
- Android学习十---Android Camera
- Eclipse/MyEclipse安装svn插件
- 字节码指令集
- 索引的基础知识
- directshow之filter开发---ASYNC例程解析
- linux 常用命令ll 即 ls -l --color=auto
- Unity3D鼠标、键盘的操作
- Android入门之ActivityGroup + GridView 实现Tab分页标签
- Alamofire 使用教程
- JQuery图片轮播插件
- python学习
- 《暗时间》读书笔记及读后感(1)
- opengl环境搭建 (win7-32bit + vs2012 + freeglut + glew)
- boost库的编译总结