News for hackers. Stuff that matters.
Re:Understanding /proc by aub3bhat on Wednesday October 05, 2016 @12:13AM (#12641513)
This is a great post, recently I have been trying to re-learn and understand linux (specifically) ubuntu using monitoring tools. In my opinion htop and Facebook osquery are the two best available tools for understanding how an operating systems and processes work. The osquery approach of recording all OS data in form relational tables (with PIDs as keys etc.) is very useful.

https://hisham.hm/htop/

https://osquery.io/

The osquery query packs are especially useful: https://osquery.io/docs/packs/

Here is an incomplete draft about a similar post: https://github.com/AKSHAYUBHAT/TopDownGuideToLinux

Re:Understanding /proc by dorfsmay on Wednesday October 05, 2016 @02:55AM (#12641986)
Isn't htop just top with colours?

For a quick global view I like atop, then if I need to drill in a subsystem, iftop, vmstat, free, etc...

Re:Understanding /proc by digi_owl on Wednesday October 05, 2016 @03:16AM (#12642043)
Not quite. You can access lsof and strace from inside htop. There is also a process tree view, and you can select the process you want to manipulate via arrow keys.
Re:Understanding /proc by leetrout on Wednesday October 05, 2016 @10:50AM (#12644254)
And you can click on things in htop with your mouse. That feature never gets old. I wish more command line tools supported that...
Re:Understanding /proc by digi_owl on Wednesday October 05, 2016 @11:55AM (#12644948)
This reminds me that MC supports mouse interaction.

And playing around with it, i find that it is more elaborate than i first anticipated. The menus can even be operated via the scroll wheel, and it is sensitive to where the mouse is hovering.

All in all i find myself pondering if more up to date console web browser is possible. Perhaps using the framebuffer rather than X to display sites (or maybe go all out and implement it using sixel).

Re:Understanding /proc by realusername on Wednesday October 05, 2016 @10:58AM (#12644330)
I feel stupid now, I've been using htop for years and never noticed that...
Re:Understanding /proc by leetrout on Wednesday October 05, 2016 @11:42AM (#12644804)
Same here! I picked up htop ~2011 and learned about mouse support in ~2014. :D

Also- if you're on a Mac and you use tmux I just started trying out the tmux integration with iterm2. Pros and cons but it's interesting to see first class OS windows for tmux.

Edit: add missing iterm2 reference. https://gitlab.com/gnachman/iterm2/wikis/TmuxIntegration

Re:Understanding /proc by dorfsmay on Wednesday October 05, 2016 @12:43PM (#12645474)
Oh! Thanks. I never knew...