User Tools

Site Tools


utils_commands

This is an old revision of the document!


Useful commands

Data management

File and directory size

# du -sh /var/*

Disk usage

# df -h

Change permissions

Change directories permission:
$ find /path/to/base/dir -type d -exec chmod 755 {} +
Change files permission:
$ find /path/to/base/dir -type f -exec chmod 644 {} +

Change ownership

Owner:
$ chown owner_name * -R
Group:
$ chgrp group_name * -R

utils_commands.1588198866.txt.gz · Last modified: 2020/04/29 22:21 by xavier