Skip to content

Support us

Authors: fire1ce | Created: 2021-09-02 | Last update: 2022-07-09

Files Handling

NCurses Disk Usage

Ncdu is a disk usage analyzer with an ncurses interface.

apt-get install ncdu

Delete Large File List - Argument list too long

find . -name '*'|xargs rm

Change permissions (chmod) to folders and files

find . -type d -exec chmod 755 {} +
find . -type f -exec chmod 644 {} +

Recursively chown user and group

chown -R user:group /some/path/here

Recursively chmod to 775/664

chmod -R a=,a+rX,u+w,g+w /some/path/here
          ^  ^    ^   ^ adds write to group
          |  |    | adds write to user
          |  | adds read to all and execute to all folders (which controls access)
          | sets all to `000`

Find UID/GID for user

id <username>

Comments