unix, Other Subject

Assignment Help:

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

Related Discussions:- unix

Diplomacy is a tool of politics, QUESTION "Diplomacy is a tool of polit...

QUESTION "Diplomacy is a tool of politics". (a) What similarities or differences can you draw between diplomacy and politics? Diplomacy has been instrumental in shaping t

What do you mean by barriers of communication, Question 1 What do you mean...

Question 1 What do you mean by barriers of communication? Explain different types of barriers to communication Question 2 Explain the different types of listening Questio

Types of relationships, Types of relationships: A relationship is normally...

Types of relationships: A relationship is normally viewed as a connection between individuals, such as a romantic or intimate relationship, or a parent-child relationship. Individ

Ethics and Accountability Consultation Scenario, This extended discussion (...

This extended discussion (300–400 words) will require you to draw on several competencies you have acquired as you have progressed through this course. Consider the following scen

Importance of information technology, Importance of Information Technology:...

Importance of Information Technology: The prime importance of information technology with regards to education is that various learning resources can be instantly accessed by

Explain what is meant by counselling, Question 1: (a) With reference to...

Question 1: (a) With reference to literature and/or theories, explain what is meant by counselling. (b) Show six characteristics which counsellors display while conducting c

Identify cultural and social diversity, You are asked to share a snapshot o...

You are asked to share a snapshot of an older person (>65 years old). This may be a person within your local community, a family friend or relative. The aim of this presentation is

transitional words, Write a a paragraph in which you classify the general ...

Write a a paragraph in which you classify the general school subjects you like, subjects you have studied or are now studying in school (for example, chemistry, English and so fort

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd