smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.4.0-122-generic] (local build) Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION === Model Family: Samsung based SSDs Device Model: Samsung SSD 850 EVO 250GB Serial Number: S3LCNF0J807262K LU WWN Device Id: 5 002538 d42253d35 Firmware Version: EMT03B6Q User Capacity: 250,059,350,016 bytes [250 GB] Sector Size: 512 bytes logical/physical Rotation Rate: Solid State Device Form Factor: 2.5 inches Device is: In smartctl database [for details use: -P show] ATA Version is: ACS-2, ATA8-ACS T13/1699-D revision 4c SATA Version is: SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s) Local Time is: Mon May 7 10:14:29 2018 CST SMART support is: Available - device has SMART capability. SMART support is: Enabled
3.如果使用下面的Python脚本来调用该命令的时候,是需要获得Root权限的
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/usr/bin/python # !-*- coding:utf8 -*-
import os
def main(): dir = "~/桌面/test.sh" result = os.system("sh ~/桌面/test.sh") # print result