I'm relatively new to programming as a whole and some tutorials have been telling me to use
ls -l to look at files in a directory and others have been saying
ll. I know that
ls is a short list, but is there a difference between the other two?
On many systems,
ll is an alias of
$ type ll ll is aliased to `ls -l'
They are the same.
ll is often defined as an alias of
ls -l. In fact,
ls is often an alias itself:
$ which ls alias ls='ls --color=auto' /usr/bin/ls
The actual command is
ls which above is found in
ll is intended as a convenience, but you cannot rely on it being defined on all *nix systems, so it is good to know what it is really doing.
laike9m@laike9m1:~$ type ll ll is aliased to `ls -alF'
In most cases,
ll does not work in shell scripts.
ll is an alias for
-l tells the command to use a long list format. It gives back several columns, not shown when the simple
ls command is used. These columns include:
Number of hardlinks
ll is actually aliased to `ls -l' If you run ll, then it will show you files in the shell then you to press Enter to see the next files (more.. option). If you run ls -l, then all files will be displayed at a time.
protected by Community♦ Jul 18 '16 at 18:38
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?