FacultyUnixFileSystems
From UoWiki
Contents |
[edit] Today (23rd December 2002) We talked about File Systems.
[edit] Commands we used today:
- df : display filesystems
- du : disk usage
- ls -sk : lists directory contents, the -sk perameters shows files in kilobytes
- du -sh : same as above, but -sh shows how big everything in a directory is and the -h flag shows it in human readable form.
These commands are useful for diagnosing why your disk is full.
[edit] We also talked about:
- partitions
- offsets
- disknames (ad0 - was our first disk)
- disk geometry
- slices
- file system types such as UFS (Unix File System), Berkley FFS (Fast File System) and the EXT2FS (or EXT3FS) Linux file system that has been in beta for years.
what a swap partition is:
you load programmes off your disk into memory and you run them. If you have programmes that are bigger than the memory available, it takes what was in ram, it triages the data it needs into memory, and shoves the rest into disk space.
Bruce is the person to speak to about swap. - disk fragmentation. etc.. are problems with this method.
[edit] A working example from phear (incomplete)
/ - this is root - everythign goes here proportion - really small 128M max
/var - logs, mailspools, crash data, ls things that change basically. Variable data - should be between 20M and 2Gig.
/tmp - temporary data. This is a wierd one because it's - depending how big your temporary files are - between 256M and this is a shared area (this is a bad idea really) it may be better to make directoyr in your hope directory called .tmp and write all temporary data there instead by setting your $TEMP variable to .tmp. It should be about 2Gig
/usr - stuff which is too big to fit into / as big as it can be
/home - where the users live
all of this information is available if you type man -hier (show manual entry for hierarchy.)
