zim/modules/utility/README.md

49 lines
1.2 KiB
Markdown
Raw Normal View History

2015-12-16 00:49:15 +01:00
Utility
=======
2015-12-18 08:45:37 +01:00
Utility aliases and functions.
Adds colour to `ls` and `grep`.
2015-12-16 00:49:15 +01:00
Aliases
-------
2015-12-18 08:45:37 +01:00
### ls
| alias | command | description |
| ----- | ------- | ----------- |
| `ls` | `ls --group-directories-first --color=auto` | directories first, use color (applies to all ls aliases) |
| `l` | `ls -lAh` | all files, human-readable sizes |
2016-01-12 20:19:38 +01:00
| `lm` | `l | ${PAGER}` | all files, human-readable sizes, use pager |
2015-12-18 08:45:37 +01:00
| `ll` | `ls -lh` | human-readable sizes |
| `lr` | `ll -R` | human-readable sizes, recursive |
| `lx` | `ll -XB` | human-readable sizes, sort by extension (GNU only) |
| `lk` | `ll -Sr` | human-readable sizes, largest last |
| `lt` | `ll -tr` | human-readable sizes, most recent last |
| `lc` | `lt -c` | human-readable sizes, most recent last, change time |
### File Downloads
Aliases `get` to ( `aria2c` || `axel` || `wget` || `curl` ).
### Resource Usage
2015-12-16 00:49:15 +01:00
2015-12-16 23:51:11 +01:00
| alias | command |
| ----- | ------- |
2015-12-18 08:45:37 +01:00
| `df` | `df -kh` |
2015-12-16 23:51:11 +01:00
| `du` | `du -kh` |
2015-12-16 00:49:15 +01:00
2015-12-18 08:45:37 +01:00
### Condoms
2015-12-16 00:49:15 +01:00
2015-12-16 23:51:11 +01:00
| alias | command |
| ----- | ------- |
2015-12-18 08:45:37 +01:00
| `chmod` | `chmod --preserve-root -v` |
| `chown` | `chown --preserve-root -v` |
| `rm` | if available, `safe-rm` |
### Misc
| alias | description |
| ----- | ----------- |
| `mkcd` | mkdir and cd |