|
|
@@ -3,14 +3,14 @@
|
|
3
|
3
|
## Objectives
|
|
4
|
4
|
|
|
5
|
5
|
1. In this lab students will learn to navigate their file system using only the terminal
|
|
6
|
|
-2. Students will practice using the following commands to traverse directories and investigate their contents: `pwd`, `ls`, `cd`, `cat`, `less`, `grep`...
|
|
|
6
|
+2. Students will practice using the following commands to traverse directories and investigate their contents: `pwd`, `ls`, `cd`, `cat`, `less`, `grep`.....
|
|
7
|
7
|
|
|
8
|
8
|
|
|
9
|
9
|
## Overview
|
|
10
|
10
|
|
|
11
|
11
|
The console (also referred to as the command line, terminal, or shell) is an essential tool for programmers to be familiar with. The command line shell we will be using is called Bash. This lab will focus on the basics for navigating and investigating the file system through the command line. In this lab we will only be using the command line in interactive mode (more on that in the Bash labs). Here are the commands we will focus on:
|
|
12
|
12
|
|
|
13
|
|
-- `pwd` - "Print Working Directory" prints out your current location (known as your current working directory or 'cwd')
|
|
|
13
|
+- `pwd` - "Print Working Directory" prints out your current location (known as your current working directory or 'cwd')....
|
|
14
|
14
|
- `ls` - lists contents of the cwd
|
|
15
|
15
|
- `cd` - change directory. This is how you move around the file system. You can specify the destination as an absolute or relative path.
|
|
16
|
16
|
- `echo` - prints text to the terminal
|