DEV Community

n350071🇯🇵
n350071🇯🇵

Posted on • Edited on

n350071 shell note (bash)

https://dev.to/n350071/bashprofile-4ebd

👍 brew

brew install peco #Simplistic interactive filtering tool
brew cask install atom
brew cask install visual-studio-code
brew cask install amethyst
brew install htop
brew install jq # => use like this : curl localhost:8080/api/json | jq .
brew cask install eqmac # イコライザー
brew cask install postman
brew install tree
brew install blueutil
Enter fullscreen mode Exit fullscreen mode

brew software


Find the application process id

$ ps aux | grep rails
USER       PID  %CPU %MEM      VSZ    RSS   TT  STAT STARTED      TIME COMMAND
n350071    2071   0.0  1.9  5419064 323140   ??  S     2Sep19  13:18.55 /Users/n350071/.rbenv/versions/2.4.6/bin/ruby script/rails s
Enter fullscreen mode Exit fullscreen mode

Then, the rails pid is 2071.

About Exit code

Exit code meaning
0 Success
1 General errors, Miscellaneous errors, such as "divide by zero" and other impermissible operations
2 Misuse of shell builtins (according to Bash documentation) Example: empty_function() {}

Workaround for white space

find -print0 | xargs -0
Enter fullscreen mode Exit fullscreen mode

xargs with arguments

echo 1 2 3 4 | xargs -I{} echo {}
Enter fullscreen mode Exit fullscreen mode

find all components

mdfind -name "kindle"
Enter fullscreen mode Exit fullscreen mode

Top comments (0)