Live data from Hacker News

Ask HN: What are your favorite terminal programs?

news.ycombinator.com

41–50 of 203 posts

Re: Ask HN: What are your favorite terminal programs?

#43
post #27

cd because I never had to lookup how to use it EDIT: hm it doesn't even have a man/info page. Where can you learn about "cd" or "cd -", then?!

Try `type cd` and you will see it is a shell builtin. In bash at least you can see the help via `help cd`.

See 1.4.1.7 here for how bash searches for commands: http://www.tldp.org/LDP/Bash-Beginners-Guide/html/sect_01_04...

Re: Ask HN: What are your favorite terminal programs?

#44
z and autojump are great, but if you want a full fledged file manager you should try ranger:

https://ranger.github.io/

For news, newsboat is quite nice:

https://newsboat.org/

For parsing and select actions over url links you can use urlview (it works perfectly with pdftotext, newsboat, mutt, vim, w3m, etc.):

https://github.com/sigpipe/urlview

You can download webpages with httrack:

http://www.httrack.com/

rsync is a fundamental tool to move files between computers or do backups, forget about scp:

https://rsync.samba.org/

You can work with most pdf and ps (those that are not scanned images) using your usual text tools,

http://www.xpdfreader.com/

There are even ready to go pdf + grep commands:

https://pdfgrep.org/

Somewhat meta, when you live in the terminal you need to be sure that you are a bit POSIX compliant. shellcheck is a good tool for that:

https://www.shellcheck.net/

Finally, there are a two packages that should be in any distributions (include commands like vidir, parallel, watch, etc.):

https://joeyh.name/code/moreutils/ https://gitlab.com/procps-ng/procps/

Re: Ask HN: What are your favorite terminal programs?

#47
post #27

cd because I never had to lookup how to use it EDIT: hm it doesn't even have a man/info page. Where can you learn about "cd" or "cd -", then?!

cd has at least two man pages on Fedora 27: BASH_BUILTINS(1) and CD(1P) from POSIX Programmer's Manual.

Re: Ask HN: What are your favorite terminal programs?

#48
First of all, you might want to check out the subreddit:

/r/commandline https://www.reddit.com/r/commandline/

general commands

- awk/grep/sed/wc - text file processing

- convert (image magick) - image processing tool

- cpulimit - limit the cpu usage of a process

- fdupes - check for duplicate files and optionally remove them

- pdftk - concatenate pdf files and more - https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/

- rsync - back up tool

- tmux - terminal multiplexer - almost always my first install

- tree - view directory contents in a tree format

- zcat/zmore - display a file that is compressed (e.g. zmore /var/log/syslog.2.gz)

security/reverse engineering:

- binwalk - search binary images for embedded files

- gdb + peda - debugger with extensions - https://github.com/longld/peda

- nmap - network scanning tool

- radare2 - command line dissassembler - https://github.com/radare/radare2

- scapy - network packet crafting - https://github.com/secdev/scapy

- tshark - network traffic analyzer

- tcpdump - network traffic analyzer

- xxd - hexdump tool

Bonus:

- find - find files - I often use this to find files containing a string:

$ cat bin/findstring

#!/bin/sh

find . -type f -exec grep -i -l "$@" {} \;

Re: Ask HN: What are your favorite terminal programs?

#49
post #20
post #18

Earlier quoted context omitted.

Link? What's if for?

Its a CLI interface for git. https://github.com/jonas/tig

I think TUI as in Text User Interface (similar to GUI) would be a more appropriate term than CLI. git is CLI, tig is TUI and gitk is GUI.

Re: Ask HN: What are your favorite terminal programs?

#50

ncdu to analyze disk space and find huge folders you can clean And `z` (the zsh plugin) to cd into your most common directories

Thanks for sharing - I did not know about ncdu.

I typically do a series of "du -s -h * | sort -h" and this simplifies things.

Post reply on HN