2018-05-16 20:05:55 -04:00
|
|
|
utility
|
2015-12-15 18:49:15 -05:00
|
|
|
=======
|
|
|
|
|
2015-12-18 02:45:37 -05:00
|
|
|
Utility aliases and functions.
|
|
|
|
|
2016-10-28 17:17:34 -04:00
|
|
|
Adds colour to `ls`, `grep` and `less`.
|
2015-12-15 18:49:15 -05:00
|
|
|
|
|
|
|
Aliases
|
|
|
|
-------
|
|
|
|
|
2015-12-18 02:45:37 -05:00
|
|
|
### ls
|
|
|
|
|
2018-05-16 20:05:55 -04:00
|
|
|
* `ls` lists directories first (GNU only) and with colour (applies to all aliases below).
|
|
|
|
* `ll` lists with long format and human-readable sizes (applies to all aliases below).
|
|
|
|
* `l` lists all files.
|
|
|
|
* `lm` lists all files using pager.
|
|
|
|
* `lr` lists recursively.
|
|
|
|
* `lx` lists sorted by extension (GNU only).
|
|
|
|
* `lk` lists sorted by largest file size last.
|
|
|
|
* `lt` lists sorted by newest modification time last.
|
|
|
|
* `lc` lists sorted by newest status change (ctime) last.
|
2015-12-18 02:45:37 -05:00
|
|
|
|
|
|
|
### File Downloads
|
|
|
|
|
2018-05-16 20:05:55 -04:00
|
|
|
* `get` is short for ( `aria2c` || `axel` || `wget` || `curl` ).
|
2015-12-18 02:45:37 -05:00
|
|
|
|
|
|
|
### Resource Usage
|
2015-12-15 18:49:15 -05:00
|
|
|
|
2018-05-16 20:05:55 -04:00
|
|
|
* `df` reports file system disk usage with human-readable sizes.
|
|
|
|
* `du` reports file disk usage with human-readable sizes.
|
2015-12-15 18:49:15 -05:00
|
|
|
|
2015-12-18 02:45:37 -05:00
|
|
|
### Condoms
|
2015-12-15 18:49:15 -05:00
|
|
|
|
2018-05-16 20:05:55 -04:00
|
|
|
* `chmod` changes file mode verbosely, not operating from `/` (GNU only).
|
|
|
|
* `chown` changes file owner verbosely, not operating from `/` (GNU only).
|
|
|
|
* `rm` uses `safe-rm` if available.
|
2015-12-18 02:45:37 -05:00
|
|
|
|
|
|
|
### Misc
|
|
|
|
|
2018-05-16 20:05:55 -04:00
|
|
|
* `mkcd` creates and changes to the given directory.
|