Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 497
  • Last Modified:

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)
0
xeroxzerox
Asked:
xeroxzerox
3 Solutions
 
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
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
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
 
xeroxzeroxAuthor Commented:
I have find right solution for this question.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now