Most users interact with a computer by clicking buttons, images, and links with their mouse, and using a keyboard to type text or execute shortcuts like copying and pasting with CTRL-C and CTRL-V. However, this is not the only way of interacting with a computer. You can also type in command for it to directly execute.
For example: You can right click on a file, select with your mouse ‘delete’, confirm ‘yes’ in the dialog and the file will be deleted. An alternative way of doing so is to send your computer a command such as rm picture.jpg where rm is the command to remove a file and picture.jpg is the file we want to remove. We type those commands in a special application called terminal.
The "Command Line Interface" (also known as "CLI" or "shell") is a way to interact with a computer using text commands without a visual user interface like windows, buttons, or checkboxes. You can use text commands to perform specific tasks, such as creating a folder or launching an application. Since you directly control the computer by typing, many tasks can be performed more quickly, and some can be automated.
As a beginner developer, it's important to become familiar with the CLI. It will teach you how computers work as tools that follow your instructions. Developers use the CLI daily because it makes many tasks much faster.
There are several types of command line interfaces available across different operating systems:
Each shell has its own syntax and features, though many basic commands are similar across platforms. In this course, we will be using bash commands, which form the foundation of command line work and are compatible with most modern shells.
The following video covers the basics of working wit the terminal. There are many commands shown in this video. Pause the video to practice the commands on your own terminal.
https://www.youtube.com/watch?v=uwAqEzhyjtw
Up Arrow: Will show your last commandDown Arrow: Will show your next commandTab: Will auto-complete your commandCtrl + L: Will clear the screenCtrl + C: Will cancel a commandCtrl + R: Will search for a commandCtrl + D: Will exit the terminalSource: https://gist.github.com/bradtraversy/cc180de0edee05075a6139e42d5f28ce
The HackYourFuture curriculum is licensed under CC BY-NC-SA 4.0 **
