vesta/bin/v-list-sys-disk-status
2015-11-06 17:38:58 +02:00

41 lines
1.0 KiB
Bash
Executable File

#!/bin/bash
# info: list disk information
# options: [FORMAT]
#
# The function lists disk information
#----------------------------------------------------------#
# Variable&Function #
#----------------------------------------------------------#
# Argument definition
#format=${1-shell}
# Includes
#source $VESTA/func/main.sh
#----------------------------------------------------------#
# Action #
#----------------------------------------------------------#
# Displaying disk usage
df -h
echo -en "\n-------------------------------------"
echo -en "-------------------------------------\n\n"
# Displaying I/O usage
iostat -m
echo -en "\n-------------------------------------"
echo -en "-------------------------------------\n\n"
# Displaying disk information
fdisk -l
#----------------------------------------------------------#
# Vesta #
#----------------------------------------------------------#
exit