1 / 12

Linux File System (Advanced)

Linux File System (Advanced). More file details. All files in Linux are stored with the following meta-data, user owner, group owner, permissions, and timing information. This information is stored in a structure called an inode .

Télécharger la présentation

Linux File System (Advanced)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Linux File System(Advanced)

  2. More file details • All files in Linux are stored with the following meta-data, user owner, group owner, permissions, and timing information. This information is stored in a structure called an inode. • File names are stored in data-structures called dentries (directory entries). • Just like uids, the kernel only associates a file with it’s inode number. File names just human-readable about them. • We can examine a file’s inode information using:- • ‘ls -l’ • ‘ls -I’ • ‘stat’

  3. Dentry inode Simplified view of the Linux File System

  4. Linux File Types

  5. Timestamps

  6. Hard and soft links In Linux, we use links to point to existing files. To create a link, we use the ‘ln’ command. A hard link is created when multiple dentries are made to refer to the same inode. A soft link is created when a dentry to made to refer to another dentry. It does not point to the file’s inode.

  7. Hard Link Dentry Dentry

  8. Soft Link Dentry Dentry

  9. Comparison of Hard/Soft Links

  10. Disks All disks are located in the /dev directory. Disks can be formatted using ‘mkfs’. Latest Linux File System is ‘ext3’. All formatted disks have to be mounted on a known directory using the ‘mount’ command before we can access them. To unmount a disk, we have to perform a ‘umount’. The ‘df’ command shows disk usage across all mounted disk on the system.

  11. File locating tools To quickly locate a file, we can use the ‘locate’ command. This causes a database to be accessed to give quick results. However, if your file is very new, this command will not work. You have to cause the database to be updated using ‘updatedb’ command. The ‘find’ command conducts a real-time search of the file system. It can take a while for the command to complete.

  12. Data compression/archival tools We use either ‘gzip’,‘bzip2’ or ‘tar’. Of the above three, bzip2 compression algorithm is the most efficient.

More Related