Unix command problem

following in UNIX operating system using the UNIX commands
Create three files with at least a paragraph of text. Print these three files using minimum number of UNIX commands.

Create a directory. Change its permission to Read only. Now try to copy a file in this directory. Record the outcome of the operation and explain it.(in unix)
LVL 6
xeroxzeroxAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

omarfaridCommented:
Is this a homework?
0
xeroxzeroxAuthor Commented:
if this is homework i'm not asking this question in here.
0
omarfaridCommented:
What commands you tried?
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

xeroxzeroxAuthor Commented:
If i know why i'm asking...
0
Gerwin Jansen, EE MVETopic Advisor Commented:
Depending a bit on which UNIX version you have, printing through cups for example is just as simple as this:

lp <filename>

When printing more that one file, just create a basic loop like this:

for file in file1 file2 file3; do lp ${file}; done;

And for your directory question, create it using mkdir <directory>, set to read only by removing the write permissions using chmod -w <directory>, try copying a file to it using cp <file> <directory>/ - use your terminal output as a starter for explaining what is happening.

Pls. try and post your experiences and feedback :)
0
gheistCommented:
echo * | xargs -n1 lp
0
xeroxzeroxAuthor Commented:
Thanks for your support,
ans1: quep-c name' name project.txt
ans2: create directory
MK DIR
Syntax mkdir[options] directory name
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
xeroxzeroxAuthor Commented:
I have find right solution for this question.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.