The Linux have great features. One of them is Linux File permission. The storage options are provided and disc partition. Any new storage required to be in partition so that data can be easily manage. This tutorial describes about Linux File Permissions and storage with Partition with complete Details on AlmaLinux / Rocky Linux / Amazon Linux.

Linux File Permissions

File and Directory Attributes. Unix/Linux files have 8 attributes that can be seen with is –l command

# ls -l reports

Note : Only the owner or the root can change the permissions

Modifying the Permissions

Modifying the Permissions

# chmod <permissions/weight> <file/directory>

Changing the ownership Changing the ownership of a file or directory

# chown <username:groupname> <file/dir>

Linux Partition

Partitioning Tools Pre-installation tool

  • Disk Druid

Post-installation tools

  • Fdisk
  • Parted

View the List of Partitions. View the list of partitions

# fdisk –l <device name>

Disk Management Using fdisk


# fdisk <device name>

Disk Management

# fdisk /dev/had

The number of cylinders for this disk is set to 4865. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with:

  1. Software that runs at boot time (eg. , old version of LILO)
  2. Booting and partitioning software from other Oss (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help ) : m command action
a      toggle a bootable flag
d     delete a partition
m    print this menu
n     add a mew partition
p     print the partition table
q     quit without saving changes
w    write table to disk and exit

Updating the Partition table

Updating the Partition table without restarting

# partprobe <device name>

Format the partition using ext3 file system

# mkfs.ext3 <partition>

Same Formatting the partition using vfat file system

# mkfs. Vfat <partition>

Create a directory for mounting the partition

# mkdir <directory name>

Mounting the partition on the directory created

# mount <partition> <directory name>

Unmount the file system

# umount <directory name>

Congratulations now you have learned about Linux Disc Partitioning and Linux file Permission on AlmaLinux / Rocky Linux / Amazon Linux.