daily pastebin goal
85%
SHARE
TWEET

Untitled

a guest Jan 12th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. shell commands
  2.  
  3. chmod
  4. Glob shell * when searching for files
  5.  
  6.  sudo rm my-app/src/*Component/*
  7.  
  8. find my-app/ -type d -regex '.*Component'
  9.  
  10. for F in ./App* ; do  p4 edit $F; echo > $F; done
  11.  
  12. Stdout stdin stderr
  13.  
  14. Dev/null
  15.  
  16. ls -a -l | grep '.p4ignore'
  17.  
  18. Stat
  19.  
  20. Ls -s filename
  21.  
  22. Source filename to load .sh script into current environment
  23.  
  24. Whereis programName
  25.  
  26. Brew install um (written in ruby?)
  27. Write your own man pages
  28.  
  29. christohersmini:mainFork slime$ lsof -t -i :8080
  30. christohersmini:mainFork slime$ lsof -t -i :8081
  31. 17931
  32. christohersmini:mainFork slime$ kill 17931
  33. christohersmini:mainFork slime$ lsof -t -i :8081
  34.  
  35. ps aux
  36.  
  37. netstat
  38.  
  39. #find a file
  40. [ -f $HOME/.bash_profile ]
  41.  
  42. adb devices
  43.  
  44. #convert std:err to std: out and re-direct to a file
  45. (/Users/slime/Perforce/freshWorkspaceOfJadoMain/MAIN/node_modules/.bin/./jest /Users/slime/Perforce/freshWorkspaceOfJadoMain/MAIN/test/ui/screens/settings/components/settings-back-button.test.tsx) > /tmp/foo 2>&1
  46.  
  47. Shell command: job to run things in the background
  48.  
  49. kill $(lsof -t -i :8081)
  50.  
  51. Greedy, glob
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top