New answers tagged

-1

You can also find a good explanation of the standard Unix directory layout with man hier at the shell prompt.


4

~ (tilde) expands to the value of the variable HOME which is set by the process login or to the value set in one of your shell's config files. From the man pages: HOME - The home directory of the current user; the default argument for the cd builtin command. The value of this variable is also used when performing tilde expansion. Tilde Expansion -...


2

To completely clear the screen in Terminal, so there is no scroll back, you can either use the menu and click Edit > Clear to start or use the keyboard and press: command-K


0

I had the same problem. To solve the problem when it appears: Open an ssh connection and close it again. Then it worked for me.


1

This is a new feature in macOS Sierra. It allows you to put Desktop and Documents folder in iCloud Drive so you can access it in all of your Mac connected to that account and even iOS devices. You can disable it by pressing Apple Menu -> About this Mac, then go to storage and click Manage under Macintosh HD( or the name of your macOS partition) then in the ...


1

While I'm not sure what the reason is (maybe a beta glitch or temporary decision), you should be able to work around it by using the Go To Folder command in the Finder and entering ~/Documents. Then drag it to the Favorites sidebar and you can always access it from there.


0

Just right (or control) click a file of the type you want to change and: "Get Info" -> "Open with:" -> (Select your program of choice) -> "Change All" You'll have to do this once for each extension (.txt, .rtf, etc.) you wish to update.


1

Remote/delete the downloaded file Download it again, it should get a .zip extension Double-click the downloaded file to unpack it In Terminal, run cd ~/Downloads chmod +x Install_MySQL_5.6.25.command ./Install_MySQL_5.6.25.command


0

Boot to recovery Open Terminal type csrutil disable Then restart. dtrace and gdb should work. https://developer.apple.com/library/mac/documentation/Security/Conceptual/System_Integrity_Protection_Guide/ConfiguringSystemIntegrityProtection/ConfiguringSystemIntegrityProtection.html You could also run a script to determine which parts of SIP are enabled if ...


1

In order to use an AppleScript script in TextWrangler's Script menu, it (or a link to it) must be in TextWrangler's Script folder located at, ~/Library/Application Support/TextWrangler/Scripts in order for it to appear on the menu. Note: The "~" in that path is your Home Folder and the Library folder may not be visible. You can open it from TextWrangler's ...


2

You must put the script in the "/Users/yourName/Library/Application Support/TextWrangler/Scripts" folder After that: Open the preferences of the TextWrangler Select "Menus & ShortCuts" --> "Scripts" --> "your script" to add your shortcut to the script TextWrangler accept the (cmd + enter) keys as shortcut


3

Your processor automatically throttles itself when it gets too hot, OS X automatically sets the fan speeds appropriate, and in the off-chance your computer gets too hot, it will automatically shut off. You don't need to worry about a modern computer getting "over-worked".


0

You need to update Ruby. Install home-brew (It will allow you to install software package from source): ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" Install ruby: brew install rbenv ruby-build echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile source ~/.bash_profile ...


0

type sudo npm install -g bower


1

It sounds like you have a single " or ' somewhere in your command line arguments. Maybe something like this: echo It's a nice day The command line is waiting for the matching " or '. That's what the > means. You can fix this by quoting the entire argument with the other kind of quote: echo "It's a nice day" Or escaping the offending character with \ ...


-1

Like the top answer says, to undo the split is ⌘ Shift ⌘Command D. I just wanted to add that in general OS-X shortcuts that are done with ⌘ Command-char are undone (or the opposite/complement command is executed) with ⌘ Command ⌘ Shift-char.


1

First of all the casper-2.1-release.tar.gz file would not extract successfully for me using the normal default OS X way and I tried three other and different methods. I was able to extract the contents however I had to set the casper file to executable after the extraction with the one method that successfully extracted all files. The other normal and ...


0

Tack an escape to the end of your mail command to pass a header to sendmail. -- -f not-bob@address.com See this answer and others that use the -- terminator to tell the mail program those arguments are for the next program. http://stackoverflow.com/a/8483239/475228


0

There's not much you can do about id (except trying a different font). I had the same "issue" but I don't consider this as something bad. Get use to it but first try a font that will match as much as possible and will reduce the difference between "rectangle" section and "triangle" section. Check my OMZ shell script where I use bullet-train theme. ...


0

Finally I've uninstall it. I think it may be good to answer my own question because it is not answered specifically for xonsh in all the Internet.  First: Changing the default login shell This is done just by running chsh -s /bin/bash in the command line. See: How to uninstall zsh.  Finally: Unistall xonsh Now that you can use your previous terminal ...


0

If you have a Wacom Bamboo tablet, the BambooCore software can cause this issue to appear. Remove the application from your login items (System Preferences -> Users & Groups), and then restart (Maybe quitting bambooCore from Activity monitor may be enough) I had the same issue and found the solution on this page, and it worked for me: http://www.apple-...


0

Another option for robust automated web browsing is perl's WWW::Mechanize module. To report spam to the spamcop service, I use a combination of AppleScript and perl. AppleScript interacts with Mail and gets the spam contents and the perl side handles the web browsing. Below is an example of WWW::Mechanize to submit a form to a web server, find a specific ...


0

You may want to check this link


-2

Open Terminal --> Go to Preferences Go to Profiles -- and under text, you can change the font size.


0

You can easily switch versions of Python using pyenv. For example (using Homebrew): $ brew update $ brew install pyenv $ echo 'eval "$(pyenv init -)"' >> ~/.bash_profile $ exec $SHELL $ pyenv install 2.7.12 $ pyenv install 3.5.2 $ pyenv global 2.7.12 3.5.2 $ python -V Python 2.7.12 $ python2 -V Python 2.7.12 $ python2.7 -V Python 2.7.12 $ ...


