[Linux] Useful Linux File System commands
Hi guys,
one of the most important tasks of a Linux System Administrator is to manage File Systems. In this article, I’ll show you some of the most useful commands (IMHO) that I use everyday.
List all mapped file systems
df -h
Calculate size of a certain type of file in the current directory
du -ch ./*.dmp | grep total
List the 10 biggest files and/or directories in the current directory:
du -hs * | sort -hs | tail -10
Find and zip files older than X days
find . -name '*.log' -mtime +1 -exec gzip