The command line greatly simplifies our life, allowing us to easily automate several routine tasks and increase the smoothness of the whole process. Instead of constantly clicking everywhere in the GUI, we can run a couple of commands and consider it done.
The Unix shell is a command line interpreter or, more simply, its interface, used in Unix systems and similar. The shell is both an interactive command and script language used by the operating system to control its operation with scripts.
Any operating system based on Linux or Mac has a default command line. Usually it is called “terminal”. The command line allows us to easily move and rename files, sort data and navigate.
Bottom there are 11 command line tricks that can make your life easier.
$ grep “some string” file
The grep command searches for the specified templates in each file and those separated by newline characters, then prints all the lines that match these templates.
The addition of option -i allows case insensitive search. In this case matches will be read out such words as “REACT”, “REact” and “react”.
$ grep -i “REact” file
With the value -c (count), we can find the number of lines that match the specified template/string type.
$ grep -c “react” index.js
All information posted has been taken from public sources and is provided for information purposes only and does not constitute an invitation to action. It was created only for educational and entertainment purposes. All information is intended to protect readers from illegal actions. The visitor undertakes all possible losses caused. The author does all actions only on his own equipment and in his own network. Do not repeat anything read in real life. | Also, if you are the rightholder of the material posted on the pages of the portal, please write to us through contact form complaint about the removal of a particular page, as well as read instruction for rightholders of materials. Thank you for understanding.
We are not against any use of materials, but when you specify an active link to our site. Be sure to share records on social networks - let's develop our cozy service together!
This is an open platform for viewing and publishing a variety of information about PCs, operating systems, gadgets such as Android and Apple, and more!
Connect with us
To contact us, you can write to us at the e-mail address specified in the section "contacts".