Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
-
The problem statement, all variables and given/known data:
Hi, since I'm relatively new to Unix I need some help. I've installed FreeBSD 8 on a virtual machine and I've done most of the tasks but don't know if I'm right or wrong ;/
Here it goes: -
Why do folders /bin and /usr/bin usually come out at the first place as an output of the command echo $PATH?
-
Explain what would be the result of the command $ `date`
-
You want to concatenate the two files foo1 and foo2 but you have to put some text from the command line between them too. How would you do that?
-
If a command procedure contains a command:
echo ${d-'*'}
what would come out? -
Can you use sh < foo.sh instead of sh foo.sh to execute a script?
-
Relevant commands, code, scripts, algorithms:
echo $PATH
$ `date`
echo ${d-'*'} -
The attempts at a solution (include all code and scripts):
Ok, first of all I don't know why but I can't create files to test some commands ;/ I mean I write for example cat >file1 and it says "Cannot create file1. Read-only file system."
Here are my answers dunno if I'm right or wrong so please help me :] -
Because in those folders are the most important system scripts, files etc. that are being used when the operating system loads
-
In my case it came out: Thu: not found.
But when I change `` to ' ' it says the correct date. Is that the catch here? -
Aah maybe:
cat >>foo1 foo2 >foo3 or maybe not?^^ -
It prints out - * ?
-
I'm not sure about that one - maybe you can, because < is used for input
Thanx a lot
- Complete Name of School (University), City (State), Country, Name of Professor, and Course Number (Link to Course):
New Bulgarian University, Sofia, Bulgaria, N.Gadjev, CSCB584 UNIX
Note: Without school/professor/course information, you will be banned if you post here! You must complete the entire template (not just parts of it).