Linux file system
Directories | Purpose |
/usr | This is where most executable binaries, the kernel source tree and much documentation gp |
/var | This is where spool directories such as those for mail and pronting go. It also contains the error log directory |
/tmp | Temporary data files stored by apps |
/boot | Where your kernel images and boort loader configuration go |
/home | This is where users home directories go |
fstab static file system information
cat etc/fstab
Partition utilisation
df disk free
df -h
Mount point
The mount command attaches a file system to a mount point
Remount /usr in read only
mount -o remount , ro /usr
Mount all file system in /etc/fstab
mount -a
File and directory commands
Command | Description |
ls | List the content of a directory |
cd | Change directory |
mkdir | Create directory |
rmdir | Remove directory |
cp | Copy file |
mv | Move file |
rm | Remove file |
pwd | Print the present directory |
file | Print the presumed type of a file |
chmod | Change the permission attributes of a file |