<commit_before>#
# The aim of this memo is to have in one place some useful commands about system
#        by Erwan 'Labynocle' <NAME>


# About Process
###############################################################################
# see the uptime all processes
ps -eo pid,comm,lstart,etime,time,args

# funny fork bomb (cf. /etc/security/limits.conf)
:(){ :|:& };:

# About File
###############################################################################
# size in octets of a given file
stat -c '%s' file.txt
# timestamp of the latest modifications of a given file
stat -c '%Y' file.txt 


<commit_msg>commands_memo :: update with udevadm example<commit_after>#
# The aim of this memo is to have in one place some useful commands about system
#        by Erwan 'Labynocle' <NAME>


# About Process
###############################################################################
# see the uptime all processes
ps -eo pid,comm,lstart,etime,time,args

# funny fork bomb (cf. /etc/security/limits.conf)
:(){ :|:& };:

# About File
###############################################################################
# size in octets of a given file
stat -c '%s' file.txt
# timestamp of the latest modifications of a given file
stat -c '%Y' file.txt 

# About Device
###############################################################################
# get data about USB device 
udevadm info --query=all -n /dev/sdg

{'fraction_non_alphanumeric': 0.35790219702338766, 'fraction_numerical': 0.0, 'mean_word_length': 5.303571428571429, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3372082', 'n_tokens_mistral': 384, 'n_tokens_neox': 360, 'n_words': 140}