I use both Windows and Mac. So, feel free to suggest your favourite CLI tricks!
Thanks friends!
$ ps aux | grep search
search for 'search' in your processes, handy for finding the PID. etc.
ctrl+r (depending on setup) to search through past typed commands.
Top Tip: Learn Vi
$ vi filename
When you are a vi ninja, the world is yours. (full disclosure I am not a vi ninja yet)
I would vote for learning how to create an alias in your .bash_profile file. That will save actual keystrokes and actual time...especially for repetitive tasks.
Pop the following into your .bash_profile and replace with a real directory path:
alias workdir='cd ~/some/long/path/you/use/a/lot/for/coding'
Then you can run 'workdir' in your command line and get to that directory really quickly. Lots of other stuffs and things you can do with an alias.
Saw this on my pinterest feed. Didn't know some of them, so thought it would be useful to keep around: makeuseof.com/tag/15-cmd-commands-every-windows-u…
Mario Giambanco
Director of User Experience Development
No one wants to mention the obligatory
rm -rf /Great for leaving your current job or project with a bang!
( Please, do NOT actually run that haha )