|
|
Difference between dir and ls
Hi,
By POSIX standard, is there any difference between dir and ls.
greenhorn
|
|
0
|
|
|
|
Reply
|
teachgreenhorn (40)
|
4/4/2005 6:17:32 PM |
|
"Greenhorn" <teachgreenhorn@yahoo.com> wrote:
>Hi,
> By POSIX standard, is there any difference between dir and ls.
>
> greenhorn
According to POSIX, /ls/ is a program to list directory
contents; and /dir/ doesn't exist.
--
Floyd L. Davidson <http://web.newsguy.com/floyd_davidson>
Ukpeagvik (Barrow, Alaska) floyd@barrow.com
|
|
0
|
|
|
|
Reply
|
floyd
|
4/4/2005 7:00:01 PM
|
|
"Greenhorn" <teachgreenhorn@yahoo.com> writes:
> Hi,
> By POSIX standard, is there any difference between dir and ls.
>
> greenhorn
Yes, one BIG difference. ls is a POSIX command. dir is nothing.
http://www.opengroup.org/onlinepubs/009695399/
(search for: dir)
--
__Pascal Bourguignon__ http://www.informatimago.com/
The mighty hunter
Returns with gifts of plump birds,
Your foot just squashed one.
|
|
0
|
|
|
|
Reply
|
Pascal
|
4/4/2005 7:00:40 PM
|
|
In article <1112638652.515894.207330@l41g2000cwc.googlegroups.com>,
"Greenhorn" <teachgreenhorn@yahoo.com> wrote:
> Hi,
> By POSIX standard, is there any difference between dir and ls.
There is no dir command in POSIX.
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
|
|
0
|
|
|
|
Reply
|
Barry
|
4/4/2005 7:15:36 PM
|
|
Greenhorn wrote:
> By POSIX standard, is there any difference between dir and ls.
There's no official dir command in POSIX. A lot of Linux distributions
and the like make dir an alias for ls in their shell profiles. You can
verify this is probably what's happening by typing:
which dir
--
Erik Max Francis && max@alcyone.com && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
Hate come gratis / I connected every kind
-- Lamya
|
|
0
|
|
|
|
Reply
|
Erik
|
4/4/2005 9:07:28 PM
|
|
|
4 Replies
937 Views
(page loaded in 0.212 seconds)
Similiar Articles: Difference between dir and ls - comp.unix.programmerHi, By POSIX standard, is there any difference between dir and ls. greenhorn ... The difference between return and exit()? - comp.unix.programmer ...Difference between dir and ls - comp.unix.programmer Hi, By POSIX standard, is there any difference between dir and ls. greenhorn ... ... http://www.informatimago.com/ The ... zfs dataset and fs - comp.unix.solarisDifference between dir and ls - comp.unix.programmer zfs dataset and fs - comp.unix.solaris What is the difference between adding a zfs dataset to a non global zone and ... Difference between community and standard edition - comp.databases ...Difference between dir and ls - comp.unix.programmer Difference between community and standard edition - comp.databases ... Difference between dir and ls - comp.unix ... between-and operator - comp.soft-sys.sasDifference between dir and ls - comp.unix.programmer between-and operator - comp.soft-sys.sas Difference between dir and ls - comp.unix.programmer Hi, By POSIX standard ... Difference between Compression and Encoding?? - comp.compression ...Difference between dir and ls - comp.unix.programmer Difference between Compression and Encoding?? - comp.compression ... Difference between dir and ls - comp.unix ... find files between date x and date y - comp.unix.solaris ...On to find, you can find -newer and then ! -newer, like this: $ find /dir -newer start_date ! -newer stop_date -print Combine that with ls -l, you get: $ find /dir ... differences between /bin, /usr/bin and /usr/local/bin - comp.unix ...Difference between dir and ls - comp.unix.programmer differences between /bin, /usr/bin and /usr/local/bin - comp.unix ... Hello, What are the differences between /bin ... Difference beetwen awk and gawk? - comp.lang.awkDifference between dir and ls - comp.unix.programmer Difference beetwen awk and gawk? - comp.lang.awk What does the command ls afile.dat | od -xc display? sqlldr not recognizing a file without an extension on Solaris ...Difference between dir and ls - comp.unix.programmer sqlldr not recognizing a file without an extension on Solaris ..... Oracle on Windows can exhibit behaviour outside of ... What is the difference between dir in Windows and ls in LinuxFrom the user's point of view, there is very little difference between dir on windows or dos and ls on Unix. Anyone who has looked at the will see that ls has a lot ... Differences between dir and ls FTP Commands - Super UserHello we have made a little program to upload an .zip file to an FTP server, and when I connect to the FTP server with FileZilla to see everything is ok I can't see ... 7/23/2012 6:52:29 PM
|
|
|
|
|
|
|
|
|