Linux File Permissions & Disc Partition on CentOS 7 / RHEL 7

Linux File Permissions and Partition with Details

Linux File Permissions

File and Directory Attributes
Unix/Linux files have 8 attributes that can be seen with is –l command
[[email protected]~]# ls -l reports

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

Modifying the Permissions

Modifying the Permissions
[[email protected]~]# chmod <permissions/weight> <file/directory>
Changing the ownership
Changing the ownership of a file or directory
[[email protected]~]# 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
[[email protected]~]# fdisk –l <device name>
Disk Management Using fdisk
Disk Management
[[email protected]~]# fdisk <device name>
Disk Management
[[email protected]~]# fdisk /dev/had

The number of cyliders for this disk is set to 4865.

There is nothing wrong with that, but this is larger than 1024, and couldin 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
[[email protected]~]# partprobe <device name>
Formatting the partition using ext3 file system
[[email protected]~]# mkfs.ext3 <partition>
Formatting the partition using vfat file system
[[email protected]~]# mkfs. Vfat <partition>
Create a directory for mounting the partition
[[email protected]~]# mkdir <directory name>
Mounting the partition on the directory created
[[email protected]~]# mount <partition> <directory name>
Unmount the file system
[[email protected]~]# umount <directory name>

Final Result

That`s all now, you have learned Linux Basic File Permissions and Partition with Details.You’re now ready to give the Linux Basic File Permissions and make Linux Partition on your Linux systems. Just Start the Linux Operating system and open the Linux Shell / Terminal / Console to see the action of the Linux Basic File Permissions and Partition. Ensure that the all the command must be is used perfectly with the Linux Shell / Terminal / Console. Enjoy the Linux Basic File Permissions and Partition on your Linux system. Any difficulties regarding the Linux Basic File Permissions and Partition use the comment section below for further Linux process.

Hot Right Now

Related Post