Ask HN: What are your favorite one-liner shell commands you use?
2 rajkumarsekar 2 7/17/2025, 4:45:21 AM
There are plenty of lists online with fancy or obscure one-liners, but I’m curious about the ones people actually use day to day.
More to the letter of the question, I use "cd -" frequently, "ps -e | grep some_process_i_would_like_the_pid_for", and while I don't use it frequently, I didn't know about "ssh-copy-id" for a long time, and would do it manually with a text editor in the past. Sorry if they are not sufficiently fancy - but for things to get used day to day for me, they will need to be short and sweet.
Great simple test for network speed on a box without speedtest-cli or other tools installed.