diff --git a/category/get_disk_info.py b/category/get_disk_info.py index 634cc86f780353f764ca5c0c5be9870efaed5c9a..f3a1deb5e426cc870ec6d5392ba024fcf819afb5 100644 --- a/category/get_disk_info.py +++ b/category/get_disk_info.py @@ -25,4 +25,13 @@ class DiskInfo: res_blkid = FileOperation.wrap_output_format(cmd_name, cmd_result, '=') res_all = res_fdisk + res_blkid - return Command.cmd_write_file(res_all, self.__default_file_name) \ No newline at end of file + return Command.cmd_write_file(res_all, self.__default_file_name) + + def __get_df_h_info(self): + ''' + exec df -h + ''' + df_h_command="df -h" + cmd_result = Command.cmd_run(df_h_command) + cmd_name = df_h_command + return Command.cmd_output(cmd_name, cmd_result, self.__default_file_name, '=') \ No newline at end of file