Explanation of UNIX filesystems

Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Explanation of UNIX filesystems
# 1  
Old 03-26-2001

Could someone please tell me where I can get an explanation of the UNIX filenames and there functions, e.g. /usr, /etc, /var .
# 2  
Old 03-26-2001
/: The Root Directory. Under UNIX-like system there is just one unified directory, with everything beginning at what is called the root directory. The root directory is symbolized by just a forward slash ("/"), with nothing following it. There are many directories hanging off of the root directory. The contents of the root filesystem should be adequate to boot, restore, recover, and/or repair the system.

/bin: contains commands that may be used by both the system administrator and by users, but which are required in single user mode. It may also contain commands which are used indirectly by scripts.

/sbin: Utilities used for system administration and maintenance. (and other root-only commands) are stored in /sbin.

/boot: is for anything which is used before the kernel execs /sbin/init. This includes saved master boot sectors, sector map files, and anything else that is not directly edited by hand.

/dev Where special files are kept. Special files represent input/output (i/o) devices, like a tty (terminal), a disk drive, or a printer. Because Unix treats such devices as files. /dev also contains a script named MAKEDEV which can create devices as needed. It may also contain a MAKEDEV.local for any local-only devices

/etc: System configuration files and directories. (startup scripts configuration files for networking etc..)

/usr: /usr is shareable, read-only data. it mybe shared with other machines with the same architecture and operating system version. and most of the root directory structure is mirrored here.
--- /usr/bin: most user commands
--- /usr/local: local software
--- /usr/dict: Word lists
--- /usr/etc: Site-wide system configuration
--- /usr/include: Directory for standard include files.
--- /usr/lib: Libraries for programming and packages
--- /usr/man: Manual pages
--- /usr/sbin: Non-essential standard system binaries
--- /usr/share: Architecture-independent data
--- /usr/src: Source code

/lib: Essential shared libraries and kernel modules.

/proc: information about processes. storage and retrieval of process information as well as other kernel and memory information.

/var: material which is necessarily per-machine. Contains variable data files. This includes spool directories and files, administrative and logging data
--- /var/adm: adminstrative materials (System logging and accounting files)
--- /var/log: Contains miscellaneous log files. Most logs should be written to this directory or an appropriate subdirectory.
--- /var/spool: is traditionally used for machine-local data being spooled to or from UNIX subsystems. print jobs are spooled here for delivery to the lineprinter daemon, mail is spooled for delivery to remote systems, and UUCP files are spooled for transmission. In-bound mail and news are spooled here for delivery to users, and at and cron jobs are spooled for delayed execution by the cron daemon.

/root: is the home directory for the superuser root. It usually contains things that concern system administration that don't belong in public view, and has read priviledges only for the root user and other administration accounts.

/home: home directories for users. Each user has a username and a directory in /home with that username to use as their home directory. They can place any kind of files there, and set up permissions to allow exactly whom they wish to see their data.

/tmp: temporary files (system scratch files all users can write here).

/lost+found: is used for any pieces of files system can't identify when it cleans up the filesystem(fsck). If you lose some data mysteriously, check here.

/mnt: is just such a temporary mount point. Sometimes it has subdirectories for the different types of filesystems which can be mounted there.

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

FileSystems under HACMP

Dear Fellows, I'm now working under a HACMP Cluster (version 7.1) with 2 nodes (Node1 active / Node2 passive), and 1 Resource Group on active node (Node1), which is UNMANAGED for boths nodes. So, all VG Data are on Node1. Then I had a JFS2 FileSystem full (located on one of these VG Data... (8 Replies)
Discussion started by: LoLo92
8 Replies

2. Solaris

Clustering filesystems

SunOS 5.10 Generic_142900-15 sun4u sparc SUNW,SPARC-Enterprise How can I tell if "clustering" is being used in my shop? I have to file systems that are identical. These filesystems are nfs mounted. But how can I tell if they are being kept in sync as a result of clustering or some other... (2 Replies)
Discussion started by: Harleyrci
2 Replies

3. Shell Programming and Scripting

filesystems > 70%

I need a scrip that will show me the filesystems that are greater than 70%...but not sure how to filter using the df -h | grep Thank you for your help!! (6 Replies)
Discussion started by: eponcedeleonc
6 Replies

4. Shell Programming and Scripting

Explanation reqd for the Unix file

Hi, I have a unix file with the following contents #/usr/bin/sh cd /ct/mr/prod/bin ncm_AdjCob.pl -a /ct/mr/prod/wg/applog_AdjDev.log -c /ct/mr/prod/lib/config/bcmp_AdjDevCob.conf -s /ct/mr/prod/log/syslog can anyone explain what it says. particularly -a ,-c... (5 Replies)
Discussion started by: psthariharan
5 Replies

5. UNIX for Dummies Questions & Answers

mounted filesystems

how to check the record of previously mounted remote filesystems after the filesystems are unmounted .operating system is solaris 10 (0 Replies)
Discussion started by: ravijanjanam12
0 Replies

6. UNIX for Advanced & Expert Users

resize filesystems

Dear All We have HP9000 rp7400 Server running with hp-ux 11i. Our Disk storage has two volume groups and are allocated as follows: 1. /#vgdisplay -v --- Volume groups --- VG Name /dev/vg00 VG Write Access read/write VG Status available... (1 Reply)
Discussion started by: mhbd
1 Replies

7. Shell Programming and Scripting

Filesystems GT 95%

Hi How can I only print the file systems that are more than 95% full. I used the df -k output and tried to check for each file system and then print only the ones that meet the criteria... But my solution seems cloodgie ... (3 Replies)
Discussion started by: YS2002
3 Replies

8. UNIX for Advanced & Expert Users

filesystems resizing

I want to resize my filesystem partitions. Reason is that I have 11GB of disk space unused by Unix which divvy reveals. Is there a way I could resize my filesystems without doing a reinstallation. The secondary problem is that the boot image is too large for a diskette (5MB). I'm running SCO... (10 Replies)
Discussion started by: sshokunbi
10 Replies

9. UNIX for Advanced & Expert Users

The /proc Filesystems

Anyone know what the difference between the /proc filesystems under Linux and SunOS? Thanx In Advance! -Lola (1 Reply)
Discussion started by: Sparticus007
1 Replies

10. UNIX for Advanced & Expert Users


my partner change the server's ip address and now i can't to mount the oracle's filesystem, what i do? i don't want to reinstall Unix. My unix is SCO UNIX 5.0.5 (9 Replies)
Discussion started by: marun
9 Replies
Login or Register to Ask a Question