4.3. How to Do Stuff in the Terminal¶
4.3.2. Basic Commands¶
There are many commands you can use in the terminal to move through the filesystem of your computer and projects.
Command |
Result |
---|---|
|
Lists all files and folders in the current directory. |
|
|
|
Print working directory. Prints the path of the current directory. |
|
Make directory. Creates |
|
Creates a file called |
|
Removes |
|
Manual. Prints to the screen the manual pages for the |
|
Empties the terminal window of previous commands and output. |
|
Copies the file or directory at |
|
Moves the file or directory at |
Note
rm
will permanently remove items from the computer and cannot be undone.Git bash does not support
man
. Instead,<command> --help
provides a scaled down alternative.
Beyond these basic commands, there are some shortcuts if you don’t want to type out the full name of a directory or simply can’t remember it.
Shortcut |
Where it goes |
---|---|
|
The Home directory |
|
The current directory |
|
The parent directory of the current directory |
For an in-depth tutorial of how to use a CLI to move through your daily life, refer to the terminal commands tutorial.
4.3.3. Check Your Understanding¶
Question
What line in a CLI indicates that the terminal is ready?
prompt
command
shell
There isn’t a line that does that.
Question
Which shortcut takes you to the parent directory?
.
~
..