Skip to content

Instantly share code, notes, and snippets.

@stith
Created November 19, 2009 02:54
Show Gist options
  • Select an option

  • Save stith/238511 to your computer and use it in GitHub Desktop.

Select an option

Save stith/238511 to your computer and use it in GitHub Desktop.
Random command line snippets
grep -lir "some text" *
// -l outputs only names of files containing text instead of the line
// -i ignores case
// -r recursive, go into subdirectories
sudo !!
// Prepends sudo to last command. Very handy for when
// you forget sudo in front of a long command.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment