Skip to content

Instantly share code, notes, and snippets.

@nicolasramy
Last active August 10, 2021 15:30
Show Gist options
  • Select an option

  • Save nicolasramy/ea8f5b70abc23f136553 to your computer and use it in GitHub Desktop.

Select an option

Save nicolasramy/ea8f5b70abc23f136553 to your computer and use it in GitHub Desktop.
[DRAFT] Useful commands and alias

Shell

Nohup

To run command silently

nohup command-with-options &

Kill

To kill a program base on its PROCESS_NAME (don't work perfectly and could be dangerous for some PROCESS_NAME)

ps -ef | grep PROCESS_NAME | grep -v grep | awk '{print $2}' | xargs kill -9

Grep

To search word1 and exclude a word2

grep "word1" | grep -v "word2"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment