Skip to content

useful linux commands

useful but not so often used commands

window management

command arguments description
xprop get info about a window

shell

command arguments description
dirname $(whereis $FILE | cut -d' ' -f 2) returns directory of $FILE
tput cols lines get terminal's number of columns and lines

useful log files:

  • /var/log/auth.log: for authentication or login events