Chinaunix首页 | 论坛 | 博客
  • 博客访问: 311988
  • 博文数量: 75
  • 博客积分: 4010
  • 博客等级: 上校
  • 技术积分: 775
  • 用 户 组: 普通用户
  • 注册时间: 2005-12-18 22:18
文章分类

全部博文(75)

文章存档

2015年(2)

2014年(1)

2007年(8)

2006年(60)

2005年(4)

我的朋友
ls

分类: LINUX

2006-06-26 12:58:39

The following is a brief list of options commonly used with ls. Remember, you can view the full list by reading the ls man page (man ls).

  • -a (all) — Lists all files in the directory, including hidden files (.filename). The .. and . at the top of your list refer to the parent directory and the current directory, respectively.

  • -l (long) — Lists details about contents, including permissions (modes), owner, group, size, creation date, whether the file is a link to somewhere else on the system and where its link points.

  • -F (file type) — Adds a symbol to the end of each listing. These symbols include /, to indicate a directory; @, to indicate a symbolic link to another file; and *, to indicate an executable file.

  • -r (reverse) — Lists the contents of the directory in reverse sort order.

  • -R (recursive) — Lists the contents of all directories below the current directory recursively.

  • -S (size) — Sorts files by their sizes.

阅读(838) | 评论(0) | 转发(0) |
0

上一篇:Useful Keystrokes

下一篇:rm

给主人留下些什么吧!~~