Linux® Directory Log

To: Facilitator’s name
From: Your name
Date: mm/dd/yyyy

Directions: As you complete each step listed below, keep track of what occurs at each point: what you type and the output given, and if you experience any errors. Record the occurrences in the matrix below.

What to submit: You need to submit the screen shots of your unix screen where you type commands.

Here is a sample screen. You can show in multiple screens or in one screen.
A. Create 2 directories under your home, account1 and account2

B. Change your directory to account1

C. Create 2 directories called checking1 and savings1

Here is the assignment:
1. Open a terminal and show the log how you create the following: (5 marks)
A. Create 2 directories under your home, account1 and account2
B. Change your directory to account1
C. Create 2 directories called checking1 and savings1
D. Go to checking1 directory
E. Using touch command, create two files c1.dat and c2.dat
F. Change your directory to savings1 using relative path
G. Using touch command, create two files s1.dat and s2.dat
H. Go to your home directory
I. Change your directory to account2
J. Create 2 directories called checking2 and savings2
K. Go to checking2 directory
L. Using touch command, create two files c3.dat and c4.dat
M. Change your directory to savings2 using relative path
N. Using touch command, create two files s3.dat and s4.dat
O. Change to account1 directory
2. Show the commands for the following. (5 Marks)
(Each carries 1 mark from A to E and in each one mark, ½ is for the command and ½ for the output)
A. You are now in account1 directory. Copy s1.dat to this directory using relative path. Show the new file that copied with ls command from this directory. Do not change the directory.
Ans:
B. Move c1.dat to savings1 directory using relative path as s1.dat. Show s1.dat with ls command from this directory. Do not change the directory.
Ans :
C. Change your directory to savings2 using absolute path. Show the current directory after you changed.
Ans:
D. Copy c2.dat to your sibling directory, checking2 using relative path (Sibling directories have same parent) (Also do not use ~ ). Show c2.dat with ls command from this directory, do not change the directory .
Ans:
E. Move s4.dat to savings1 directory using absolute path. Show s4.dat with ls command from this directory, do not change directory
Ans:

CategoriesUncategorized