User Tools

Site Tools


directories

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
directories [2018/08/30 10:32]
dokuroot created
directories [2018/08/30 10:39] (current)
dokuroot
Line 9: Line 9:
 **Useful UNIX commands for the exercises below **(see unix_commands.pdf for a more complete list)**:** **Useful UNIX commands for the exercises below **(see unix_commands.pdf for a more complete list)**:**
  
-  * To create a new directory use **mkdir**.+  * To create a new directory use ''​mkdir''​.
     ​     ​
   * To change directories use ''​cd''​.   * To change directories use ''​cd''​.
Line 19: Line 19:
   * To change into any directory from anywhere use ''​cd /absolute path to directory''​.   * To change into any directory from anywhere use ''​cd /absolute path to directory''​.
   ​   ​
-  * To move up one directory and down to another directory use ''​../​dir''​.+  * To move up one directory and down to another directory use ''​cd ../​dir''​.
   ​   ​
   * To access content within another directory provide the path to that directory. ​ For example, ''​ls /absolute path to directory''​.   * To access content within another directory provide the path to that directory. ​ For example, ''​ls /absolute path to directory''​.
  
-  * To go to the beginning of a line in the shell, use **ctrl+a**.+  * To go to the beginning of a line in the shell, use ''​ctrl+a''​.
  
-  * To go to the end of a line in the shell, use **ctrl+e**.+  * To go to the end of a line in the shell, use ''​ctrl+e''​.
  
-  * To delete text preceeding cursor in the shell, use **ctrl+u**.+  * To delete text preceeding cursor in the shell, use ''​ctrl+u''​.
  
-  * To scroll back or forth in the command history use the **up** and **down** **arrow** keys.+  * To scroll back or forth in the command history use the ''​up'' ​and ''​down'' ​arrow keys.
  
-  * To autofill text, use **tab**.  This is highly recommended in order to minimize typos.+  * To autofill text, use ''​tab''​.  This is highly recommended in order to minimize typos.
  
  
Line 42: Line 42:
   $ mkdir FortCollins   $ mkdir FortCollins
  
-**3.** Change into ''​FortCollins''​ using **cd**:+**3.** Change into ''​FortCollins''​ using ''​cd''​:
  
   $ cd FortCollins   $ cd FortCollins
Line 68: Line 68:
   $ cd   $ cd
  
-**9.** List the contents of food.txt from your home directory:+**9.** List the contents of ''​food.txt'' ​from your home directory:
  
   $ ls /path to Likes   $ ls /path to Likes
  
-**10.** Change into the Likes directory:+**10.** Change into the ''​Likes'' ​directory:
  
   $ cd /path to Likes   $ cd /path to Likes
Line 92: Line 92:
   $ echo least favorite place to each >>​food.txt   $ echo least favorite place to each >>​food.txt
  
-**15.** In one line change into the ''​Likes''​ directory:+**15.** Using only one command ​change into the ''​Likes''​ directory:
  
   $ cd ../Likes   $ cd ../Likes
Line 100: Line 100:
 ====★ Independent Exercise ==== ====★ Independent Exercise ====
  
-During the exercise, practice using **ctrl+a** to go the beginning of a line, **ctrl+e** to go the end of a line, and **ctrl+u** to delete text. Examine the contents of the directory you make from both the command line and the Finder GUI. +During the exercise, practice using ''​ctrl+a'' ​to go the beginning of a line, ''​ctrl+e'' ​to go the end of a line, and ''​ctrl+u'' ​to delete text. Examine the contents of the directory you make from both the command line and the Finder GUI. 
  
 **1.** Change into your ''​home''​ directory and make a new directory called ''​One''​. **1.** Change into your ''​home''​ directory and make a new directory called ''​One''​.
Line 119: Line 119:
  
 \\ \\
- 
- 
directories.1535646765.txt.gz · Last modified: 2018/08/30 10:32 by dokuroot