Changes between Version 3 and Version 4 of cypress/BasicLinuxComands/Exercise
- Timestamp:
- 08/19/15 07:43:54 (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
cypress/BasicLinuxComands/Exercise
v3 v4 5 5 == Goal: Create a subdirectory in your home directory == 6 6 7 While logged into Cypress :7 While logged into Cypress, make a new subdirectory in your home directory: 8 8 * Navigate to your home directory by using the '''cd ~''' command. 9 9 * Check that you are in your home directory by using the '''pwd''' command. … … 15 15 }}} 16 16 17 Next:18 17 * Make a new subdirectory called "examples" using the '''mkdir''' command. 19 18 * Check that the directory was created by using the '''ls''' command. … … 25 24 }}} 26 25 26 Next, let's move some files into our new directory 27 27 * Move into the examples subdirectory using the '''cd command''' and the relative path directory examples 28 28 {{{ … … 38 38 }}} 39 39 40 Now, examine the contents of those files 41 42 * Use the '''cat''' command to examine the content of the numbers.txt file 43 {{{ 44 [tuhpc002@cypress1 examples]$ cat numbers.txt 45 01 46 02 47 03 48 04 49 05 50 06 51 07 52 08 53 09 54 10 55 [tuhpc002@cypress1 examples]$ 56 }}} 57 58 * Use the '''tail''' command to list the last 4 lines of the numbers.txt file 59 {{{ 60 [tuhpc002@cypress1 examples]$ tail -4 numbers.txt 61 07 62 08 63 09 64 10 65 [tuhpc002@cypress1 examples]$ 66 }}} 67 68 * Invoke the '''head''' command to list the first 5 lines of the alphabet.txt file 69 {{{ 70 [tuhpc002@cypress1 examples]$ head -5 alphabet.txt 71 a 72 b 73 c 74 d 75 e 76 [tuhpc002@cypress1 examples]$ 77 }}} 78 79 Lastly, let's practice copying, moving, and removing files 40 80 * Copy the contents of the textfiles directory to your examples directory using the '''cp''' command 41 81 * Use the '''ls''' command to ensure that you've transferred the correct files to the correct directory