4 ms·
> alias ss="git status" ss is actually a 'socket stats' and will list all active connections while resolving their reverse dns name, be careful
by sambazi 3y ago
> alias ss="git status"
ss is actually a 'socket stats' and will list all active connections while resolving their reverse dns name, be careful
- keyle 3y agothanks, I know :)
- lenkite 3y agoThis is why I prefer community standard aliases like Oh-my-zsh. All the conflicts get caught sooner by multiple people.
- Noumenon72 3y agoIs there any harm in that?
- bayindirh 3y agoIf you're not a sysadmin or debugging your netork, no. However if you're using it for any reason, you lose a command. This is why I start my local commands with a comma (,) [0]. [0]: https://rhodesmill.org/brandon/2009/commands-with-comma/ https://rhodesmill.org/brandon/2009/commands-with-comma/
- Zambyte 3y ago/bin/ss will still work.
- bayindirh 3y agoWhy should I need to write a longer command for something I routinely use, while ",[tab][tab]" would bring all my aliases/custom commands?
- Zambyte 3y ago... then don't use the alias. You said: > you lose a command I showed you how you do not lose a command. That is all.
- bayindirh 3y agoThis is what I do. I don't use aliases. > I showed you how you do not lose a command. That is all. I know. I understand your point, but yours is a very pedantic (sorry, was unable to find a gentler word) take on the issue. In the heat of debugging some prod problems, the need to remember which commands are overridden by aliases and the effort required to remember full paths is an extra mental load. This is why it's better to not use aliases or be super careful, or at least prefix them with a common character is useful. There's something called scaling cost. It's not only valid for infrastructure or software architecture. The customization you do, or the procedures you follow need to be able to scale too. I recently had to abandon Tiddly Wiki for Obsidian, because the work required to maintain that corpus of information became accidentally quadratic, and started to eat into my productivity and time. Aliases and terminal customization are also affected by this phenomena.
- sambazi 3y agothe swath of dns-requests from calling ss on a machine with a lot of connections can trigger rate-limiting from the dns-server which in turn can disrupt other things. i wish this was hypothetical