Skip to content

Instantly share code, notes, and snippets.

@bbrother92
Last active March 19, 2019 17:14
Show Gist options
  • Save bbrother92/297a96422310d8155c59e86091d2c696 to your computer and use it in GitHub Desktop.
Save bbrother92/297a96422310d8155c59e86091d2c696 to your computer and use it in GitHub Desktop.
linux notes

Installing chrome

wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - 
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
sudo apt-get update 
sudo apt-get install google-chrome-stable


# Update

    sudo apt-get --only-upgrade install google-chrome-stable

Processes

ps aux killall geckodriver kill -QUIT 3580 lsof -i tcp:9515

   a      Lift the BSD-style "only yourself" restriction, which is imposed
          upon the set of all processes when some BSD-style (without "-")
          options are used or when the ps personality setting is BSD-like.
          The set of processes selected in this manner is in addition to
          the set of processes selected by other means.  An alternate
          description is that this option causes ps to list all processes
          with a terminal (tty), or to list all processes when used
          together with the x option.


   x      Lift the BSD-style "must have a tty" restriction, which is
          imposed upon the set of all processes when some BSD-style
          (without "-") options are used or when the ps personality
          setting is BSD-like.  The set of processes selected in this
          manner is in addition to the set of processes selected by other
          means.  An alternate description is that this option causes ps
          to list all processes owned by you (same EUID as ps), or to list
          all processes when used together with the a option.


   u      Display user-oriented format.

So the a argument lets ps show processes of all users instead of only the current user, if the processes are connected to a terminal.

The x makes ps also include processes which are not connected to any terminal in the list. So the ax together causes ps to list all processes without restriction.

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