Skip to content
Snippets Groups Projects
Commit aa8bf925 authored by Ing. Michal Svamberg's avatar Ing. Michal Svamberg
Browse files

Merge branch 'zig' of https://gitlab.cesnet.cz/702/provoz/nccf into zig

parents 93bdbaba df86a042
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>
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
## Description
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment