• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: LS command returns hidden files on OS X Leopard server
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LS command returns hidden files on OS X Leopard server


  • Subject: Re: LS command returns hidden files on OS X Leopard server
  • From: LuKreme <email@hidden>
  • Date: Sun, 25 Oct 2009 02:15:47 -0600

On 24-Oct-2009, at 12:25, Jim Skibbie wrote:
The script runs on a machine running OS X Leopard Server with the user
logged in as root. I don’t know if being logged in as root has something to
do with it or not.


This is why. The default ls command for the root user is almost always set to

ls -A

(not ls -a, ls -A which shows hidden files, but does not show the . and .. directories).

use /bin/ls if you want to avoid the aliases.


-- Once upon a time the plural of 'wizard' was 'war'. --The Last Continent

_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >LS command returns hidden files on OS X Leopard server (From: Jim Skibbie <email@hidden>)

  • Prev by Date: Passing ampersands through a shell script
  • Next by Date: Re: Passing ampersands through a shell script
  • Previous by thread: Re: LS command returns hidden files on OS X Leopard server
  • Next by thread: Re: LS command returns hidden files on OS X Leopard server
  • Index(es):
    • Date
    • Thread