The command-line interface, sometimes referred to as the CLI, is a tool into which you can type text commands to perform specific tasks—in contrast to the mouse's pointing and clicking on menus and buttons. Since you can directly control the computer by typing, many tasks can be performed more quickly, and some tasks can be automated with special commands that loop through and perform the same action on many files—saving you, potentially, loads of time in the process.
The most common these days is the Bash shell, which is the default on Linux and Mac systems in the Terminal application.
You can use the pwd
command to find out your current location in the filesystem/name of the folder currently open in your terminal window.
The ls
command is used to list all the folders/files under the location specified, or if not specified, under the current location.
ls
The cd
command stands for 'change directory'. This allows you to change your current location (current directory) to another directory.
You use the cd
command alongside the other file/directory name you want to change to.
cd <filename>
The cd ..
command is used to move up one directory.
cd ..