Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
28-Apr-14
Presenters Name
Agenda
What is FHS? Partitions File system & integrity Control access Symbolic link Root file system init levels shutdown
28-Apr-14
Presentation Name
/dev/sda First SCSI drive /dev/sdb Second SCSI drive /dev/sdc Third SCSI drive Up to 15 devices on a single bus
Presentation Name
Disk Partitions
Primary partitions
/dev/hda1 /dev/hda4 One of these is active Contains logical partitions Only one exists on a single physical disk
Extended partitions
Logical partitions
Typical Example
28-Apr-14
Presentation Name
Managing partitions
fdisk
fdisk [device] Try for man fdisk Try for /sbin/fdisk l /dev/hda
Mkfs
mkfs [-t fs_type] [fs_options] device Try for man mkfs Options for fs_type are ext2, msdos For fs_options c(check),-v ..
Mkswap
Mkswap device Try for man mkswap mkswap /dev/hda5
28-Apr-14
Presentation Name
du
fsck
fsck [options] [-t type] [fs-options] filesystems fsck /dev/hda1 fsck fv /dev/hda5
28-Apr-14
Presentation Name
Mount options
auto, defaults, user .
Dump frequency
1 for linux types 0 for others
Presentation Name
28-Apr-14
Presentation Name
Presentation Name
Symbolic modes
For chmod command Category User class Mode Description u g o a User Group Other All classes
operation
+ =
permission r w x X
28-Apr-14
Presentation Name
Setting up a Workgroup
28-Apr-14
Existing 3 or more users (project1..3) groupadd du2 usermod G du2 project1 (project2, project3) mkdir /home/du2 chgrp du2 /home/du2 chmod 770 /home/du2 chmod g+s,o+t /home/du2 su project1 cd /home/du2 touch file1 ls l file1 exit; su project2 cd /home/du2 rm file1
Presentation Name
chgrp
Chgrp [options] group-owner files
28-Apr-14
Presentation Name
28-Apr-14
Presentation Name
Presentation Name
28-Apr-14
Presentation Name
Shutdown
shutdown [options] time [warning message] shutdown r now shutdown r +5 System maintenance is required shutdown h 2:30 shutdown h now
28-Apr-14
Presentation Name
Summary
Partitions fdisk File systems mkfs Integrity df, du, fsck Control access chmod Links ln Locating locate, which, whatis Root file system initlevels - init
28-Apr-14
Presentation Name
FHS
28-Apr-14
Presentation Name