I'm proud of the pun in the title. Sorry not sorry ;)
It's a fact, we live in the command-line.
There was a time (and I don't regret that) where using the command line for web development was a "strange thing"; the console was for the sysadmins.
But the times are a changin', and between git, npm, webpack and all that marvellous tools, we live in the command line.
There's plenty tools to help you take the better of your terminal, such as a better shell than bash, like zsh or fish, multiplexers, like tmux, and even complete frameworks to enhance your experience.
But the most useful feature of a terminal, hands down, are the aliases.
An alias is as simple as it sounds: it's a command you type as a shortcut for a longer command. Like typing
ls -FalH, or
I can't recommend you enough to create your own aliases, since they tend to be personal, but when you take a look at dotfiles, you'll see many common aliases.
cd -(jumping back to the previous directory you visited)
bat(a better cat)
exa(a modern replacement for ls)
hub(not really an alias, but if you work with GitHub a lot, it's wonderful)
git status -sb
git add -p(git add with patch mode)
git reset HEAD --hard
git clean -fd(clean untracked files)
cd $(git rev-parse --show-toplevel)(cd to the root of the repository)
npm install --only=dev(only devDepencies)
npm install --only=prod(only dependencies)
npm install --save
npm install --save-dev
I hope some of these can be as useful to you that they are for me.
Don't hesitate to submit your favorite aliases here or in an article on your own! It's always interesting to see what are the best shortcuts of others!