Quote:
Originally Posted by isurues 1)Dir command in windows is used to displays a list of files and subdirectories in a directory. It allows following options with it.
a./D - Sort by coloumns
b./N - Show long list format
c./OD - Sort by oldest to newest
d./O-D - Sort by newest to oldest
e./P - Pause after each screenful of information
f./S - Recursive listing
Write a shell script that enables dir command on terminal.
Hint : Name your script by name “dir” and add the path of the script to the $PATH. Check the man page for ls command to find the equivalent linux options for the options stated above.
i dont wanna answer for this problem.. need some details ...and tha way i can find a solution |
Hiya isurues,
Welcome to the forums.
This sounds like a homework assignment, which is against the forum rules. But you're only asking for details, so I think thats ok.
All I can suggest to you is, read the man pages for ls and dir, try the info pages too. Good Luck.