Aliases

Completed Posted Apr 22, 2004 Paid on delivery
Completed Paid on delivery

Directly from assignment document:

This project requires you to implement aliases:

1. Aliases are customized names that can be given to commands by the user, and then these names are treated as commands:

%alias myls ls -a

or

%alias myls "ls -a"

%myls

myls will now do the same as if you had typed in "ls -a"

2. If a unix command and an alias have the same name, then the alias should be executed:

%alias ls "ls -F"

%ls

after having the alias created, the "ls" will actually execute "ls -F".

3. The alias command is not a unix command, it;s a shell bulit in command like exit.

4. If the user types in just "alias" and one argument. The one argument is treated as a command name, then if an alias exist it will be printed on the screen:

%alias myls

myls is alias for ls -a

5. If the user types in just "alias" and no other arguments, then all of the aliases should be shown: (the order does not matter)

%alias

myls ls -a

ls ls -F

6. There should be a way to load aliases from any file. The "loadaliases" command is a built in command and should be used as below:

%loadaliases [url removed, login to view]

This comman has one argument, which can be any filename. The alias definitions in the file should be added to the current list of aliases. The file being loaded should be formatted as below:

myls ls -a

ls ls -F

7. There should be an unalias built in command to remove an alias:

%unalias myls

%myls

myls: command not found

The command not found message should be the same message that is printed when any command is not found

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

2) COMMENTS, COMMENTS, COMMENTS!

3) Attached is the code and header file to be updated with the alias functionality.

## Platform

Unix platform

C Programming Engineering Linux MySQL PHP Software Architecture Software Testing UNIX

Project ID: #3184715

About the project

6 proposals Remote project Active Apr 23, 2004

Awarded to:

pretzelvw

See private message.

$20 USD in 3 days
(21 Reviews)
3.8

6 freelancers are bidding on average $28 for this job

dkkvw

See private message.

$12.75 USD in 3 days
(79 Reviews)
5.8
zatvw

See private message.

$42.5 USD in 3 days
(6 Reviews)
4.1
pikemanvw

See private message.

$51 USD in 3 days
(30 Reviews)
4.0
ansla

See private message.

$21.25 USD in 3 days
(3 Reviews)
1.7
huami

See private message.

$21.25 USD in 3 days
(3 Reviews)
1.5