Create an alias that translates the command ls into ls –l. Test the alias. Give an ls command that does not use the alias. Remove the alias and show that the alias no longer exists.

What will be an ideal response?

$ alias ls='ls -l'
$ ls
-rwxr-xr-x. 1 max pubs 145 Oct 19 14:21 cptobak
-rwxr-xr-x. 1 max pubs 82 Oct 19 14:06 first
-rwxr-xr-x. 1 max pubs 82 Oct 19 14:21 first.bak
-rwxr-xr-x. 1 max pubs 151 Oct 19 16:24 mine
-rwxr-xr-x. 1 max pubs 28 Oct 19 13:52 short
$ \ls
cptobak first first.bak mine short
$ unalias ls
$ ls
cptobak first first.bak mine short

Computer Science & Information Technology

You might also like to view...

Which of the following searches through a string object from right-to-left?

ind b. find_first_of c. find_last_of d. find_first_not_of

Computer Science & Information Technology

If your address bus is 16-bits wide, approximately how much memory can your computer address?

A. 64K bytes B. 1024K bytes C. 4G bits D. 64K bits

Computer Science & Information Technology