Results 1 to 2 of 2
Hi
It is my first time to use Ubuntu. i find it easy to use but not as windows.
any way i do have some questions for you guys if ...
- 09-16-2011 #1Just Joined!
- Join Date
- Sep 2011
- Posts
- 2
Long time just to figure out
Hi
It is my first time to use Ubuntu. i find it easy to use but not as windows.
any way i do have some questions for you guys if you can help me out.
our teacher ask as to do some of command in Terminal or shell i did some of
it but i could not complete
here is what is the problem
a. In your home directory create a new directory called cosc2306.
i did this one with this command
mkdir cosc2306
b. In your cosc2306 directory create a new directory called a1.
then i did this command
cd cosc2306
then
mkdir a1
c. In your a1 directory create a new file called firstfile that contains the
text “Hello World!”
i did this command
cd cosc a1
then
cat > firstfile.txt
d. Make a copy of firstfile called secondfile.
i did this command
cp firstfile.txt secondfile
e. Output a list of all users currently logged into the system and save this output
to a file called UseRs.
i stuck here
f. Output the contents of the file UseRs.
g. Exit the script command.
h. Move the output file question1 to cosc2301/a1 for markin
can any body help me and explain to me the rest please
this is part two
a. Using only one command create 4 directories at once called sub1 which is in
directory a1, sub2 which is located in sub1, sub3 which is in sub2 and
sub4 which is in sub3. (If you are unable to do this in one command then
you can complete it in multiple commands with a small deduction).
b. Do not change directories (i.e. stay in cosc2306/a1) and delete directory
sub4.
c. Again, do not change directories and touch an empty file called testfile
in sub3.
d. Do not change directories and delete sub3 using only one command (Hint:
you may need to delete the directory sub3 and it’s contents simultaneously).
e. Do not change directories and delete directory sub1.
f. Exit the script command.
g. Move file question2 to cosc2301/a1 for marking.
thanks
- 09-16-2011 #2
Hello and Welcome!

While we do love helping, unfortunately homework questions are against Forum Rules.Jay
New users, read this first.
New Member FAQ
Registered Linux User #463940
I do not respond to Private Messages asking for Linux help. Please, keep it on the public boards.



