 |
 |
Terminal Help required
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Jul 2001
Location: canada
Status:
Offline
|
|
Hey can anyone out there detail out for me how I would inside of terminal go searching for the .trashes folders inside my system?
Not quite clear on how I might just search them out, without knowing paths.
Thanks
(Last edited by bacchus; Feb 5, 2004 at 04:04 PM.
)
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Nov 2003
Location: Minnesota
Status:
Offline
|
|
Well, it is located at /.Trashes
If you want to know how to find a file via the terminal, use the find command. For example:
find / -regex .*Trashes.*
find / | grep Trashes
will both find files with the string "Trashes" in the title.
'/' is the root at which to start searching, so if you want to only look in your home folder, use '~/' instead.
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: May 2001
Status:
Offline
|
|
You need to put that in quotes:
find / -regex ".*Trashes.*"
-
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Nov 2003
Location: Minnesota
Status:
Offline
|
|
Originally posted by Moonray:
You need to put that in quotes:
find / -regex ".*Trashes.*"
-
No you don't. 
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: May 2001
Status:
Offline
|
|
Originally posted by Turias:
No you don't.
I do, believe me, and for those who don't the quotes won't hurt.
-
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Nov 2003
Location: Minnesota
Status:
Offline
|
|
Originally posted by Moonray:
I do, believe me, and for those who don't the quotes won't hurt.
Funny. I don't need them in 10.3.2 or RedHat 9. I don't know what OS/Shell you're using. True, you need to use them if you use strange characters like spaces, but the ones that I posted should not need quotes.
EDIT: Well, after a little testing I turns out you don't need them in bash, but do need them in tcsh. But, pffff, who uses tcsh, anyway?

(Last edited by Turias; Feb 5, 2004 at 04:28 PM.
)
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: May 2001
Status:
Offline
|
|
I do, and it is of course the far superior shell for interactive use (and you don't have to think about when it expands a * and when not because it always does).
-
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|