-
Notifications
You must be signed in to change notification settings - Fork 12
Monday, September 17, 2018 Shell Test
Meg Staton edited this page Sep 11, 2018
·
4 revisions
Come to PBB 154 to meet me for the test.
2:20 Hu, Jialin
2:25 Hendy, Justin Michael
2:30 Yao, Fei
2:35 Mishra, Swati
2:40 Duan, Ning
2:45 Huenemann, Jay
2:50 Kapoor, Beant
2:55 Mihelic, Robert Ivan
3:00 Tams, Robert Nielsen
3:05 Piacquadio, Kamille Ashton
3:10 Yates, Timothy Bradfi
3:15 Bennett, Morgan
3:20 Hu, Xiaoli
3:25 Peters, Samantha Lynn
3:30 Song, Yaxiong
3:35 Singh, Shikha
3:40 Brewer, William Thomas
3:45 Wyman, Chris
3:50 Furches, Anna Katherine
3:55 Fitzgerald, Katie
4:00 Niyikiza, Daniel
4:05 Clemmons, Brooke Ashley
4:10 Peters, Tracey Lee
4:15 Bonifer, Kyle S
4:20 Rafie, Saad Abd Ar
4:25 Sultana, Mst Shamira
4:30 Riley, Anne McCall
Examples:
- Log into the ACF (1 point)
- create a directory called xyz (1 point)
- create a file in xyz called myfile.txt (without going into the directory) (1 point)
- tell me the full file path to myfile.txt (1 point)
- put a line of text in my file.txt (1 point)
- cp a directory called cats from this location (1 point)
- tell me whats in that directory (1 point)
- show me the top of the file in cats called siamese.txt (1 point)
- etc.
If at any point you get lost, I'll get you back on track and you can still continue to get more points. So don't panic if things go a little sideways in the middle of this, just keep going and don't panic. You are going to do fine!
Know all commands from software carpentry lessons 1-3, a bit from 4. My primary interest is in testing if you get
- full versus relative file paths
- how to figure out where you are in the file system and navigate to other places (pwd, cd)
- how to create folders (mkdir)
- how to create, edit and look at the contents of files (touch, nano, cat, head, tail, >, >>)
- how to copy, remove, rename and move files and folders (cp, cp -r, rm, mv)
- how to learn about other commands (man)
- I'm not going to ask about wc, uniq, sort or pipes
- login
- make a directory named test
- copy the fruit folder into the test folder (note, the fruit folder has contents):
/lustre/haven/courses/EPP622-2018Fa/fruit
- change into the fruits folder
- list the contents
- create a file named apple.txt (there are two methods for this, either is fine)
- print the contents of clementine.txt to the shell terminal
- get the last ten lines of the peach.txt file and put into a new file called data.txt
- rename data.txt to peach2.txt
- what is the absolute path to peach2.txt?
- go back to your home directory
- delete the whole test folder