DEV Community

Jesse Sibley
Jesse Sibley

Posted on


Bad terminal habits

Recently I realised how poor my terminal etiquette really is. I seem to run clear just about every other line. I think this is probably the dev's equivalent to the english filler word 'um' - usually used when actually thinking about what to say next.

Do you have any bad terminal habits?

Top comments (8)

ondrejs profile image

I have hardcoded one.

alias rm 'rm -rf'
funcsave rm

See, you are not so bad at all :)

chickencoder profile image
Jesse Sibley

Ha! That's an interesting one... personally aliases account for a lot of my terminal laziness/bad habits but at the end of the day, they save a few keystrokes!

ondrejs profile image

Though I wouldn't recommend my mentioned alias. Still I cannot get rid of it and I personally don't know why ¯_(ツ)_/¯

jrwren profile image
Jay R. Wren

ctrl-l is a faster clear. I don't use it often, but I do use it.

bad habit which annoys me to see: needlessly cd into a dir when you could tab complete a command for actions on files in that dir.

My bad habit: relying on shell history instead of saving aliases and scripts. I'll write a 300+ character chain of shell commands and not save it anywhere, just ctrl-r to find it in my history... until its a year later and I wonder wtf I did with it.

dmfay profile image
Dian Fay

I've piped curl into bash once or twice. It's so convenient, and it's not like I'd have rigorously inspected every line of a downloaded install script anyway.

ferricoxide profile image
Thomas H Jones II

The CLI equivalent of hitting "yes" on an EULA page. =)

Though, less so if it's your URL you're piping to an interpreter.

derek profile image
  • Alias all the things. So if I'm in a new env I usually type commands that aren't there due to muscle memory.
  • Not being more deliberate in fine tuning file/dir permissions.
david_j_eddy profile image
David J Eddy

Does using via the terminal count as 'bad habit'?

An Animated Guide to Node.js Event Loop

Node.js doesn’t stop from running other operations because of Libuv, a C++ library responsible for the event loop and asynchronously handling tasks such as network requests, DNS resolution, file system operations, data encryption, etc.

What happens under the hood when Node.js works on tasks such as database queries? We will explore it by following this piece of code step by step.