Homework 2
Name: Unity ID:
Terminal Practice
For this section you will need to log into your terminal and execute the correct answers AND write what you
wrote in the terminal window in the space provided below each question
or receive half credit on each
question. Unless otherwise specifically stated, you are allowed to use relative path names. Your answers
should be highlighted in yellow.
1. Log into your terminal window. Begin a log file named homework2.txt. It is probably best that you use
one of the options associated with this command that will log your actions in real time. You should
NOT exit until prompted to do so later in this document.
Command: script –f homweork2.txt
2. Using a command, find more information on the move command via the terminal window.
Command: man mv
3. Which command would display the absolute pathname to your current directory on your screen? You
should execute that command now and note where you are located.
Command: pwd
Output (Location): /afs/unity.ncsu.edu/users/d/dupatel/MyE115
4. Create a directory named Homework2 and make sure that it is in your MyE115 directory. Execute this
command to work no matter where you are in the file tree, in one command line.
Command: mkdir Homework2
5. From your current location, change directories to the E 115 course locker using the absolute