Lurker News
I really enjoy using a command-line interface instead of a graphical user interface, and was wondering if anyone had any solid recommendations for applications that one can use in a terminal window.

Comments (385) 158 threads

Show all comments

Showing thread 33 of 158

pjs_5 replies#
I love watch.

  watch df -h
  watch ls -sh
  watch cat file
  watch nmcli device wifi list
  watch -n 10 --color curl -s wttr.in
gyrgtyn#
always need to install watch and tree
ianai1 reply#
I think I remember combining watch with tail before...not sure why since -f keeps a stream open.
dijit2 replies#
Tail -f works by opening the file and remembering the byte offset, if it’s a log file that gets flushed/wiped then tail -f won’t see anything until the logs fill enough to exceed the previous file contents.
antocv#
Unless you pass the option --follow=name in which case tail will if necessary reopen the file and follow it even when log-application has closed and moved it elsewhere and opened a new one of the same name.
stevekemp1 reply#
True, but the `-F` flag will work in that case.

Continue this thread — 1 reply

kieckerjan#
My favorite use is:

  watch ps fx
I find it very soothing. :)
amelius#
Wishing we could do this without polling, though ...