File System Management
# Disk partitioning
fdisk -l # List partitions
fdisk /dev/sda # Partition disk
mkfs.ext4 /dev/sda1 # Format partition
# Mount operations
mount /dev/sda1 /mnt # Mount filesystem
umount /mnt # Unmount
mount -a # Mount all in fstab
# File system maintenance
fsck /dev/sda1 # Check filesystem
tune2fs -l /dev/sda1 # View parameters
dumpe2fs /dev/sda1 # Detailed info
Permissions Management
# Change permissions
chmod 755 file # Octal notation
chmod u+x file # Symbolic notation
chown user:group file # Change ownership
# Special permissions
chmod u+s file # Set SUID
chmod g+s directory # Set SGID
chmod +t directory # Set sticky bit
# Access control lists
setfacl -m u:user:rwx file # Set ACL
getfacl file # View ACL