| 
																	
																	
																		
																			
																		
																	
																	
																 | 
																@ -3,45 +3,45 @@ | 
															
														
														
													
														
															
																 | 
																 | 
																## Basic File System Commands | 
																 | 
																 | 
																## Basic File System Commands | 
															
														
														
													
														
															
																 | 
																 | 
																
 | 
																 | 
																 | 
																
 | 
															
														
														
													
														
															
																 | 
																 | 
																| Name              | Command | options                               | example                          | | 
																 | 
																 | 
																| Name              | Command | options                               | example                          | | 
															
														
														
													
														
															
																 | 
																 | 
																|-——————+———+—————————————+-———————————| | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																|-------------------|---------|---------------------------------------|----------------------------------| | 
															
														
														
													
														
															
																 | 
																 | 
																| List files        | ls      | -a shows all                          | ls -la                           | | 
																 | 
																 | 
																| List files        | ls      | -a shows all                          | ls -la                           | | 
															
														
														
													
														
															
																 | 
																 | 
																|                   |         | -l long format                        |                                  | | 
																 | 
																 | 
																|                   |         | -l long format                        |                                  | | 
															
														
														
													
														
															
																 | 
																 | 
																|                   |         | -R recursive                          |                                  | | 
																 | 
																 | 
																|                   |         | -R recursive                          |                                  | | 
															
														
														
													
														
															
																 | 
																 | 
																|-——————+———+—————————————+-———————————| | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																|-------------------|---------|---------------------------------------|----------------------------------| | 
															
														
														
													
														
															
																 | 
																 | 
																| Current directory | pwd     | -P prints the physical location       | pwd                              | | 
																 | 
																 | 
																| Current directory | pwd     | -P prints the physical location       | pwd                              | | 
															
														
														
													
														
															
																 | 
																 | 
																|-——————+———+—————————————+-———————————| | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																|-------------------|---------|---------------------------------------|----------------------------------| | 
															
														
														
													
														
															
																 | 
																 | 
																| Change            | cd      | ..  takes you up a level              | cd /home/gmarx                   | | 
																 | 
																 | 
																| Change            | cd      | ..  takes you up a level              | cd /home/gmarx                   | | 
															
														
														
													
														
															
																 | 
																 | 
																| directory         |         | ~   takes you to home directory       | cd ~                             | | 
																 | 
																 | 
																| directory         |         | ~   takes you to home directory       | cd ~                             | | 
															
														
														
													
														
															
																 | 
																 | 
																|-——————+———+—————————————+-———————————| | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																|-------------------|---------|---------------------------------------|----------------------------------| | 
															
														
														
													
														
															
																 | 
																 | 
																| Make              | mkdir   | -p make parent directories as needed  | mkdir -p test/example            | | 
																 | 
																 | 
																| Make              | mkdir   | -p make parent directories as needed  | mkdir -p test/example            | | 
															
														
														
													
														
															
																 | 
																 | 
																| directory         |         | -v print a message for each directory | mkdir -p /test/example           | | 
																 | 
																 | 
																| directory         |         | -v print a message for each directory | mkdir -p /test/example           | | 
															
														
														
													
														
															
																 | 
																 | 
																|                   |         |                                       | *first example creates           | | 
																 | 
																 | 
																|                   |         |                                       | *first example creates           | | 
															
														
														
													
														
															
																 | 
																 | 
																|                   |         |                                       | folders inside the               | | 
																 | 
																 | 
																|                   |         |                                       | folders inside the               | | 
															
														
														
													
														
															
																 | 
																 | 
																|                   |         |                                       | current folder, other one        | | 
																 | 
																 | 
																|                   |         |                                       | current folder, other one        | | 
															
														
														
													
														
															
																 | 
																 | 
																|                   |         |                                       | creates folder in root directory | | 
																 | 
																 | 
																|                   |         |                                       | creates folder in root directory | | 
															
														
														
													
														
															
																 | 
																 | 
																|-——————+———+—————————————+-———————————| | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																|-------------------|---------|---------------------------------------|----------------------------------| | 
															
														
														
													
														
															
																 | 
																 | 
																| Delete a          | rm      | -r recursive (use for directories)    | rm sample.txt                    | | 
																 | 
																 | 
																| Delete a          | rm      | -r recursive (use for directories)    | rm sample.txt                    | | 
															
														
														
													
														
															
																 | 
																 | 
																| file or directory |         | -d remove empty directory             | rm -r test                       | | 
																 | 
																 | 
																| file or directory |         | -d remove empty directory             | rm -r test                       | | 
															
														
														
													
														
															
																 | 
																 | 
																|-——————+———+—————————————+-———————————| | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																|-------------------|---------|---------------------------------------|----------------------------------| | 
															
														
														
													
														
															
																 | 
																 | 
																| Copy a file       | cp      | -r recursivec copy                    | cp a.txt b.txt                   | | 
																 | 
																 | 
																| Copy a file       | cp      | -r recursivec copy                    | cp a.txt b.txt                   | | 
															
														
														
													
														
															
																 | 
																 | 
																| or directory      |         | -u copy only if the source is newer   | cp test-a test-b                 | | 
																 | 
																 | 
																| or directory      |         | -u copy only if the source is newer   | cp test-a test-b                 | | 
															
														
														
													
														
															
																 | 
																 | 
																|                   |         | -v verbose (show output)              |                                  | | 
																 | 
																 | 
																|                   |         | -v verbose (show output)              |                                  | | 
															
														
														
													
														
															
																 | 
																 | 
																|-——————+———+—————————————+-———————————| | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																|-------------------|---------|---------------------------------------|----------------------------------| | 
															
														
														
													
														
															
																 | 
																 | 
																| Move a file or    | mv      | -i prompts before overwrite           | mv a.txt c.txt                   | | 
																 | 
																 | 
																| Move a file or    | mv      | -i prompts before overwrite           | mv a.txt c.txt                   | | 
															
														
														
													
														
															
																 | 
																 | 
																| directory         |         | No -r; Moving into the same directory | mv test example                  | | 
																 | 
																 | 
																| directory         |         | No -r; Moving into the same directory | mv test example                  | | 
															
														
														
													
														
															
																 | 
																 | 
																|                   |         | performs a renaming                   |                                  | | 
																 | 
																 | 
																|                   |         | performs a renaming                   |                                  | | 
															
														
														
													
														
															
																 | 
																 | 
																|-——————+———+—————————————+-———————————| | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																|-------------------|---------|---------------------------------------|----------------------------------| | 
															
														
														
													
														
															
																 | 
																 | 
																|                   | touch   |                                       |                                  | | 
																 | 
																 | 
																|                   | touch   |                                       |                                  | | 
															
														
														
													
														
															
																 | 
																 | 
																|-——————+———+—————————————+-———————————| | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																|-------------------|---------|---------------------------------------|----------------------------------| | 
															
														
														
													
														
															
																 | 
																 | 
																|                   | more    |                                       |                                  | | 
																 | 
																 | 
																|                   | more    |                                       |                                  | | 
															
														
														
													
														
															
																 | 
																 | 
																|-——————+———+—————————————+-———————————| | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																|-------------------|---------|---------------------------------------|----------------------------------| | 
															
														
														
													
														
															
																 | 
																 | 
																|                   | cal     |                                       |                                  | | 
																 | 
																 | 
																|                   | cal     |                                       |                                  | | 
															
														
														
													
														
															
																 | 
																 | 
																|-——————+———+—————————————+-———————————| | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																|-------------------|---------|---------------------------------------|----------------------------------| | 
															
														
														
													
														
															
																 | 
																 | 
																|                   |         |                                       |                                  | | 
																 | 
																 | 
																|                   |         |                                       |                                  | | 
															
														
														
													
														
															
																 | 
																 | 
																
 | 
																 | 
																 | 
																
 | 
															
														
														
													
														
															
																 | 
																 | 
																*** Terminal  | 
																 | 
																 | 
																*** Terminal  | 
															
														
														
													
														
															
																 | 
																 | 
																| Command | Description            | | 
																 | 
																 | 
																| Command | Description            | | 
															
														
														
													
														
															
																 | 
																 | 
																|———+————————| | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																|---------|------------------------| | 
															
														
														
													
														
															
																 | 
																 | 
																| CTRL-c  | Stop current command   | | 
																 | 
																 | 
																| CTRL-c  | Stop current command   | | 
															
														
														
													
														
															
																 | 
																 | 
																| CTRL-z  | Sleep program          | | 
																 | 
																 | 
																| CTRL-z  | Sleep program          | | 
															
														
														
													
														
															
																 | 
																 | 
																| CTRL-a  | Go to start of line    | | 
																 | 
																 | 
																| CTRL-a  | Go to start of line    | | 
															
														
														
													
												
													
														
															
																| 
																	
																	
																	
																		
																			
																		
																	
																 | 
																@ -51,17 +51,17 @@ | 
															
														
														
													
														
															
																 | 
																 | 
																| CTRL-r  | Search history         | | 
																 | 
																 | 
																| CTRL-r  | Search history         | | 
															
														
														
													
														
															
																 | 
																 | 
																| !!      | Repeat last command    | | 
																 | 
																 | 
																| !!      | Repeat last command    | | 
															
														
														
													
														
															
																 | 
																 | 
																| Tab key | Autocompletes          | | 
																 | 
																 | 
																| Tab key | Autocompletes          | | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																|---------|------------------------| | 
															
														
														
													
														
															
																 | 
																 | 
																|         |                        | | 
																 | 
																 | 
																|         |                        | | 
															
														
														
													
														
															
																 | 
																 | 
																|———+————————| | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																
 | 
															
														
														
													
														
															
																 | 
																 | 
																
 | 
																 | 
																 | 
																
 | 
															
														
														
													
														
															
																 | 
																 | 
																*** Package management  | 
																 | 
																 | 
																*** Package management  | 
															
														
														
													
														
															
																 | 
																 | 
																| Command                            | Debian               | | 
																 | 
																 | 
																| Command                            | Debian               | | 
															
														
														
													
														
															
																 | 
																 | 
																|————————————+-———————| | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																|------------------------------------|----------------------| | 
															
														
														
													
														
															
																 | 
																 | 
																| Install a package                  | sudo apt install vim | | 
																 | 
																 | 
																| Install a package                  | sudo apt install vim | | 
															
														
														
													
														
															
																 | 
																 | 
																| Upgrade the package in your system | sudo apt upgrade     | | 
																 | 
																 | 
																| Upgrade the package in your system | sudo apt upgrade     | | 
															
														
														
													
														
															
																 | 
																 | 
																|                                    |                      | | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																|————————————+-———————| | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																|------------------------------------|----------------------| | 
															
														
														
													
														
															
																 | 
																 | 
																|                                    |                      | | 
																 | 
																 | 
																|                                    |                      | | 
															
														
														
													
														
															
																 | 
																 | 
																
 | 
																 | 
																 | 
																
 | 
															
														
														
													
														
															
																 | 
																 | 
																*** Basic file editing with VIM | 
																 | 
																 | 
																*** Basic file editing with VIM | 
															
														
														
													
														
															
																 | 
																 | 
																*** Expanding the file system  | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																*** Expanding the file system  |