Transcript LAB 2-A

Unix Lab
Create the Following Structure
/afs/umbc.edu/users/j/d/jdoe28/home/
Mail/
recipes/
pies/
apple.txt
peach.txt
courses/
cookies/
CMSC104/
choc_chip.txt
2
File System Navigation
•
•
•
•
Use tree or ls –R for tree visualization
Edit Apple.txt from Mail/
Edit choc_chip.txt from Pies/
Cd into cookies and go back to your home
directory- use pwd to see where you are
• When you are done.. Delete all the directories
created.
Man Page
• Create a sample file – mybio.txt for e.g.
• Read man for wc
• Print the number of lines, bytes ,words, length
of longest line of your file