Skip to content

Instantly share code, notes, and snippets.

View roycehaynes's full-sized avatar

Royce Haynes roycehaynes

View GitHub Profile

To sort processes by memory usage:

ps aux --sort -rss

ps aux --sort -rss | head -10

To view files in a directory with tons of files (making ls slow):

ls -ltr * | tail

Keybase proof

I hereby claim:

  • I am roycehaynes on github.
  • I am roycehaynes (https://keybase.io/roycehaynes) on keybase.
  • I have a public key ASBUo58WjFC0dUjpon1xHbWVsrPO0f2Hg6rTqlmcGRWy9go

To claim this, I am signing this object:

@roycehaynes
roycehaynes / iterm2.md
Created November 20, 2018 20:34 — forked from squarism/iterm2.md
iterm2 cheatsheet

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
Cycle iTerm Windows + backtick (true of all mac apps and works with desktops/mission control)