os

 1import os
 2import binascii
 3
 4# (sysname='esp32', nodename='esp32', release='1.24.1', version='6307625 on 2025-08-29', machine='Generic ESP32 module with ESP32')
 5if hasattr(os, "uname"):
 6    print(os.uname())
 7else:
 8    print("os no uname")
 9
10print(binascii.hexlify(os.urandom(3)).decode())
11
12# /
13print(os.getcwd())
14
15# []
16print(os.listdir(os.getcwd()))
17
18# ENODEV
19try:
20    os.mkdir("/hello")
21except Exception as e:
22    print(e)
23
24# f_bsize
25# (16384, 0, 0, 0, 0, 0, 0, 0, 0, 0)
26print(os.stat(os.getcwd()))
27
28# (0, 0, 0, 0, 0, 0, 0, 0, 0, 128)
29print(os.statvfs(os.getcwd()))