Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

G3-Pwnz-G4

macrumors regular
Original poster
Jun 5, 2003
143
0
i need to find a hidden file. i know it's there because i saved it, but i accidentally put a "." in front of the name, so it automatically became hidden. is there a way to "un-hide" it?

i know i could just re-save, but this has happened before and it's getting annoying. i have very clumsy fingers.

any help would be appreciated.
 
Open Terminal (Applications/Utilities/Terminal). Then type in "cd [location of folder enclosing file]", eg if the hidden file was located at /Folder A/Folder B/.file then you would type in "cd /Folder A/Folder B".

Finally, type in "mv [old name of file] [new name of file]", eg if the file was called ".file", then you would type in "mv .file file", which would make the file visible.
 
tinkertool

you can do the terminal window stuff

or you can download the most important software that apple failed to include... tinkertool

it has a "show hidden items in finder" clicky box

it will annoy the crap out of you very shortly though, because there are hidden files on the desktop, etc.

meeps
 
thanks a bunch guys. i went with the terminal route as i don't really like installing extra utilities onto my comp.

again, thanks :)
 
HexMonkey said:
Open Terminal (Applications/Utilities/Terminal). Then type in "cd [location of folder enclosing file]", eg if the hidden file was located at /Folder A/Folder B/.file then you would type in "cd /Folder A/Folder B".

Finally, type in "mv [old name of file] [new name of file]", eg if the file was called ".file", then you would type in "mv .file file", which would make the file visible.

except that in Terminal you can't get to 'Folder B' by just typing /Folder B because the space before the B will stuff it up, so it will go to the item named Folder. to get to Folder B, you'd have to do /Folder\ B, so something like "cd /Folder\ A/Folder\ B" will get you there.

that really annoyed me when i first started using the Terminal, couldn't figure that out until i just dragged a folder to Terminal & it showed the path. :p
 
cb911 said:
i just dragged a folder to Terminal & it showed the path. :p

You can drag and drop in terminal?!! And I've been doing it all manually :eek: . Thankyou cb911. You just made terminal 100% more usable for me.
 
and of course, you can always type in the first few letters of whatever folder/file you're entering and then hit tab to auto-complete the name. so if you need to access "~/some long folder name/an even longer subfolder name because you're wordy/really long file name because you just don't know when to stop typing.txt"

you can just enter "~/so[TAB]/an[TAB]/re[TAB]" and let the terminal do the typing. which is great if you've got a lot of spaces in a filename, because terminal will automatically escape them.

note that hitting tab won't auto-complete a file name unless you've entered enough to uniquely identify your target. so if you've got two files in a directory, called "really long filename" and "realistically no one would use such long filenames", you'd have to type reall[TAB] to get the first, and reali[TAB] to get the second.
 
dedanno said:
You can drag and drop in terminal?!! And I've been doing it all manually :eek: . Thankyou cb911. You just made terminal 100% more usable for me.

cool. glad i could help. :p

TAB complete is also another great thing, something that i forget to use all the time as well.

another interesting think i found out about Terminal (this might deserve it's own thread, but here goes anyway):

you can access Terminal even on a Mac where you dont' have permissions to open it by typing in Safari, (or IE) "telnet:" minus the quotes. that open telnet, which we all know runs in Terminal, thus opening Terminal. :D

and if you dont' have the permissions to open iChat, you can just type "aim:" to get iChat to open as well.

even futher, to open any app that you're blocked from using, from terminal type "/Applications/AppleScript/Script\ Editor.app/Contents/MacOS/Script\ Editor" for example, or change the path for any other app, then it opens and runs! :D

also, i should mention that i first saw this at http://phreak.net.board.dk3.com/2/viewtopic.php?t=133. yes, i didnt' just discover this by myself. :p
 
cb911 said:
you can access Terminal even on a Mac where you dont' have permissions to open it by typing in Safari, (or IE) "telnet:" minus the quotes. that open telnet, which we all know runs in Terminal, thus opening Terminal. :D
This feature/bug is, of course, the source of all the recent security hulabaloo about web browser-based exploits; several protocols will hand data or commands off to programs without paying much attention to where the command or data came from or what it might be doing.
 
Makosuke said:
This feature/bug is, of course, the source of all the recent security hulabaloo about web browser-based exploits; several protocols will hand data or commands off to programs without paying much attention to where the command or data came from or what it might be doing.

yeah, i was thinking that as well. so i guess you won't be able to do that for much longer anyway...
 
to see invisible files in Finder
open terminal.app (located in /Applications/Utilities/)
type in the following
Code:
defaults write com.apple.finder AppleShowAllFiles YES
To undo that type in
Code:
defaults write com.apple.finder AppleShowAllFiles NO
Mind you, its case sensitive iirc.
btw, seems like the finder pref to show all files is gone...is it just me? or was it in the developer betas of panther? Bah.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.