Introduction to Linux
Popularity Report
![]() |
|||
![]() |
|||
![]() |
|||
![]() |
|||
![]() |
|||
![]() |
Bookmark History
Saved by 3 people (0 private), first by anonymouse user on 2006-07-24
- Parthbakshi on 2008-04-08 - Tags linux , intro
- Djiezes on 2008-03-19 - Tags article , guide , help , howto , linux , tutorial
- S41902usa on 2006-07-24 - Tags imported:del.icio.us , system:unfiled
Public Sticky notes
When non-critical data is separated on different partitions, it usually happens following a set pattern:
a partition for user programs (/usr)
a partition containing the users' personal data (/home)
a partition to store temporary data like print- and mail-queues (/var)
a partition for third party and extra software (/opt)
Highlighted by djiezes
Highlighted by djiezes
Highlighted by djiezes
Table 3-2. Subdirectories of the root directory
| Directory | Content |
|---|---|
| /bin | Common programs, shared by the system, the system administrator and the users. |
| /boot | The startup files and the kernel, vmlinuz. In some recent distributions also grub data. Grub is the GRand Unified Boot loader and is an attempt to get rid of the many different boot-loaders we know today. |
| /dev | Contains references to all the CPU peripheral hardware, which are represented as files with special properties. |
| /etc | Most important system configuration files are in /etc, this directory contains data similar to those in the Control Panel in Windows |
| /home | Home directories of the common users. |
| /initrd | (on some distributions) Information for booting. Do not remove! |
| /lib | Library files, includes files for all kinds of programs needed by the system and the users. |
| /lost+found | Every partition has a lost+found in its upper directory. Files that were saved during failures are here. |
| /misc | For miscellaneous purposes. |
| /mnt | Standard mount point for external file systems, e.g. a CD-ROM or a digital camera. |
| /net | Standard mount point for entire remote file systems |
| /opt | Typically contains extra and third party software. |
| /proc | A virtual file system containing information about system resources. More information about the meaning of the files in proc is obtained by entering the command man proc in a terminal window. The file proc.txt discusses the virtual file system in detail. |
| /root | The administrative user's home directory. Mind the difference between /, the root directory and /root, the home directory of the root user. |
| /sbin | Programs for use by the system and the system administrator. |
| /tmp | Temporary space for use by the system, cleaned upon reboot, so don't use this for saving any work! |
| /usr | Programs, libraries, documentation etc. for all user-related programs. |
| /var | Storage for all variable files and temporary files created by users, such as log files, the mail queue, the print spooler area, space for temporary storage of files downloaded from the Internet, or to keep an image of a CD before burning it. |
Highlighted by djiezes
For convenience, the Linux file system is usually thought of in a tree structure. On a standard Linux system you will find the layout generally follows the scheme presented below.
Highlighted by djiezes
Highlighted by djiezes
Highlighted by djiezes
Highlighted by djiezes
Linux generally counts on having twice the amount of physical memory in the form of swap space on the hard disk. When installing a system, you have to know how you are going to do this. An example on a system with 512 MB of RAM:
1st possibility: one swap partition of 1 GB
2nd possibility: two swap partitions of 512 MB
3rd possibility: with two hard disks: 1 partition of 512 MB on each disk.
The last option will give the best results when a lot of I/O is to be expected.
Highlighted by djiezes
Highlighted by djiezes
Highlighted by djiezes
Highlighted by djiezes
Highlighted by djiezes
Highlighted by djiezes
Some commands have multiple man pages. For instance, the passwd command has a man page in section 1 and another in section 5. By default, the man page with the lowest number is shown. If you want to see another section than the default, specify it after the man command:
man 5 passwd
If you want to see all man pages about a command, one after the other, use the -a to man:
man -a passwd
Highlighted by djiezes
Table 3-1. File types in a long list
| Symbol | Meaning |
|---|---|
| - | Regular file |
| d | Directory |
| l | Link |
| c | Special file |
| s | Socket |
| p | Named pipe |
| b | Block device |
Highlighted by djiezes
Highlighted by djiezes
Highlighted by djiezes
Highlighted by djiezes
Highlighted by djiezes
Highlighted by djiezes
Highlighted by djiezes
Highlighted by djiezes
Highlighted by djiezes
Highlighted by djiezes
Highlighted by djiezes
Highlighted by djiezes
Highlighted by djiezes
Highlighted by djiezes
Highlighted by djiezes
Highlighted by djiezes
Highlighted by djiezes
Highlighted by djiezes
Highlighted by djiezes
Highlighted by djiezes
Highlighted by djiezes
Color-ls default color scheme
| Color | File type |
|---|---|
| blue | directories |
| red | compressed archives |
| white | text files |
| pink | images |
| cyan | links |
| yellow | devices |
| green | executables |
| flashing red | broken links |
Highlighted by djiezes



Public Comment