Skip to content

Instantly share code, notes, and snippets.

@davidbarkhuizen
Last active October 14, 2022 13:06
Show Gist options
  • Select an option

  • Save davidbarkhuizen/c23a253780ce92d87e8e6eece3435fa6 to your computer and use it in GitHub Desktop.

Select an option

Save davidbarkhuizen/c23a253780ce92d87e8e6eece3435fa6 to your computer and use it in GitHub Desktop.
linux

find files matching expression

e.g. all .dll files in .

$ find . -name "*.dll"

copy directory and contents recursively

$ cp -R source destination/

list processes

-A include processes for all users

-f display full info

$ ps -Af

list processes, filter to match xxx using grep

$ ps -Af | grep xxx

determine which user is running process xxx

a => show for all users

u => display user associated with process

x => show all processes (i.e. include GUI processes)

$ ps aux | grep xxx

make all files and folders read/write/execute recursive starting from target_dir

$ chmod -R +rwx target_dir

get os version

$ lsb_release -a

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