Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

ncdu exclude


As requested by @subtleseeker in comment, I will share how I exclude directories when doing ncdu command.

Basically ncdu has the same command line options as the du command, so to exclude a directory simply use:

--exclude /dir/path
For example: ncdu -x / --exclude /home/tmp

To exclude multiple directories: ncdu -x / --exclude /home/tmp --exclude /var/log

etc.

Note that you should avoid a trailing slash (use /home/tmp NOT /home/tmp/) otherwise it will fail to actually exclude the directory.
Comment

PREVIOUS NEXT
Code Example
Shell :: c# tostring 2 digit hex 
Shell :: remove docker completely orcal linx 
Shell :: apt-get update force ipv4 (fixes stuck ipv6) 
Shell :: linux open calc from the terminal 
Shell :: override dh_dwz 
Shell :: echo preserve  
Shell :: bash numbering odd filename 
Shell :: How to install u-torrent from a tar.gz on Kali Linux 
Shell :: hadoop get files 
Shell :: java scrip loop array 
Shell :: How to translate a string to md5 using bash 
Shell :: Install ppsspp Linux 
Shell :: install ambrella uml ubuntu 
Shell :: bash sequence 
Shell :: install mavros on ubuntu/debian 
Shell :: create raid5 linux 
Shell :: How to turn on ARD on mac using terminal 
Shell :: create json from console 
Shell :: unix sort du output by size 
Shell :: kubernetes short call 
Shell :: scala run shell command 
Shell :: gradle hash file not found 
Shell :: uninstall maps 
Shell :: create desktop icon for a zip installed program 
Shell :: Ubuntu username format 
Shell :: bash find files with word 
Shell :: install dlib on windows 
Shell :: firebase npm install "Enter authorization code" 
Shell :: github actions run shell script 
Shell :: adobe flash player linux 
ADD CONTENT
Topic
Content
Source link
Name
2+4 =