Changes between Version 3 and Version 4 of cypress/BasicLinuxComands/Exercise


Ignore:
Timestamp:
08/19/15 07:43:54 (9 years ago)
Author:
cmaggio
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • cypress/BasicLinuxComands/Exercise

    v3 v4  
    55== Goal: Create a subdirectory in your home directory ==
    66
    7 While logged into Cypress:
     7While logged into Cypress, make a new subdirectory in your home directory:
    88* Navigate to your home directory by using the '''cd ~''' command.
    99* Check that you are in your home directory by using the '''pwd''' command.
     
    1515}}}
    1616
    17 Next:
    1817* Make a new subdirectory called "examples" using the '''mkdir''' command.
    1918* Check that the directory was created by using the '''ls''' command.
     
    2524}}}
    2625
     26Next, let's move some files into our new directory
    2727* Move into the examples subdirectory using the '''cd command''' and the relative path directory examples
    2828{{{
     
    3838}}}
    3939
     40Now, 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
     4501
     4602
     4703
     4804
     4905
     5006
     5107
     5208
     5309
     5410
     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
     6107
     6208
     6309
     6410
     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
     71a
     72b
     73c
     74d
     75e
     76[tuhpc002@cypress1 examples]$
     77}}}
     78
     79Lastly, let's practice copying, moving, and removing files
    4080* Copy the contents of the textfiles directory to your examples directory using the '''cp''' command
    4181* Use the '''ls''' command to ensure that you've transferred the correct files to the correct directory