New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
Running Windows (or anything else) on your Mac Discussion of Classic or running Windows, Linux and other OSes on the Mac.

I need Unix help


Post Reply New Thread Subscribe

 
Thread Tools
Thundermoon1994

 
Thundermoon1994's Avatar
 
Member Since: Dec 26, 2006
Location: Kent, OH
Posts: 495
Thundermoon1994 will become famous soon enough
Mac Specs: 15" MacBook Pro w/ 2.4 GHz C2D, 4 GB RAM, 250 GB

Thundermoon1994 is offline
Can someone please tell me how to access directories higher than my root directory?

~Thanks

-- Unibody 15.4" MacBook Pro (2.4 GHz Core2Duo Penryn, 250 GB HD, 4 GB RAM, nVidia GeForce 9400M & GeForce 9600M GT w/ 256 MB) --
-- 8 GB iPhone 3G -- 30 GB iPod Video --
QUOTE Thanks
lifeafter2am

 
lifeafter2am's Avatar
 
Member Since: Aug 25, 2006
Location: Central Florida
Posts: 1,395
lifeafter2am is a jewel in the roughlifeafter2am is a jewel in the rough
Mac Specs: MacBook Pro Unibody

lifeafter2am is offline
Higher than / ? There is nothing higher than / , that is why it's called root.

masakatsu agatsu

@lifeafter2am
QUOTE Thanks
Thundermoon1994

 
Thundermoon1994's Avatar
 
Member Since: Dec 26, 2006
Location: Kent, OH
Posts: 495
Thundermoon1994 will become famous soon enough
Mac Specs: 15" MacBook Pro w/ 2.4 GHz C2D, 4 GB RAM, 250 GB

Thundermoon1994 is offline
Sorry, I meant home directory. I figured it out, though.

cd /Volumes/"Macintosh HD"

-- Unibody 15.4" MacBook Pro (2.4 GHz Core2Duo Penryn, 250 GB HD, 4 GB RAM, nVidia GeForce 9400M & GeForce 9600M GT w/ 256 MB) --
-- 8 GB iPhone 3G -- 30 GB iPod Video --
QUOTE Thanks
Dysfunction

 
Dysfunction's Avatar
 
Member Since: Mar 17, 2008
Location: Tucson, AZ
Posts: 6,624
Dysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant future
Mac Specs: 2008 and 2011 15" mbps, late 11 iMac, iPhone 4s, and too many ipods and other stuff

Dysfunction is online now
you can also cd / which nets the same thing, and is less typing

mike
This machine kills fascists
Got # ? phear the command line!
QUOTE Thanks
clint1986

 
clint1986's Avatar
 
Member Since: Mar 06, 2008
Location: Devon, United Kingdom
Posts: 129
clint1986 is on a distinguished road
Mac Specs: 17" eMac 1.42 GHz G4, Mac OS X 10.4 "Tiger"

clint1986 is offline
Also, to move to directory above the current directory do this: cd ..

The two dots represent the directory above, so if you are in /home/folder1/ and wanted to be in /home/folder2/ you could simply do this: cd ../folder2/

Cool, no? :)
QUOTE Thanks
Thundermoon1994

 
Thundermoon1994's Avatar
 
Member Since: Dec 26, 2006
Location: Kent, OH
Posts: 495
Thundermoon1994 will become famous soon enough
Mac Specs: 15" MacBook Pro w/ 2.4 GHz C2D, 4 GB RAM, 250 GB

Thundermoon1994 is offline
Thanks for all the helpful hints. Less typing=me being happier. So, the reason I asked is so I can get rid of this file. I've tried using

sudo rm -r /Volumes/"WINDOWS HD"/.Trashes/502/?␀␀␀ö?␀␀.?␀␀

but it says, "File name too long".

How can I get that file to go away? By the way, can anyone tell me why a weird file on my windoze partition would cause that problem when I delete trash in OS X?

