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
Question 1: "There is only one social responsibility of business: to use its resources and engage in activities designed to increase its profits" (Milton Friedman, 1970) (a

Question 1 How have both the World Wars and League of Nations affected international politics? Question 2 Define globalization. Also analyse Terrorism as a global threat

Benefits Smart cards can be used for recognition, authentication, and data storage. Smart cards offer a means of implementation business transactions in a flexible, secur

How does an understanding of group work and team building assist in increasing organizational performance? Use examples from theory and practice to illustrate your answer.

QUESTION 1 Governance may be viewed as a new method by which society is governed. What are the important characteristics which contribute to the achievement of Good Governance?

think about a specific healthcare organization: Are there any differences for creating an effective delivery system? Who are the important stakeholders in a healthcare delivery sys


New Media: We define "new media" as interactive forms of communication that use the Internet, including podcasts, RSS feeds, social networks, text messaging, blogs, wikis, virtual

Components of a GIS: A working GIS integrates these five key components: hardware, software, data, people, and methods. Do your experts should provide Components of a GIS Quest

Question 1: (a) Describe deviant workplace behaviour and give three examples of such behaviour. (b) Explain the types of deviances as stated by Bennet and Robinson. (c) Show