Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
| user:yeti:opkg-list-user-installed-packages [2018/01/15 21:12] – yeti | user:yeti:opkg-list-user-installed-packages [2018/02/03 01:06] – [2018-01-16] yeti | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| ==== 2018-01-14 ==== | ==== 2018-01-14 ==== | ||
| - | <file awk opkg-list-user-installed-packages-sorted-by-size-20170114> | + | <file awk opkg-list-user-installed-packages-sorted-by-size-20180114> |
| # | # | ||
| BEGIN { | BEGIN { | ||
| Line 33: | Line 33: | ||
| ==== 2018-01-15 ==== | ==== 2018-01-15 ==== | ||
| - | <file awk opkg-list-user-installed-packages-sorted-by-size-20170115> | + | <file awk opkg-list-user-installed-packages-sorted-by-size-20180115> |
| # | # | ||
| BEGIN { | BEGIN { | ||
| Line 56: | Line 56: | ||
| :?: Should the size of the files in ''/ | :?: Should the size of the files in ''/ | ||
| + | |||
| + | ==== 2018-01-16 ==== | ||
| + | |||
| + | :?: Why '' | ||
| + | |||
| + | :?: Why '' | ||
| + | |||
| + | :!: Have a look: //(the example was run on Debian)// | ||
| + | < | ||
| + | $ du logs | ||
| + | 8 | ||
| + | 8 | ||
| + | 12 logs/ | ||
| + | 24 logs/refs | ||
| + | 32 logs | ||
| + | </ | ||
| + | The script only needs the summary of directories: | ||
| + | < | ||
| + | $ du -s logs | ||
| + | 32 logs | ||
| + | </ | ||
| + | If called with files and directories, | ||
| + | < | ||
| + | $ ls -ld description logs | ||
| + | -rw-r--r-- 1 yeti yeti 73 Mai 15 2017 description | ||
| + | drwxr-xr-x 3 yeti yeti 4096 Mai 15 2017 logs | ||
| + | $ du -s description logs | ||
| + | 4 | ||
| + | 32 logs | ||
| + | </ | ||
| + | As long as this script shall show no intermediate results, letting '' | ||