~Damien

-- Unibody 15.4" MacBook Pro (2.4 GHz Core2Duo Penryn, 250 GB HD, 4 GB RAM, nVidia GeForce 9400M & GeForce 9600M GT w/ 256 MB) --
-- 8 GB iPhone 3G -- 30 GB iPod Video --
QUOTE Thanks
slashd0t

 
Member Since: Sep 26, 2006
Location: Edmonton AB
Posts: 70
slashd0t is an unknown at this point

slashd0t is offline
Easiest way to get to your home directory is cd $home
QUOTE Thanks
clint1986

 
clint1986's Avatar
 
Member Since: Mar 06, 2008
Location: Devon, United Kingdom
Posts: 129
clint1986 is on a distinguished road
Mac Specs: 17" eMac 1.42 GHz G4, Mac OS X 10.4 "Tiger"

clint1986 is offline
In that directory, is it the only file named like that?

If so, try this: sudo rm /Volumes/"WINDOWS HD"/.Trashes/502/?*

This will delete ANY file with a "?" in front of its name, so be sure it the only one named this way first, otherwise you might knock out something else you don't want to.

If the file is actually a directory, use this instead: sudo rm -rf /Volumes/"WINDOWS HD"/.Trashes/502/?*
QUOTE Thanks
scott-c

 
Member Since: Jan 24, 2008
Posts: 12
scott-c is on a distinguished road

