unix, Other Subject


1. Write a script called “myls” that will perform similarly to how the ls command does.
Start by making myls print out all files in the present directory.
2. Next, make the script print out all files in a different directory.
3. Next, make the script prompt the user to enter a directory (interactively) and print all
files in the specified directory.
4. Now, enhance the script so that it will print * beside each executable file in the
directory, and d beside directories. It should also print out the read/write permissions
as r and w (if you have them – if not, it should just print a - instead).
5. Finally, to make your myls that much more professional looking, modify it so that it
will take the directory as a command line argument, rather than an interactive prompt.
In other words, you should be able to run it as:
./myls /home/instructor/file
Posted Date: 5/5/2012 11:03:17 AM | Location : United States







Related Discussions:- unix, Assignment Help, Ask Question on unix, Get Answer, Expert's Help, unix Discussions

Write discussion on unix
Your posts are moderated
Related Questions
12 friends share 4 pizza equally. What fraction of a pizza will each friend get


Environmental Conservation and Restoration: The Conservation & Restoration Ecology major teaches students to employee ecological principles to restore terrestrial systems (, range

Provided an example of secondary social group.

What is health care ethics? Patients, families, and health care professionals sometimes face difficult decisions about medical treatments that involve moral principles, religio

Difficulties in Accessing Health Services in Rural Areas and Remote Australia Health facilities in rural areas and remote Australia are mostly inaccessible because they are lo

1. explain why it is important to put observations in writing. How can observation enrich our writing? 2. At what point could making an observation halt or obstruct the writing pr

how to write a news report ?

Roman thoughts: The Romans, according to the politician Cicero and orator, excelled all other peoples in the unique wisdom that made them realize that everything is subordinate to