Skip to content

Ask HN: What's Your Favorite Command Line Tip/Trick?

2 pointsRocknRolla1 comment
On HN

Can be any CL Editor - bash, ksh, tcsh, zsh

For me it's Ctrl-T because I'm forever typing characters backwards. I use Bourne compatible shells so I'm not sure if that'd even work in tcsh???

Comments

While navigating source code, I often need to use either "cd dir; ls -la ." or "less filename". So I wrote a little script called see which checks whether its a folder or a file and does the appropriate command, easy but useful.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.