scott-c is offline
Be very careful with the use of wildcards and rm. Remember that in Unix, the question mark (?) is also a wildcard that means to match any one character. Thus your command "rm -rf /Volumes/"WINDOWS HD"/.Trashes/502/?*" will silently and recursively delete all files (and directories) that have at least one character in their name. Speaking of other nasties, absolutely do NOT issue that command "rm -rf .*" as this will silently and recursively delete all files beginning with a dot, including ".." which as has been previously stated is the directory above the present location. This means that if you were in say /usr/pmix and issued the offending command, you would erase not only /usr/pmix (and the targeted hidden files, but you would also erase all of /usr. I had a novice SA do this on a cluster once, spent the next four hours rebuilding the thing.
QUOTE Thanks
Thundermoon1994

 
Thundermoon1994's Avatar
 
Member Since: Dec 26, 2006
Location: Kent, OH
Posts: 495
Thundermoon1994 will become famous soon enough
Mac Specs: 15" MacBook Pro w/ 2.4 GHz C2D, 4 GB RAM, 250 GB

Thundermoon1994 is offline
That didn't work. Anything else I can try?

-- Unibody 15.4" MacBook Pro (2.4 GHz Core2Duo Penryn, 250 GB HD, 4 GB RAM, nVidia GeForce 9400M & GeForce 9600M GT w/ 256 MB) --
-- 8 GB iPhone 3G -- 30 GB iPod Video --
QUOTE Thanks
walkerj

 
walkerj's Avatar
 
Member Since: Feb 13, 2005
Location: New Orleans, LA, USA
Posts: 1,186
walkerj is just really nicewalkerj is just really nicewalkerj is just really nicewalkerj is just really nice
Mac Specs: 13" Macbook Pro 2.26Ghz Unibody 4G RAM 160G HDD Superdrive

walkerj is offline
To tackle this one, I'd try to get a better idea of what characters that file is actually made up of. So I'd do something like (in Terminal.app) position myself in the .Trashes directory, then do a

$ ls | od -c

To get od (do a man on it, I forget what it stands for but it's a character dump utility) to show the characters to give you a better chance at forming an appropriate rm arg to get rid of the file. For example, currently I have two files in my .Trash:

Audio Hijack Pro.app cure-b-sides.jpg

ls | od -c

0000000 A u d i o H i j a c k P r o
0000020 . a p p \n c u r e - b - s i d e
0000040 s . j p g \n
0000046


Now I don't have any weird charactered file in my trash, but since you do, you might get a somewhat useful character representation of what that file really is named.
QUOTE Thanks
Thundermoon1994

 
Thundermoon1994's Avatar
 
Member Since: Dec 26, 2006
Location: Kent, OH
Posts: 495
Thundermoon1994 will become famous soon enough
Mac Specs: 15" MacBook Pro w/ 2.4 GHz C2D, 4 GB RAM, 250 GB

Thundermoon1994 is offline
This is what I get when I try that:

What do I do now?
Attached Images
File Type: jpg Terminal.jpg (24.4 KB, 5 views)

-- Unibody 15.4" MacBook Pro (2.4 GHz Core2Duo Penryn, 250 GB HD, 4 GB RAM, nVidia GeForce 9400M & GeForce 9600M GT w/ 256 MB) --
-- 8 GB iPhone 3G -- 30 GB iPod Video --
QUOTE Thanks
Thundermoon1994

 
Thundermoon1994's Avatar
 
Member Since: Dec 26, 2006
Location: Kent, OH
Posts: 495
Thundermoon1994 will become famous soon enough
Mac Specs: 15" MacBook Pro w/ 2.4 GHz C2D, 4 GB RAM, 250 GB

Thundermoon1994 is offline
BTW, why was this thread moved to "Windows, Linux, and Other OS"? It's about using Unix, the basis for Mac OS X.

-- Unibody 15.4" MacBook Pro (2.4 GHz Core2Duo Penryn, 250 GB HD, 4 GB RAM, nVidia GeForce 9400M & GeForce 9600M GT w/ 256 MB) --
-- 8 GB iPhone 3G -- 30 GB iPod Video --
QUOTE Thanks
Dysfunction

 
Dysfunction's Avatar
 
Member Since: Mar 17, 2008
Location: Tucson, AZ
Posts: 6,624
Dysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant future
Mac Specs: 2008 and 2011 15" mbps, late 11 iMac, iPhone 4s, and too many ipods and other stuff

Dysfunction is online now
can you do the following and just cut and paste the output?

ls -al /Volumes/"WINDOWS HD"/.Trashes/502/

File attributes may help figuring out how to get rid of it.

mike
This machine kills fascists
Got # ? phear the command line!
QUOTE Thanks
Thundermoon1994

 
Thundermoon1994's Avatar
 
Member Since: Dec 26, 2006
Location: Kent, OH
Posts: 495
Thundermoon1994 will become famous soon enough
Mac Specs: 15" MacBook Pro w/ 2.4 GHz C2D, 4 GB RAM, 250 GB

Thundermoon1994 is offline
damien-hand-cannanes-macbook-pro:502 Damien$ ls -al /Volumes/"WINDOWS HD"/.Trashes/502
ls: \004␀␀␀ö\001␀␀.\024␀␀: File name too long
damien-hand-cannanes-macbook-pro:502 Damien$

-- Unibody 15.4" MacBook Pro (2.4 GHz Core2Duo Penryn, 250 GB HD, 4 GB RAM, nVidia GeForce 9400M & GeForce 9600M GT w/ 256 MB) --
-- 8 GB iPhone 3G -- 30 GB iPod Video --
QUOTE Thanks

Post Reply New Thread Subscribe


« Getting Rid of Mac OS for Windows XP | Doesn't OS 9 Support Long Filenames? »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Unix VS. Linux dziner Switcher Hangout 27 12-04-2006 02:17 PM
os x unix base security issues? stevescivic OS X - Operating System 4 10-13-2006 07:46 PM
Unix For Mac Os X Help Matt OS X - Operating System 5 08-24-2004 02:32 AM
Unix psychotoe OS X - Development and Darwin 6 06-16-2004 02:46 PM
Apple in Court over UNIX Name schweb Apple Rumors and Reports 8 06-13-2003 10:54 PM

All times are GMT -4. The time now is 02:25 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?