mirror of
https://github.com/serghey-rodin/vesta.git
synced 2024-12-11 06:40:47 -08:00
41 lines
1.0 KiB
Bash
Executable File
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
|