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
Occupational Health & Safety Observation Report of a Construction site.

QUESTION 1 (a) Decisions on service location involve a trade-off between the needs of the producer and those of the consumer. Discuss the main factors which must be considered

Question 1: (a) The practice of Counseling is referred to as a "Western Creation". Determine intersections of compatibility and/or incompatibility by comparing and contrastin

Problem 1: (a) With reference to relevant literature and / or theory, explain what is meant by counselling. (b) Justify six key reasons why secondary institutions shoul

Question 1 Public administration is an integral part of the social, cultural and economic life of a nation. In view of this statement explain the significance of Public administr

Consistent with the American Association of Orthodontists, Dr. Haines recommends that children receive their initial orthodontic evaluation no later than age 7.  Depending on the f

QUESTION Outsourcing if done right can benefit an organization. However, if wrong decision is taken, it can cost the organization not only in terms of time and money but also i

Question 1 Describe Plato's concept of education Question 2 Critically Describe Locke's Social Contract Theory Question 3 Describe  Bentham's views on jurispru

Question 1: (a) Does the Gillick decision help counsellors and therapists to best meet their professional responsibilities to children, parents and education authorities? Dis

Develop a clinical question relating to one of the patient care/nursing intervention in the case study using PICO format (problem, intervention, comparison of interventions, outcom