Assignment 1

Due: February 3 rd
20 points

Both Unix/Linux and Windows have a similar set of commands at the command level. You will be submitting 2 outputs to the D2L dropbox - one created in windows and the other created on obsidian For each of the actions below, give both the Linux and the Windows command to perform the operation.
Under the Unix operating system, use the script command to record the commands you issue and the output (see directions below).
Under the Windows operating system, use the start-transcript command to record the commands and their output (see directions below).

  1. Create a new folder named Spring2020
  2. Change directory to the Spring2020 directory
  3. Create a file in the Spring2020 directory named cpsc207.txt
    In Unix, issue the command: echo abcdefghijk > cpsc207.txt
    In Windows, issue the command: echo abcdefghijk > cpsc207.txt
  4. Change the name of cpsc207.txt to be junk.txt
  5. Make a copy of junk.txt with the name junk2.txt
  6. Copy junk.txt to the temporary directory of the file system and give it a name of abc1234.txt where abc1234 is your userid
    the linux temporary directory is /tmp
    Depending on your OS, the Windows temporary directory might be found in C:/TEMP, or in c:/Windows/temp. If you cannot find your TEMP directory, create one directly under C:
  7. Give a SINGLE command to display the names of all of the .txt files in the current directory (hint: review the * wildcard character from chapter 1)
  8. Remove all of the files with the extenstion txt from the current directory
  9. Remove the directory named Spring2020
Unix Script Command Windows Transcript Command You need to be in PowerShell to do this Please make sure to look at the assessment form that will be used for grading in D2L.