Unix command problem

Posted on 2012-03-19
Last Modified: 2012-03-25
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)
Question by:xeroxzerox
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 40

Expert Comment

ID: 37738752
Is this a homework?

Author Comment

ID: 37738785
if this is homework i'm not asking this question in here.
LVL 40

Expert Comment

ID: 37738793
What commands you tried?
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.


Author Comment

ID: 37738813
If i know why i'm asking...
LVL 38

Assisted Solution

by:Gerwin Jansen, EE MVE
Gerwin Jansen, EE MVE earned 250 total points
ID: 37739422
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 :)
LVL 62

Assisted Solution

gheist earned 250 total points
ID: 37741481
echo * | xargs -n1 lp

Accepted Solution

xeroxzerox earned 0 total points
ID: 37745810
Thanks for your support,
ans1: quep-c name' name project.txt
ans2: create directory
Syntax mkdir[options] directory name

Author Closing Comment

ID: 37762430
I have find right solution for this question.

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Zimbra on Amazon Linux help 7 159
NTPD Client Port Usage 12 94
Equivalent of WSUS for Solaris, AIX and Cisco devices 11 137
Linux 6 37
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Join Greg Farro and Ethan Banks from Packet Pushers ( and Greg Ross from Paessler ( for a discussion about smart network …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question