Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
.bash_profile messed up
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Bwoe" data-source="post: 1187911" data-attributes="member: 192683"><p>If you have a second mac handy, and a firewire cable, you can boot to target disk mode and run the command to show hidden files from the second machine. You can then navigate to /.bash_profile (ON THE AFFECTED MACHINE) and trash it. </p><p>The syntax for showing hidden files is:</p><p>[PHP]defaults write com.apple.finder AppleShowAllFiles TRUE[/PHP]</p><p>then restart finder with:</p><p>[PHP]killall Finder[/PHP]</p><p></p><p></p><p>From here you can just go to /.bash_profile (again, on the affected machine) and trash or rename it.</p><p></p><p>Re-hide hidden files with</p><p>[PHP]defaults write com.apple.finder AppleShowAllFiles FALSE[/PHP]</p><p>and kill finder again. </p><p></p><p>Alternately, from the second mac you could just:</p><p>[PHP]sudo rm -rf [dragpathtofile] [/PHP]</p></blockquote><p></p>
[QUOTE="Bwoe, post: 1187911, member: 192683"] If you have a second mac handy, and a firewire cable, you can boot to target disk mode and run the command to show hidden files from the second machine. You can then navigate to /.bash_profile (ON THE AFFECTED MACHINE) and trash it. The syntax for showing hidden files is: [PHP]defaults write com.apple.finder AppleShowAllFiles TRUE[/PHP] then restart finder with: [PHP]killall Finder[/PHP] From here you can just go to /.bash_profile (again, on the affected machine) and trash or rename it. Re-hide hidden files with [PHP]defaults write com.apple.finder AppleShowAllFiles FALSE[/PHP] and kill finder again. Alternately, from the second mac you could just: [PHP]sudo rm -rf [dragpathtofile] [/PHP] [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
.bash_profile messed up
Top