Skip to content
Snippets Groups Projects
Commit df86a042 authored by Ing. Michal Švamberg's avatar Ing. Michal Švamberg
Browse files

Doplneni README.md

parent 4d4f32fc
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,41 @@ SPDX-FileCopyrightText: 2021-2023 Yoran Heling <projects@yorhel.nl> ...@@ -3,6 +3,41 @@ SPDX-FileCopyrightText: 2021-2023 Yoran Heling <projects@yorhel.nl>
SPDX-License-Identifier: MIT SPDX-License-Identifier: MIT
--> -->
# nccf
## instalace zig prostředí
Nedělat na virtálním stroji, pouští se LLVM kompilátor a ten vyžaduje nějaký nevirtualizační procesor.
```
export PATH=$PATH:/snap/bin
snap install zig --classic --beta
apt install -y make libncurses-dev
```
## build
```
git clone https://gitlab.cesnet.cz/702/provoz/nccf.git
cd nccf
make
cp zig-out/bin/ncdu /tmp/nccf
```
## Jak použít s exclude
Chci pouze počítat soubory konkrétního uživatele, tzn. vše ostatní se musí excludovat:
```
find . \! -user nagios | cut -c 3- > /tmp/exclude.txt
nccf . -x -X /tmp/exclude.txt
```
## Uložit a načíst s kompresí
```
nccf . -x -o - | gzip > /tmp/out.nccf.gz
zcat /tmp/out.nccf.gz | nccf -r -f -
```
# ncdu-zig # ncdu-zig
## Description ## Description
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment