Linux Example | Get Linux Version

Linux Example | Get Linux Version

December 31, 2021 notehope 0

This linux example shows how to chek linux version. Using hostnamectl command hostnamectl We will see: Static hostname: localhost.localdomain Icon name: computer-server Chassis: server Machine […]

Python Example | Hex Bytes to String

Python Example | Hex Bytes to String

December 30, 2021 notehope 0

This python example code introduces how to convert python hex bytes to string. bytesObj = b’\x68\x65\x6C\x6C\x6F’ string = bytesObj.decode(‘utf-8’) print(string) You will get: hello

Python Example | Bytes to String

Python Example | Bytes to String

December 30, 2021 notehope 0

This python example shows how to convert python byte to string. bytesObj = b’52s3a6′ string = bytesObj.decode(‘utf-8’) print(string) We will get: 52s3a6