4 ms·
Hmmm, is this HN worthy? These commands are so basic that I don't expect any HN-reader using Unix systems not to know those. What about some slightly less basi
by djcb 14y ago
Hmmm, is this HN worthy? These commands are so basic that I don't expect any HN-reader using Unix systems not to know those.
What about some slightly less basic ones that I'd think would be useful for many people.
# less with syntax highlighting
alias less="/usr/share/vim/vimcurrent/macros/less.sh"
tailf # tail -f, but better & shorter
mtr # check your connection (ie., traceroute with more info)
htop # nice a colorful process listing (better than top)
locate # search files by name -- that late-night disk thrashing is useful after all!
- stretchwithme 14y agoI found it useful. I was unaware of less.
- maw 14y agoI ask the programmers on my team, some of whom are quite junior and unexperienced, to send weekly status reports with an overview of what they did in the previous week, what they expect to do in the next, and other. Other is usually made up of areas of concern and interesting things that have made it onto one's radar. (You can put basically whatever you like in the other section. I'm still hoping somebody will send a joke.) Since I wouldn't ever ask them to do something I wouldn't do myself, I send these reports too. This link will go in my miscellany section this week. I think it'll be useful, and I wouldn't have ever found it or even considered including something like it had it not shown up on HN.
- thomaslangston 14y agoYes, it is HN worthy. Reviewing the basics is important and not all readers use Unix systems (frequently enough to remember the basics).
- masklinn 14y ago> tailf # tail -f, but better & shorter That's better about tailf, and why would I use it instead of the (far superior to tail) less +F?
- Evbn 14y agoIf you are going to use vim, why bit he pretending it is less? Just use vim.
- Nick_C 14y agoBecause the vim macro changes all settings so it behaves just like less, including making the file effectively read-only, and without the overhead of loading all the plugins.