Linux-Group3 – homework for week end

Hi Friends

Please do the following exercise.

Exercise :1

Create directory following directories under /tmp

country/usa
country/mexio
food/american
food/mexican

Exercise:2
Create following files  under /tmp/country/usa:
tx.txt
ny.txt
cl.txt
az.txt

Create following files under /tmp/country/mexico:
juarez.txt
cebu.txt
mex.txt

Create following files under /tmp/food/american
burger.txt
fries.txt

Create following files under /tmp/food/mexican
taco.txt
bean.txt

Exercise:3

Add the following lines in following files:

in file tx.txt    —add line   > this is texas  state
in file ny.txt  —add line > This is newyork  state
in file cl.txt — add line —> this is California state
in az.txt —  add line   — > this is arizona
in juarez.txt —  add line   — > this is juarez
in cebu.txt —  add line   — > this is cebu
in mex.txt —  add line   — > this is mexico

Exercise 4:

create tar under /tmp/country  —> move the tar file to /tmp/food & extract

create tar under /tmp/food   —> —> move the tar file to /tmp/country & extract

Leave a Comment

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>