Andrew McDonough

Please note: This page is imported from my wiki, which hasn't been updated in over 10 years. Some of the formatting was lost during the import. I'll try to get around to fixing it someday.

Linux Filesystems

Finding available disks: fdisk -l

Mounting partitions: Devices are found in /dev and are often mounted into ‘mount points’ in the /mnt directory using the mount command:

mount -t e.g. mount /dev/hda1 /mnt/hda1 mount -t ntfs /dev/hdb1 /mnt/hdb1 mount -t smb -o username=someuser,password=somepassword //192.168.0.13/path /mnt/something

smb mounts are windows network mounts

Managing Disk Space

df - displays disk information\ du - show disk use of a directory. du -s recurses though subdirectories\

du -s -k * | sort -n


Andrew McDonough

Andrew McDonough is a consultant CTO and software developer, currently based between Berlin and London.

Follow Andrew on Twitter or Connect on LinkedIn