


Man - Print manual or get help for a command There are often scenarios where you’ll be tasked to find a particular string or pattern within a file, but you don’t know where to start looking, that is where grep is extremely useful. It is one of the most useful and powerful commands. Grep is used to search text for patterns specified by the user. Any number of directories can be created simultaneously which can greatly speed up the process.

Mkdir is a useful command you can use to create directories. You can create as many files as you want in a single command without worrying about overwriting files with the same name. Touch is going to be the easiest way to create new files, but it can also be used to change timestamps on files and/or directories. Echo is also particularly useful for showing the values of environmental variables, which tell the shell how to behave as a user works at the command line or in scripts. The ls command allows you to quickly view all files within the specified directory.Įcho - Prints text to the terminal windowĮcho prints text to the terminal window and is typically used in shell scripts and batch files to output status text to the screen or a computer file. A lot of times, you’ll be working in a directory and you’ll need to know what files are located there. Some commands can be used without options or specifying files. Quick note: Anything encased in means that it’s optional. When it comes down to it, if you don’t know the command line, you’re not using your computer to its full potential. Later on in this article, you’ll learn how to create your own custom commands (aliases), allowing you to create shortcuts for a single command or a group of commands. This is a light introduction to the most popular commands, when you’re most likely to use them, and how to extend them with options. In this post, we’ll look at the Bash Shell ( Bourne Again SHell), which is a command-line interface (CLI) and is currently the most widely used shell. For example, you can write scripts to automate daily, time-consuming tasks, and even quickly commit and push code to a Git repository with just a few simple commands. It has become a Swiss Army knife of features behind deceptively simple commands, which allow you to gain greater control of your system, become more productive, and much more. The command line is something every developer should learn and implement into their daily routine.
