|
CS256 - Principles of Structured Design
Fall 2021
|
Displaying ./code/cs256su21code/h1/cmd.txt
H1 (10pts) Name:
Due: May 26 @11:59PM EDT
Using a text editor of your choice, edit this file and answer the following questions.
Each question is worth 1/2 a point
** Section 1 - Fill in the Blank **
Give me a command that does the following:
1. list contents of a directory:
2. create a directory:
3. change directory:
4. copy a file:
5. move or rename a file:
6. remove a file:
7. clear the screen:
8. view information about a command:
9. program we're using to check out and submit assignments on the CS server:
10. prints contents of a file to the terminal:
** Section 2 - Commands **
1. If I just wanted to go to my home directory from wherever I'm at in the file
system, what command would I type?
2. If I were using the terminal (or command prompt)and i wanted to log in to my cs25600 account, what command
would I type?
3. If I wanted to make a copy of file a1 and call it a2, what should I type?
4. I want to go to the parent directory, what would I type?
5. How would I save a file in nano?
6. If I wanted to view the hidden files of my current directory, what should I type?
7. I want to view the first five lines of shakespeare.txt, assuming that this file is in my current directory
what would I type?
8. I need to change my password. What command would I use?
9. I'd like to see who else is logged on the server i'm on right now. What should I type?
10. I'm done with everything now. How do I log out of the server?
|