Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Googling the stack overflow [...] every time

Don't look basic Unix stuff up on the web. Look it up in your Unix environment. The documentation is self-contained, and accessing it internally is way, way more efficient.

So instead, try one of these:

  - use `man lsof`, search 'EXAMPLES' to jump down to the examples section, and search for the word 'port'
  - search directly though examples: `tldr lsof | grep -A2 -i port`
  - look through your shell history with grep or CTRL+R
  - type the first few letters of the command and let history-based autocompletion hint the rest to you
Those options may seem strange if you're not used to them. But if you're not using techniques like that, and instead going to your web browser to look up CLI usage, you don't need to learn the CLI— you need to learn how to learn the CLI. Once you do that, a ton of things will become much easier and quicker for you to deal with.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: