Connect with us

Hi, what are you looking for?

Linux

Linux File Permissions and Disc Partition on CentOS 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
[root@techbrown~]# ls -l reports

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

Modifying the Permissions

Modifying the Permissions
[root@techbrown~]# chmod <permissions/weight> <file/directory>
Changing the ownership
Changing the ownership of a file or directory
[root@techbrown~]# 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
[root@techbrown~]# fdisk –l <device name>
Disk Management Using fdisk
Disk Management
[root@techbrown~]# fdisk <device name>
Disk Management
[root@techbrown~]# 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
[root@techbrown~]# partprobe <device name>
Formatting
Formatting the partition using ext3 file system
[root@techbrown~]# mkfs.ext3 <partition>
Formatting the partition using vfat file system
[root@techbrown~]# mkfs. Vfat <partition>
Mounting
Create a directory for mounting the partition
[root@techbrown~]# mkdir <directory name>
Mounting the partition on the directory created
[root@techbrown~]# mount <partition> <directory name>
Unmount the file system
[root@techbrown~]# 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.

Advertisement. Scroll to continue reading.
Comments
Advertisement
Advertisement

Linux

DNF stands Dandified YUM and this is the default package manager for RHEL 8 / CentOS 8.  This tutorial explains you how to create...

Linux

If you forget a root password of your RHEL 8 and CentOS 8 and want to reset the password so that the RHEL 8...

Windows

How to auto upgrade JioFi firmware for JioFi 2 / JioFi 3 / JioFi 4 / JioFi 5 / JioFi 6 and other JioFi...

Linux

How to Upgrade WordPress Server from Ubuntu 16.04 to Ubuntu 18.04. Right now, Ubuntu 18.04 has been released with tons of new features. Upgrading...

Linux

How to Enable TLS 1.3 on Nginx Web Server. Nginx is a ultra fast web server optimized for modern web applications and servers. TLS...

Advertisement

You May Also Like

Windows

How to auto upgrade JioFi firmware for JioFi 2 / JioFi 3 / JioFi 4 / JioFi 5 / JioFi 6 and other JioFi...

Windows

How to download and install the Mobile Intel 4 Series Express Chipset Graphics Drivers for Windows 10.  Windows 10 is the one of the...

Windows

Internet is the most important public network for connecting to the WEB. For internet connection requirement the ISP is required as well as it...

Windows

How to Install and Configure PCSX2 on Windows 10. The Windows 10 is the most recommended operating system for the Games. In stream platform...