To find the largest files and directories on a linux server, type the command bellow… and grab a cup of coffee afterwards. Change head -n $top_num to your liking to get the top x files and/or directories.
1 |
du -a / | sort -n -r | head -n 5 |
To find the largest files and directories on a linux server, type the command bellow… and grab a cup of coffee afterwards. Change head -n $top_num to your liking to get the top x files and/or directories.
1 |
du -a / | sort -n -r | head -n 5 |
Find files or directories owned by user/group and permission bits Find all files not owned by user
1 |
find dirPath ! -user {user-name} |
Find all files not owned by group
1 |
find dirPath ! -group {group-name} |
Find all files that don’t have specific permissions
1 |
find dirPath ! -perm {perm-bits} |
Examples: Find all files that don’t have 755 permissions
1 |
find dirPath ! -perm 755 |
Combine all parameters: Find all python files […]
When you create an image, take a screenshot, take a picture with your smartphone or your computer etc, that picture is tagged with some metadata which can be used to track your location or your identity. In which file types are these metadata applied? Image files (scanned documents too), audio files. What info are embeded in photos? […]