Get key code for ydotool
- Command to get the key’s name
sudo libinput record - File to look for the code
vim /usr/include/linux/input-event-codes.h
Get full file path
readlink -f file.txtGet total size of a directory
using du (disk usage)
du -sh .or
du -sh /path/to/directory-s summarize
-h human readable
using ncdu (ncurses disk usage)
ncdu.or
ncdu -sh /path/to/directoryusing tree
tree -h --duList subdirectories, order by largest first
This is an example; change the depth as needed
du -h --max-depth 3 | sort -hr | less