1 / 9

Linux Filesystem

Linux Filesystem. WeeSan Lee. Roadmap. Disk Partitions The Filesystem Filesystem Mouting & Umounting File Tree File Type File Permission. Disk Partitions. Logical disk 4 primary partitions Can be extended by extended partition To display $ fdisk –l To partition $ fdisk /dev/sda

ratana
Download Presentation

Linux Filesystem

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 Filesystem WeeSan Lee

  2. Roadmap • Disk Partitions • The Filesystem • Filesystem Mouting & Umounting • File Tree • File Type • File Permission

  3. Disk Partitions • Logical disk • 4 primary partitions • Can be extended by extended partition • To display • $ fdisk –l • To partition • $ fdisk /dev/sda • m help • p display partition info • n new a partition • d delete a partition • l list known partition type • t change partition id

  4. Filesystem • A method for storing and origanizing files on Linux/Unix • For example • / • bin • usr

  5. Filesystem Mouting & Umounting • To mount a filesystem to a mount point • $ mount /dev/sda2 /import • /etc/fstab • mount –a • To umount a filesystem • $ umount /import • To find who is using the resource • $ fuser –mv /mnt • To find out what’s currently mounted • $ mount • $ cat /etc/mtab

  6. File Tree • /bin • /boot • /dev • /etc • /home • /lib • /root • /sbin • /usr • /usr/local • /var • /tmp • /import

  7. File Type • 7 types • Regular file • $ find -print0 | xargs -0 rm • $ find public_html -size +4M -print0 | xargs -0 ls -l • Directory • . • .. • Character device file • Block device file • Unix socket • Name pipe • Symbol link • $ ln -s old new

  8. File Permission • ls -t -r –h • setuid, setgid, sticky • chown • chgrp • chmod • -rwxrwxrwx • umask

  9. Reference • LAH • Ch 5: The Filesystem

More Related