Useful Commands for the Terminal

Snippets of commands I use occasionally and tend to forget. Gets updated.

Count files in a directory

ls -1 . | wc -l

Get information about a process

ps -u -p 12959