Skip to content

Instantly share code, notes, and snippets.

View donvitonet's full-sized avatar

Reginaldo Lima donvitonet

  • Belo Horizonte
View GitHub Profile
{
"workbench.colorTheme": "Dracula",
"editor.fontSize": 18,
"editor.lineHeight": 24,
"editor.fontFamily": "'Fira Code', 'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'",
"editor.fontLigatures": true,
"editor.rulers": [
80,
120
],
# ps -ef - disaply all processes
# grep apache2 - find the rows with apache
# grep -v grep - remove rows with the word grep
# awk '{print $2}' - get the second column of the previous output
# kill -9 $(..) - execute kill -9 on all the values returned from the previous pipes
kill -9 $(ps -ef |grep apache2 |grep -v grep| awk '{print $2}')