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).
- Create a new folder named Spring2020
- Change directory to the Spring2020 directory
- 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
- Change the name of cpsc207.txt to be junk.txt
- Make a copy of junk.txt with the name junk2.txt
- 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:
- 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)
- Remove all of the files with the extenstion txt from the current directory
- Remove the directory named Spring2020
Unix Script Command
- Issue the command script linux.txt
- Complete your answers to the 1-9 above for Linux
- Enter Control-d (hold down the Ctrl key and hit D)
- Place linux.txt in your D2L drop box
- ftp it to windows using Filezilla, then upload it
- You can use filezilla. For hostname, use sftp://obsidian.sru.edu
Windows Transcript Command
You need to be in PowerShell to do this
- Issue the command start-transcript windows.txt
- Complete your answers to the 1-9 above for Windows
- rename does not work in Powershell. Use ren instead
- Issue the command stop-transcript
- Place windows.txt in your D2L drop box
Please make sure to look at the assessment form that will be used
for grading in D2L.