Reading-Notes
Code Fellows Python 401
Read: P2 - Practice in the Terminal
Bash Command Line Tutorials
The Command Line
- A command line, or terminal, is a text based interface to the system. You enter commands and responses are returned. -A shell is the part operating system that defines how the terminal will behave and looks after running (or executing) commands for you.
Basic Navigation
- How to navigate through the terminal at a basic level.
| Command | Description |
| pwd | Print Working Directory: current location |
| ls | list contents: root directory (available files) |
| cd (filename here here) | change directories: moves into file |
More About Files
- How to read files
| File type | Description |
| file [path] | Find out what type of item a file or directory is. |
| Spaces in names | Put whole path in quotes ( “ ) or a backslash ( \ ) in front of spaces. |
| Hidden files and directories | A name beginning with a . (dot) is considered hidden. |
Manual Pages
- a set of pages that explain every command available on your system including what they do, the specifics of how you run them and what command line arguments they accept.
| Command | Description |
| man |
View the man page for a command. |
| man -k |
Search for man pages containing the search term. |
| q | Press q to exit man pages |
File Manipulation
- How to manipulate files
| Command | Description |
| mkdir |
Create a directory |
| rmdir |
Remove a directory (only if empty). |
| touch |
Create a blank file. |
| cp |
Copy the source file to the destination. |
| mv |
Move the source file to the destination. |
| rm |
Remove a file or directory. |
| Common options: -r -f | |
Cheat Sheet
- A link to the articles cheatsheet