Linux File System

Written by Tully on May 12, 2009 Categories: Linux Tags: , , , ,

Hardware Represented
by Files in /dev

Floppy Drive

/dev/fd0

SCSI CD-Rom
Drive

/dev/scd0

IDE CD-ROM
Drive

/dev/hdc (if the drive is the master IDE device on the
secondary IDE channel in the system)

Serial
Port

/dev/ttyS0

Parallel
Port

/dev/lp0

/etc/fstab

Lists the partitions and file systems that will be
automatically mounted when the system boots.

/etc/group

Contains local group definitions.

/etc/grub.conf

Contains configuration parameters for the GRUB bootloader
(assuming it’s being used on the system).

/etc/hosts

Contains a list of hostname-to-IP address mappings the
system can use to resolve hostnames.

/etc/inittab

Contains configuration parameters for the init process.

/etc/init.d/

A subdirectory that contains startup scripts for services
installed on the system. On a Fedora or Red Hat system, these are located in
/etc/rc.d/init.d.

/etc/modules.conf

Contains configuration parameters for your kernel modules.

/etc/passwd

Contains your system user accounts.

/etc/shadow

Contains encrypted passwords for your user accounts.

/etc/X11/

Contains configuration files for X Windows.

 

 

Linux File Types

Regular Files

These files are similar to those used by the file systems
of other operating systems–for example, executable files, OpenOffice.org
files, images, text configuration files, etc.

Links

These files are pointers that point to other files in the
file system.

FIFO’s

FIFO stands for First In First Out. These are special
files used to move data from one running process on the system to another. A
FIFO file is basically a queue where the first chunk of data added to the
queue is the first chunk of data removed from the queue. Data can only move
in one direction through a FIFO.

Sockets

Sockets are similar to FIFOs in that they are used to
transfer information between sockets. With a socket, however, data can move
bi-directionally.

 

Link Types

Hard – A hard link is a file that points directly to the
inode of another file. An inode stores basic information about a file in the
Linux file system, including its size, device,owner, and permissions. Because
the two files use the same inode, you can’t tell which file is the pointer and
which is the pointee after the hard link is created.

 

Symbolic – A symbolic link file also points to another file
in the file system. However, a file that is a symbolic link has its own inode.
Because the pointer file has its own inode, the pointer and the pointee in the
file system can be easily identified.

 

Backup Types

Full – In a full backup, all specified files are backed up,
regardless of whether or not they’ve been modified since the last backup. After
being backed up, each file is flagged as having been backed up.

 

Incremental – During an incremental backup, only the files
that have been modified since the last backup (full or incremental) are backed
up. After being backed up, each file is flagged as having been backed up.

 

Differential – During a differential backup, only the files
that have been modified since the last full backup are backed up. Even though
they have been backed up during a differential backup, the files involved are
NOT flagged as having been backed up.

 

 

 

No Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>