Live data from Hacker News

Using Spotlight from the OS X Commandline

0xfe.blogspot.com

1–10 of 32 posts

Re: Using Spotlight from the OS X Commandline

#3

It's nice to have access to such UI components from the command line. One of my favorite is pbpaste/pbcopy. What's yours?

$ softwareupdate -i -a [install, all] as it avoids the (slow) UI and you can schedule it if you want to.

Not sure if it'll carry across to ML, what with updates going through the Mac App Store there.

Re: Using Spotlight from the OS X Commandline

#5
post #3

It's nice to have access to such UI components from the command line. One of my favorite is pbpaste/pbcopy. What's yours?

$ softwareupdate -i -a [install, all] as it avoids the (slow) UI and you can schedule it if you want to. Not sure if it'll carry across to ML, what with updates going through the Mac App Store there.

One downside worth mentioning is that you can't read the full description of each available updates, like you can when you click on an item in the GUI version.

Re: Using Spotlight from the OS X Commandline

#7
post #3

Earlier quoted context omitted.

$ softwareupdate -i -a [install, all] as it avoids the (slow) UI and you can schedule it if you want to. Not sure if it'll carry across to ML, what with updates going through the Mac App Store there.

One downside worth mentioning is that you can't read the full description of each available updates, like you can when you click on an item in the GUI version.

Indeed. Moreover, I only want to update my jdk when Im ready and have some free time to repair my jdk 1.5 symlinks once the update completes.

Re: Using Spotlight from the OS X Commandline

#10
I am very fond of the Mac, but the developers of Spotlight and the recent Versions feature of OS X Lion have not given proper thought to users' security and privacy.

Spotlight peeks inside files to create an index, and Version-supported apps maintain a changelog of file diffs. These OS X features save data in hidden locations, separate from the file.

This means that:

(a) it is very difficult to delete a file and be certain it's really gone,

(b) you can't have a public area, a private area, and a highly confidential area on the same system; it's all commingled to the same level of privacy,

(c) you can't make a backup of the non-confidential files without risk of getting the confidential files too,

(d) pieces of an encrypted file (if you use TrueCrypt for example) might get saved unencrypted in Spotlight's and Version's hidden locations,

I could go on, but you get the idea. It breaks down the notion of a file having a distinct level of security or privacy, and doesn't replace it with a better notion.

We already had the following problems:

(1) deleting a file doesn't really remove it on any major OS, including OS X, unless you use a special shredding program, and these days even shredding may be ineffective on solid-state drives because of wear-leveling and caching,

(2) the swap space can contain pieces of a file,

(3) temporary files created by editors, word processors, and other apps might retain parts of file.

Now Spotlight and Versions make the problem even worse for Mac users who care strongly about privacy and security.

We're getting to the point--or probably well past the point--where you have to maintain at least 2 or 3 separate systems: one for public work, another for personal or private work, and a third for highly confidential work.

Post reply on HN