Rename Process Name by Modifying cmdline in Linux
snippet
#!/usr/bin/env python3
import ctypes
from threading import get_ident
libc = ctypes.CDLL("libc.so.6")
libc.pthread_setname_np(
ctypes.c_ulong(get_ident()),
ctypes.c_char_p(b"process_name"))
© 2026 inferi
· credits
· cc by-sa 4.0