LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-19-2013, 03:52 AM   #1
awtz
LQ Newbie
 
Registered: Apr 2013
Location: Manila
Posts: 23

Rep: Reputation: Disabled
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 >_<
 
Old 04-19-2013, 03:57 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389
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

Last edited by druuna; 04-19-2013 at 04:00 AM. Reason: fixed typo: no -> not
 
2 members found this post helpful.
Old 04-19-2013, 03:58 AM   #3
tsenapathy
LQ Newbie
 
Registered: Apr 2013
Posts: 2

Rep: Reputation: Disabled
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
 
Old 04-19-2013, 04:01 AM   #4
tsenapathy
LQ Newbie
 
Registered: Apr 2013
Posts: 2

Rep: Reputation: Disabled
I used to keep quick alias to 'change directory' like,
alias s='cd path/to/my/sandbox'
 
Old 04-19-2013, 04:15 AM   #5
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
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
 
Old 04-19-2013, 04:16 AM   #6
awtz
LQ Newbie
 
Registered: Apr 2013
Location: Manila
Posts: 23

Original Poster
Rep: Reputation: Disabled
All, thanks for the advise. Verified and it is indeed an alias. New Knowledge aquired. >___<
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
newbie question: whats the difference between "su root", "su" and "su -&quo mojarron Slackware 9 12-07-2009 04:08 PM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 10:18 PM
Can you explain the difference between "Free Software (GNU)" and "Open Source"? vharishankar General 5 03-03-2005 09:40 AM
what is difference between "reset" and "clean " commands? zameer_india Linux - Newbie 2 01-10-2005 06:23 AM
difference between "Web server local URL" and "IPv4 address"? kpachopoulos Linux - General 2 09-17-2004 01:30 PM


All times are GMT -5. The time now is 12:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration