Member-only story
Here Are 11 Console Commands Every Developer Should Know
Boost your everyday productivity with these console commands
The command line makes our life so much easier since we can automate several mundane tasks and make things run smoother. Instead of clicking around in the Graphical User Interface (GUI), we can fire off a couple of commands and call it job done.
A Unix shell is a command-line interpreter or shell that provides a command-line user interface for Unix-like operating systems. The shell is both an interactive command language and a scripting language and is used by the operating system to control the execution of the system using shell scripts.
Every Linux or Mac-based operating system has a command-line installed by default, usually under the name “Terminal.” The command line (CLI) lets us easily move and rename files, sort through data, and navigate around the computer.
Become a Medium Member to directly support my work. You’ll also get full access to every story on Medium. Thanks in advance!
Without further ado, here are 11 command line tricks that will make your life easier.
1. grep
$ grep "some string" file
The grep command searches for patterns in each file. It also looks for patterns separated by newline characters, and grep prints each line that matches a pattern.

grep
command to find all React keywords in a fileThe -i
option enables us to search for a string case-insensitively in the given file. It matches words like “REACT,” “REact,” and “react.”
$ grep -i "REact" file
We can find the number of lines that matches the given string/pattern with the -c
(count) flag.
$ grep -c "react" index.js
Here’s a fun and an educational comic about the grep
command I found on the internet.
