Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Empty all trash cans at once System
Being inherently multi-user, OS X creates a trash can for each user. There's no simple (GUI) way to empty all of these trash cans. Even if you're logged in as root, you have to remove each one individually. Over in this MacNN forum, however, 'MickS' posted a one-line terminal command that will empty all of your trash cans at once. Warning - this is not un-doable, and you won't get any 'Are you sure?' messages before the trash is emptied.

To empty all the system trash cans at once, start a terminal session and type
sudo find / -name ".Trash" -type d -print | xargs rm -fr
You'll have to enter your admin password, but then it should just run. NOTE: I have not tried this myself yet, so use at your own risk.
  Post a comment  •  Comments (6)  
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (2 votes cast)
 
[6,175 views] Email Article To a Friend View Printable Version
Mac OS X Terminal Basics FAQ UNIX
I originally wrote this FAQ because I moderate the OS X General Discussion forum at MacNN, and there have been a ton of newbie UNIX questions recently. I figured I'd compile a FAQ: essentially UNIX for the Mac User -- An Introduction that would explain some fundamental concepts and would get a Mac user a little more confident about the big black deep that lurks underneath Aqua.

Trust me. I know how some people feel about this frightening new UNIX core -- I've seen it time and time again. This FAQ may get you on your way to using UNIX more, maybe, but above all I really hope it dispels some fears by spreading information about some basic topics. The known is always less feared than the unknown.

The FAQ is located here.

Enjoy!

-gzl.
  Post a comment  •  Comments (6)  
  • Currently 2.00 / 5
  You rated: 1 / 5 (3 votes cast)
 
[9,445 views] Email Article To a Friend View Printable Version
Tab key in the Finder Desktop
Strange I didn't read that anywhere: did you ever try to use the Tabulation key in Finder X ? If the window is:

-- in icon view, you will move from an icon to the next one (as in OS 9);
-- in list view, you will CHANGE the column display type (DIFFERENT from OS 9, and much better);
-- in column view, you will move to the next column, or RETURN to the first column if already in the last one !

This is really smart IMHO. Also you can do the same in reverse order, using shift-tab instead.
  Post a comment  •  Comments (2)  
  • Currently 2.67 / 5
  You rated: 4 / 5 (3 votes cast)
 
[3,014 views] Email Article To a Friend View Printable Version
Use Terminal's Shell-Library menu Apps
If you save your terminal sessions, you can use a convenient menu to access them. It's easy! Save your terminal sessions into ~/Library/Terminal/

Quit and restart Terminal and they will be in Shell->Library.

Mr. Sharumpe
  Post a comment  •  Comments (1)  
  • Currently 2.43 / 5
  You rated: 5 / 5 (7 votes cast)
 
[3,944 views] Email Article To a Friend View Printable Version
Double-click remote connectivity (with SSH) UNIX
I am lazy and don't like to type ssh me@wherever.com whenever I want to log in to a remote server to check my mail.

So, using the Terminal I created an executable file like this:
echo 'ssh myusername@server.com' > click_me
chmod 755 click_me
Then, from the Finder, get info on the file 'click_me' and set the default application to Terminal. Double-click and voila!

Even better: put the 'click_me' file in your startup applications, and your prompt will be ready and waiting at login.
  Post a comment  •  Comments (8)  
  • Currently 2.33 / 5
  You rated: 5 / 5 (3 votes cast)
 
[8,096 views] Email Article To a Friend View Printable Version
Run an AppleScript from the command line System
Want to run an AppleScript command real quick from Terminal? It's easy!

1. Run "osascript".
2. Type your script, for example:
tell application "Dock" to quit

launch application "Dock"
3. Type Control-D when done.

You can also supply a filename to "osascript" to run the script inside, and you can compile—but not run—script files using "osacompile".
  Post a comment  •  Comments (5)  
  • Currently 2.75 / 5
  You rated: 1 / 5 (4 votes cast)
 
[47,419 views] Email Article To a Friend View Printable Version
Use color-coded Finder windows Desktop
I doubt I'm the first one to think of this, but color coding several regularly used Finder windows can improve their visual difference when they are minimized to the Dock.

Just select the window's view options from the View menu, select color for background (or picture if you so desire), and choose away! I use colors from my desktop pic so everything is color coordinated.

Daniel J. Wilson
  Post a comment  •  Comments (1)  
  • Currently 2.50 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (2 votes cast)
 
[2,421 views] Email Article To a Friend View Printable Version
Native Citrix client for remote connections Apps
An anonymous tipster told me he had the Citrix java client running on X. Citrix is a remote access server that's used in many offices (including mine!), and it usually runs on an NT box. There's a Mac client, but I couldn't get it to run in Classic.

The tipster (sorry, no name given) stated that he had it working, but that it needed a couple of scripts to work right (which he would provide via email). Unfortunately, the email address he provided didn't work! With a bit of digging on Citrix site, however, I figured out the scripts (not too hard!), and now have a working client!

So if you'd like a native Citrix java client for remote access to your corporate network, read the rest of this article...
read more (366 words)   Post a comment  •  Comments (31)  
  • Currently 2.43 / 5
  You rated: 3 / 5 (7 votes cast)
 
[44,928 views] Email Article To a Friend View Printable Version
Share your Omniweb bookmarks across the net Web Browsers
You can easily share your Omniweb bookmarks with others across your network.

Omniweb stores bookmarks in a standard HTML file, which can be read by any browser on any OS. In Omniweb, choose Omniweb::Preferences::Bookmark on the menu and change the location of your bookmarksfile to file:///~/sites/bookmarks.html

Provided of course that you have switched on the Apache webserver, your bookmarks can now be accessed at http://yourmachine/~yourname/bookmarks.html. If you haven't yet built any HTML pages, you might even name the file index.html and it becomes the default file, so http://yourmachine/~yourname brings it up. You can still edit the file by simply maintaining your bookmarks in Omniweb, no HTML required.

I use this trick to access my bookmarks from Opera on NT4.

P.S. would love to login here, but can't, probably because I have switched off cookies. Oh well .Cubist

[Editor's note - yes, cookies are required for a login ID. Sorry!]

  Post a comment  •  Comments (0)  
  • Currently 1.86 / 5
  You rated: 3 / 5 (7 votes cast)
 
[2,719 views] Email Article To a Friend View Printable Version
A collection of UNIX tips UNIX
I have compiled a bunch of hints about the Unix underpinnings of OS X, including how to get Sendmail running, making finger work, tons of links, and lots of other useful information.

[Editor's note: Ian has taken his web site off line, but the collection of tips has been posted in the body of this article. If you'd like to see the collection, simply read the rest of this article. There's minimal HTML markup, but there's a lot of good info here. Happy reading!]
read more (524 words)   Post a comment  •  Comments (0)  
  • Currently 2.00 / 5
  You rated: 2 / 5 (4 votes cast)
 
[36,623 views] Email Article To a Friend View Printable Version