Disk : Make functions an alias to fix scripts that rely on du/df.
This commit is contained in:
parent
b5ccc453c9
commit
a80f40882b
|
@ -1,11 +1,7 @@
|
|||
# Show only physical drives info.
|
||||
function df() {
|
||||
/usr/bin/df --si | sed -e '1p' -e "/^\/dev\//!d"
|
||||
}
|
||||
alias df="/usr/bin/df --si | sed -e '1p' -e '/^\/dev\//!d'"
|
||||
|
||||
# Show combined size in SI.
|
||||
# Current dir by default.
|
||||
# Usage: du [DIRS]
|
||||
function du() {
|
||||
/usr/bin/du -sh --si -- "${@}"
|
||||
}
|
||||
alias du="/usr/bin/du -sh --si"
|
||||
|
|
|
@ -104,13 +104,6 @@ Command|Description
|
|||
`dconf_load`|Load Gnome settings.
|
||||
`dconf_save [FILE]`|Dump Gnome settings into the file. Default name is `gnome.dconf`. Do this before changing settings and after, an then run `diff` to find out what to add to the main `gnome.dconf`.
|
||||
|
||||
## Disk.
|
||||
|
||||
Command|Description
|
||||
---|---
|
||||
`df`|Show only physical drives info.
|
||||
`du [DIRS]`|Show combined size in SI. Current dir by default.
|
||||
|
||||
## Docker.
|
||||
|
||||
Command|Description
|
||||
|
|
Reference in a new issue