Tag Info

Hot answers tagged

2

There may be a piece of commercial software that can intercept a call to reboot/shutdown however I do not know what it is, if it exists. My suggestion, despite you editing out the issue in your OP, is to fix the issue and not look for a workaround! That said, I give you a workaround that you certainly can test and it should prevent a software call to ...


1

I can just give information to a few of the locations you specify. I wouldn't bother with the files under /var - even if you can delete them the system will recreate them. There are a few apps in the appstore which can cleanup cache files maybe one of these can help with part of your question. I used ccleaner - but they all seem to have similar ...


1

Looking just at the big parts You shouldn't touch anything in /private, as these are files used by OSX. Removing unneeded drivers from /Library/Printers shouldn't pose a problem (I only have the Canon drivers for the model I'm actually using in there) .../iTunes/iTunes Media/Mobile Applications contains all the apps you've ever purchased. You can, if you ...


1

The short answer is: (generally) Add it to ~/.bash_profile echo 'alias ep="cd $HOME/Dropbox/CurrentProject"' >> ~/.bash_profile NOTE: There shouldn't be any space between the alias/variable and the equals sign ("=") and the value. If your value has spaces then the whole value should be put in quotes. A better answer is: (probably) Try setting an ...


1

IIRC, Minecraft is hard coded to use Java 1.6 (or it might have been hard coded to only use Apple Java, can't 100% recall). The way I have combatted this for some time is to launch Minecraft from Terminal.app using: java -jar /Applications/Minecraft.app/Contents/Resources/Java/Bootstrap.jar I think I recall Minecraft developer Dinnerbone suggesting that ...


1

This answer neatly summarises what ideally belongs in each of ~/.bashrc, ~/.profile, and ~/.bash_profile. In summary: ~/.bash_profile should be super-simple and just load .profile and .bashrc (in that order) ~/.profile has the stuff NOT specifically related to bash, such as environment variables (PATH and friends) ~/.bashrc has anything you'd want at an ...


1

I was able to resolve the issue by changing IFS to IFS=$(echo -en "\n\b") and not quoting the filename. IFS is Internal Field Separator, it is used (among others) for word splitting after shell expansions, and it includes a space by default. I found the IFS trick at nixCraft's BASH Shell: For Loop File Names With Spaces. $ cat fix-perms.sh #!/bin/bash ...



Only top voted, non community-wiki answers of a minimum length are eligible