|
Member
Registered: Sep 2006
Location: Nagpur, Maharashtra, India
Distribution: Debian, Ubuntu, Redhat, Fedora, SLES, OpenSUSE, FreeBSD, Mac OS X
Posts: 221
Rep:
|
Displaying the Partitions & File-System
Hello all,
I intend to write a shell script that will display the partitions & the respective file-systems. So I am planning to write a Shell Script as given below:
#!/bin/bash
fdisk /dev/sda
But My problem is that when I execute the above script, I am required to enter the "p" manually to display the partition table How can I automate that so that I don't need to enter "p" manually.
|