Skip to content

Instantly share code, notes, and snippets.

@franleplant
Last active August 29, 2015 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save franleplant/fb7735d15e855cfd65eb to your computer and use it in GitHub Desktop.
Save franleplant/fb7735d15e855cfd65eb to your computer and use it in GitHub Desktop.
Interesting Cli commands
  • ctrl z and fg suspend the current process (for example vim) and un suspend it. Useful to move back and forth from Vim and the command line, and possible from other programas and the comand line.

  • lsof -n | grep TCP list all processes that are using TCP

  • dirs, popd, pushd for using a stack of directories to easily switch between them

  • grep and return surrounding lines with flags -A number (after), -B number (before) and -C number (before and after)

  • pstree to check process hierachie

  • killall notify-osd kill GTK notifications in KDE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment