If your Bash script calls for 3 arguments, here’s how to check it.
if [ "$#" -ne 3 ] then echo "Usage: ./script.sh project diskname policy" exit fi |
You can adjust -ne 3 to any number based on the number of required arguments.
cloud engineer
If your Bash script calls for 3 arguments, here’s how to check it.
if [ "$#" -ne 3 ] then echo "Usage: ./script.sh project diskname policy" exit fi |
if [ "$#" -ne 3 ] then echo "Usage: ./script.sh project diskname policy" exit fi
You can adjust -ne 3 to any number based on the number of required arguments.
iotop is a Linux command similar to top but instead of CPU and memory it will display and monitor your disk IO usage.
To install, run the following command based on your Linux ditro.
yum install iotop apt install iotop dnf install iotop |
yum install iotop apt install iotop dnf install iotop
To use.
iotop
iotop -o |
iotop iotop -o
Output: