Share
Explore BrainMass

Using Unix alias to emulate DoS commands

Assume you are an experienced DOS programmer and you want to write UNIX shell scripts using DOS commands. Use the alias command so you can type the follow DOS commands and perform UNIX functions:

a. Clear screen (cls)
b. Directory (dir)
c. print out the contents of a file (type)
d. Make a directory (md)
e. Change directory (cd)
f. Delete a file (del)
g. Copy a file (copy)

Solution Preview

# Lines beginning with # are comments. They are ignored by the interpreter
# You can type the following in your .bashrc (note the . in front) then re-login
# to start using these DOS commands as aliases in your Unix ...

Solution Summary

Learn how to use alias to use different names for your favorite Unix commands

$2.19