difference of " ls -l " and " ll " commands
Hi All,
As I was browsing the console, I type ls -l on one console and ll on the other. Noticed that they both generated the same values. Out of curiosity and for additional knowledge, may I ask what is the difference between the two and why both of them generated sthe ame output. --- [hpsindia@ACSS-SDDBEASRV02 batch]$ ls -l total 40 drwxr-xr-x 3 hpsindia hps 4096 Mar 21 21:03 bin drwxr-xr-x 3 hpsindia hps 4096 Apr 13 08:44 common drwxr-xr-x 3 hpsindia hps 4096 Mar 21 21:06 dtd drwxr-xr-x 2 hpsindia hps 4096 Mar 21 21:06 old drwxr-xr-x 38 hpsindia hps 4096 Mar 21 21:07 run --- [hpsindia@ACSS-SDDBEASRV02 batch]$ ll total 40 drwxr-xr-x 3 hpsindia hps 4096 Mar 21 21:03 bin drwxr-xr-x 3 hpsindia hps 4096 Apr 13 08:44 common drwxr-xr-x 3 hpsindia hps 4096 Mar 21 21:06 dtd drwxr-xr-x 2 hpsindia hps 4096 Mar 21 21:06 old drwxr-xr-x 38 hpsindia hps 4096 Mar 21 21:07 run --- Thanks >_< |
The ll command is an alias, the ls -l command is not.
Execute the following command to see which aliases are set: alias You'll probably see an entry like this: alias ll='ls -l' Aliases can be used for many things, not having to type the entire command is one reason to use them (unix/linux admins are lazy ;) ) Have a look here for more info: The alias Command |
ll is nothing but the 'alias' for ls -l
---------- Post added 04-19-13 at 09:58 AM ---------- http://tldp.org/LDP/abs/html/aliases.html |
I used to keep quick alias to 'change directory' like,
alias s='cd path/to/my/sandbox' |
ll is not any command or command option, so simply invoke alias command and you will come to know what alias is ll.
Code:
~$ alias |
All, thanks for the advise. Verified and it is indeed an alias. New Knowledge aquired. >___<
|
All times are GMT -5. The time now is 01:51 AM. |