0

Latest version of OS maps this to Spaces. Even if you have Spaces turned off, the hotkeys can still get short-circuited in this hidden location: Terminal.app cursor keys: disable System Preferences -> Shortcuts -> Mission Control -> Move left a space


1

zless/zmore will use /usr/bin/more as the default PAGER unless PAGER is set. Add the following lines to your shell login/env file (bash, ksh, and zsh). PAGER=/usr/bin/less export PAGER For tcsh: setenv PAGER /usr/bin/less


1

The origins go way back as a place holder for the dictionary words used by the spell utility. spell is not available but the program look will use the words dictionary. You could use one of these alias/function courteous of Wilfredo Sanchez Jr. to do word look ups. For ksh, zsh, and bash word () { grep -F -i "$*" /usr/share/dict/web2 ; } For tcsh alias ...


0

You can try to recover it using TestDisk. If that doesn't work, type: x56~:$ alias >> ~/.bash_profile and x56:~$ echo "PATH=$PATH" >> ~/.bash_profile to at least recover your PATH and aliases, which you can paste in your new profile file.


-1

The group is showing as restricted - this may indicate that it's due to SIP. Try: https://stackoverflow.com/questions/30768087/restricted-folder-files-in-os-x-el-capitan tells you how to temporarily disable SIP to delete the file. Could also try sudo chown [owner]:[group]? (Although if it is SIP, I don't think that it's this easy to get around).


0

Yet another exiftool solution: cd /path/to/pdf/directory exiftool -T -filename -PageCount -s3 -ext pdf .


0

mdls did not work for me either. I did this on a Mac, but I expect it'll be the same on any bash or similar shell. With the Mac I have homebrew already installed so I just typed the command "homebrew install exiftool" first. Here is the script I ran, you can set it up for your purposes. I had a whole folder of PDF files and I wanted page counts on every ...


0

Under the "View" menu select "Close Split Pane" or type shift-command-D. You probably typed command-D by accident.


1

After you run the defaults write com.apple.finder AppleShowAllFiles YES command, hold the 'option/alt' key, then right click on the Finder icon in the dock and click Relaunch.


1

Try this: defaults write com.apple.Finder AppleShowAllFiles -bool true; killall Finder This sets AppleShowAllFiles to true which tells Finder to show all file. Note the -bool part, that tells will make sure you are setting a Boolean to it instead of string, integer etc. Finally it restarts Finder.


6

Use an Alias. The alias command allows the user to launch any command or group of commands (including options and filenames) by entering a single word alias rm="rm -i" The next time you issue the command rm it will issue rm -i You can also make a new alias in case you want to keep rm functioning as it does by default. To create a new alias alias ...


0

Might want to check /etc/auto_afp for your mount point and remove if present. Sounds like your Mac is constantly trying (and retrying) to automatically mount that share unsuccessfully. Try moving to using autofs so you don't need to manually deal with mounting your share and it should be seamlessly unmounting that share when you change networks: http://blog....


0

You are confusing the basic bash completion with the add on required for completing git commands. The git that is installed by Apple lacks the required git-completion.bash file so you need to install the full git. You can do this easily with homebrew -brew install git will do the job. Once you've done that then uncomment your top three lines :- if [ -f $(...


0

Because it would be more difficult to post this in a comment I'm posting it as an answer, although it may not be the right one. I took your command line while using Lingon X to create the .plist file, here is how it parsed the command line, which is different from yours. <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//...


0

iconv is the solution, that worked for me: ls `echo 'Näytẗkuva.png' | iconv -t UTF8-MAC` see http://stackoverflow.com/a/23226449/1909531


0

the cliclick tool shell tool is pretty awesome. sends keystrokes, clicks, all sorts of stuff https://github.com/BlueM/cliclick


1

I used this and it worked for me: cd /Applications/CrashPlan.app/Contents/.Uninstall.app/Contents/Resources sudo chmod u+x uninstall.sh sudo ./uninstall.sh


2

The trick, really, is to avoid common key-commands - which is why the article you refer to uses Ctrl ⌃ Opt ⌥ L , as no OS X command would normally use only Ctrl ⌃ & Opt ⌥ - they would always add Cmd ⌘ too, leaving you free to use Ctrl ⌃ Opt ⌥ for anything you like. If you insist on using Cmd ⌘ Ctrl ⌃ L then you would have to add, ...


0

Seeing that you use white on black, I take it you use the "Pro" profile (unless you duplicated it or created a fresh new one). I would look into Terminal's preferences and check the used encoding and other options. If there are differences with, let's say the "Basic" profile, try to see if using that profile is behaving the same or behaves as you would ...


2

This looks like the behavior of some very old Mac fonts (Palatino was one of them) where you could make the character l with stroke (used in Polish and elsewhere) by typing such a sequence. Try changing your font. If this is in fact the cause of the problem, you should get rid of the font that does this, which should not be on any modern mac.


-1

This looks to me like a rendering bug rather than a feature. I would try increasing the font size on your terminal.


2

OS X doesn't set a root password by default, so it's not possible to log in or su to root. The preferred way to run commands as root is sudo, since that requires your admin password instead of the (nonexistent) root password. sudo works a little different from su, as it's really intended to run single commands as root. Generally, you just use sudo as a ...


0

I assume you want to recover the root password. You can reset the password by logging in using your normal administrator account, opening the Terminal and issuing the command sudo passwd.


0

This seems to be related to Mac mini won't shutdown shutdown -h forces a cold reset. All changes are being lost. It's like holding down your Macs power button. Do you use a Wacom driver? Do you use Java? If so, try uninstall/reinstall them and restart OS X



Top 50 recent answers are included