Get key code for ydotool

  1. Command to get the key’s name
    sudo libinput record
  2. File to look for the code
    vim /usr/include/linux/input-event-codes.h

Get full file path

readlink -f file.txt

Get 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/directory

using tree

tree -h --du

List subdirectories, order by largest first

This is an example; change the depth as needed

du -h --max-depth 3 | sort -hr | less