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
Rhetorical Criticism: It is the analysis of a wide range of items associated to using language to have an effect on an audience. It is frequently but not always applied to writing

why is health more than just the absence of disease

What is Gender? Gender refers to the socially constructed differences and relations between males and females. These vary widely among societies and cultures and change over ti


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

Question 1 Explain any five main features of Indian economy Question 2 Write short note on                         a) Gross domestic product (GDP)

Communication Theory as a Field: In the year of 1999 Craig wrote a landmark article "Communication Theory as a Field" which expanded the conversation about disciplinary identity i

Question: a) Explain the 10 warning signs which would indicate that attraction feelings towards clients may be putting you or your services at risk. b) What precautions

Problem 1 Solution-Focused Brief Therapy is most dissimilar in terms of underlying philosophy and assumptions with any approach which needs "working through" or intensive focu

What are the factors affecting wastage and stagnation? How you as a teacher can overcome these factors? Explain with illustrations.