https://linux.goffinet.org/administration/securite-locale/access-control-lists-acls-linux/
Permissions étendues.
getfacl /opt/partage # liste les ACLs
setfacl -m g:omega:rx /opt/partage # sette une permission pour un groupe ciblé
setfacl -m u:alfa:rwx /opt/partage # sette une permission pour un user ciblé
setfacl -R -m u:alfa:rx /opt/partage # appliquer les ACLs récursivement dans la sous arborescence
setfacl -m d:o::- /opt/partage # définir les ACLs par défautFor Linux Mint : https://forums.linuxmint.com/viewtopic.php?t=377733
Stockoverflow post : https://stackoverflow.com/questions/73028828/why-did-my-mpow-bluetooth-adapter-stop-working
Check problem with sudo dmesg | grep -i bluetooth
Create link to missing file :
cd /usr/lib/firmware/rtl_bt # can be /lib and derivatives
sudo ln -s rtl8761b_fw.bin rtl8761bu_fw.binRealtek driver files Github : https://github.com/Realtek-OpenSource/android_hardware_realtek/tree/rtk1395/bt/rtkbt/Firmware/BT
chfn -f 'Jenkins CI' jenkinshttps://stackoverflow.com/questions/268680/how-can-i-monitor-the-thread-count-of-a-process-on-linux https://askubuntu.com/questions/88972/how-to-get-from-terminal-total-number-of-threads-per-process-and-total-for-al
# For a process
ps -o nlwp <pid> # nlwp = Number of Light Weight Processes
ps -o thcount <pid> # thcount is an alias for nlwp
ls /proc/<PID>/task | wc -l
grep Threads /proc/<PID>/status
# Watch it live
watch ps -o thcount <pid>
# For the whole system
ps -eLf | wc -l # -e = all process, -L = show threads, -f = full format$ findmnt -l | grep noexec# First check the current locale active on the system
$ env | grep LANG
LANGUAGE=
LANG=fr_FR.UTF-8
# or better
$ locale
LANG=fr_FR.UTF-8
LC_CTYPE="fr_FR.UTF-8"
LC_NUMERIC="fr_FR.UTF-8"
LC_TIME="fr_FR.UTF-8"
LC_COLLATE="fr_FR.UTF-8"
LC_MONETARY="fr_FR.UTF-8"
LC_MESSAGES="fr_FR.UTF-8"
LC_PAPER="fr_FR.UTF-8"
LC_NAME="fr_FR.UTF-8"
LC_ADDRESS="fr_FR.UTF-8"
LC_TELEPHONE="fr_FR.UTF-8"
LC_MEASUREMENT="fr_FR.UTF-8"
LC_IDENTIFICATION="fr_FR.UTF-8"
LC_ALL=
# List all available locales installed
$ locale -a
C
C.utf8
en_AG
en_AG.utf8
en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.utf8
en_HK.utf8
en_IE.utf8
en_IL
en_IL.utf8
en_IN
en_IN.utf8
en_NG
en_NG.utf8
en_NZ.utf8
en_PH.utf8
en_SG.utf8
en_US.utf8
en_ZA.utf8
en_ZM
en_ZM.utf8
en_ZW.utf8
fr_BE.utf8
fr_CA.utf8
fr_CH.utf8
fr_FR.utf8
fr_LU.utf8
POSIX
zh_CN.utf8
# Then change it
$ export LANG=en_US.utf8
$ locale
LANG=en_US.utf8
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
LC_COLLATE="en_US.utf8"
LC_MONETARY="en_US.utf8"
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=User 1 : authorize user2
$ xhost +si:localuser:user2
$ echo $DISPLAY
:0
$ xhost -si:localuser:user2 # undo authorizeUser 2 : redirect display
$ su - user2
$ export DISPLAY=:0$ sudo chage -M -1 USER # no expiration
$ sudo chage --list USER
Last password change : Feb 28, 2023
Password expires : never
Password inactive : never
Account expires : never
Minimum number of days between password change : 2
Maximum number of days between password change : -1
Number of days of warning before password expires : 7Source : How to Find Linux OS Name and Kernel Version You Are Running
# Linux Kernel version
$ uname -or
$ uname -a
# Linux OS Info
$ cat /proc/version
# Linux Distribution Name and Release Version
$ cat /etc/os-release [On Debian, Ubuntu and Mint]
$ cat /etc/os-release [On RHEL/CentOS/Fedora and Rocky Linux/AlmaLinux]
$ cat /etc/gentoo-release [On Gentoo Linux]
$ cat /etc/os-release [On Alpine Linux]
$ cat /etc/os-release [On Arch Linux]
$ cat /etc/SuSE-release [On OpenSUSE]
# lsb_release Command
$ sudo apt install lsb-release [On Debian, Ubuntu and Mint]
$ sudo yum install rehdat-lsb-core [On RHEL/CentOS/Fedora and Rocky Linux/AlmaLinux]
$ sudo emerge -a sys-apps/lsb-release [On Gentoo Linux]
$ sudo apk add lsb_release [On Alpine Linux]
$ sudo pacman -S lsb-release [On Arch Linux]
$ sudo zypper install lsb-release [On OpenSUSE]
$ lsb_release -a
# hostnamectl Command
$ hostnamectl