README.md 2.3 KB
Newer Older
B
Ben S 已提交
1
# exa [![Build status](https://travis-ci.org/ogham/exa.svg)](https://travis-ci.org/ogham/exa)
B
Ben S 已提交
2

B
Ben S 已提交
3
[exa](http://bsago.me/exa) is a replacement for `ls` written in Rust.
B
Ben S 已提交
4

B
Ben S 已提交
5 6
**You'll have to use the nightly, rather than Rust beta. Sorry about that.**

B
Ben S 已提交
7

B
Ben S 已提交
8
## Screenshot
B
Ben S 已提交
9 10

![Screenshot of exa](https://raw.githubusercontent.com/ogham/exa/master/screenshot.png)
B
Ben S 已提交
11

B
Ben S 已提交
12 13

## Options
B
Ben S 已提交
14

B
Ben S 已提交
15
- **-1**, **--oneline**: display one entry per line
B
Ben S 已提交
16 17
- **-a**, **--all**: show dot files
- **-b**, **--binary**: use binary (power of two) file sizes
B
Ben S 已提交
18
- **-B**, **--bytes**: list file sizes in bytes, without prefixes
B
Ben S 已提交
19
- **-d**, **--list-dirs**: list directories as regular files
B
Ben S 已提交
20
- **-g**, **--group**: show group as well as user
B
Ben S 已提交
21
- **--group-directories-first**: list directories before other files
P
Pascal Hertleif 已提交
22
- **--git**: show git status (depends on libgit2, see below)
B
Ben S 已提交
23
- **-h**, **--header**: show a header row
B
Ben S 已提交
24
- **-H**, **--links**: show number of hard links column
B
Ben S 已提交
25
- **-i**, **--inode**: show inode number column
B
Ben S 已提交
26
- **-l**, **--long**: display extended details and attributes
B
Ben S 已提交
27 28
- **-L**, **--level=(depth)**: maximum depth of recursion
- **-m**, **--modified**: display timestamp of most recent modification
B
Ben S 已提交
29
- **-r**, **--reverse**: reverse sort order
30
- **-R**, **--recurse**: recurse into subdirectories
B
Ben S 已提交
31
- **-s**, **--sort=(field)**: field to sort by
B
Ben S 已提交
32
- **-S**, **--blocks**: show number of file system blocks
B
Ben S 已提交
33
- **-t**, **--time=(field)**: which timestamp to show for a file
B
Ben S 已提交
34
- **-T**, **--tree**: recurse into subdirectories in a tree view
B
Ben S 已提交
35 36
- **-u**, **--accessed**: display timestamp of last access for a file
- **-U**, **--created**: display timestamp of creation of a file
B
Ben S 已提交
37
- **-x**, **--across**: sort multi-column view entries across
B
Ben S 已提交
38
- **-@**, **--extended**: display extended attribute keys and sizes
B
Ben S 已提交
39

B
Ben S 已提交
40
You can sort by **name**, **size**, **ext**, **inode**, **modified**, **created**, **accessed**, or **none**.
B
Ben S 已提交
41

B
Ben S 已提交
42 43

## Installation
B
Ben S 已提交
44

45
exa is written in [Rust](http://www.rust-lang.org). You'll have to use the nightly -- I try to keep it up to date with the latest version when possible.  Once you have it set up, a simple `make install` will compile exa and install it into `/usr/local/bin`.
B
Ben S 已提交
46 47

exa depends on [libgit2](https://github.com/alexcrichton/git2-rs) for certain features. If you're unable to compile libgit2, you can opt out of Git support by passing `--no-default-features` to Cargo.