User Tools

Site Tools


linux_notes

This is an old revision of the document!


tasks

remove large directories

Use rsync to delete large directories.

mkdir empty_dir
rsync -a --delete empty_dir/    yourdirectory/

As per https://unix.stackexchange.com/questions/37329/efficiently-delete-large-directory-containing-thousands-of-files, it is more efficient than running “rm -rf” or some combination of find + “rm -rf”.

stackoverflow answers I came across

get file modified time in shell script

tput: unknown terminal "xterm-256color"

To fix

tput: unknown terminal "xterm-256color"

I did

conda install --force-reinstall ncurses

Ref:- https://stackoverflow.com/questions/32798940/tput-unknown-terminal-xterm-256color

linux_notes.1664843581.txt.gz · Last modified: 2022/10/04 00:33 by raju