Tag Info

Hot answers tagged

5

Even though the account is an administrator, you still need to use sudo to become the root user. Administrator still has restrictions on what files can be read or written to. For example, the /System/Library/User Template/ folder is set to System: Read/Write and even though you are an administrator, you won't be able to open this folder without either ...


3

Since I have a much newer system I couldn't accurately test with a 119 MB file as it took less then a second to copy in Terminal. So I created several much larger files, up to 2 GB, using dd and /dev/random as the source and made duplicates. I then rebooted and then did timed copies of each of the sets, one in Terminal and the other in Finder. This way ...


3

The question itself isn't exact too, because the OP talks about: files names like ABC 123456 (without extension), but in the example code using *.txt extension add a dash between two blocks (e.g. where is the space) like ABC - 123456, but in the next taking about counting to 4 and count 3, e.g. not exacltly clear what the script should do for example if ...


3

Single quotes ('') suppress parameter expansion so you have to use double quotes: v() { osascript -e "set volume output $1" }


2

You are misunderstanding the way (Mac)Vim processes its configuration. Simplifying slightly, there are three layers to it on OS X: the vimrc and gvirmc files in $VIMRUNTIME are the runtime defaults for the Vim install. For MacVim, this is set to point inside the application bundle – the files you found. These will be overwritten each time you update ...


2

You have to let Finder know that you want a Boolean value (true or false): defaults write com.apple.finder AppleShowAllFiles -bool TRUE


2

In a Terminal or script, you can use the pmset command to sleep/wake the computer and more. From: man pmset sleepnow - causes an immediate system sleep sudo pmset sleepnow Schedules the system to automatically wake from sleep on July 4, 2016, at 8PM. sudo pmset schedule wake "07/04/16 20:00:00" Note: I've added sudo to the above pmset commands as this ...


2

It's your $PS1 - it's not properly escaped. You have to escape all non-printing characters with \[ and \]. For example, if you have export PS1='\e[32m\u \W\e[0m $ ' you have to change it to export PS1='\[\e[32m\]\u \W\[\e[0m\] $ ' or your cursor will appear far to the right because your shell thinks your prompt is that long, and when it retypes the ...


1

I found the settings file by using the terminal command opensnoop to monitor all files accessed by any programm and found that the file that stores the underscan setting is here: /var/db/.com.apple.iokit.graphics


1

According to man screencapture one can only save to the clipboard or to a file: there doesn't seem to be any way around this as designed. The description of the command uses the word 'or' to indicate that only one action is possible: save the screencapture to a file or to the clipboard:


1

Taken wholesale from this SuperUser.com question and answer... The issue is that the shell on the remote host is configured to send an escape sequence to set the terminal window title. This is a fairly common setup. The solutions mentioned in the blog post you linked to are correct. The simplest and most direct solution is to configure that same remote ...


1

To answer your question, your PATH has to be modified to: PATH=/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/3.4/bin:/opt/X11/bin:/usr/texbin so that your shell will find /usr/bin/dmd before any other one called from within one of the 2 Python library ...


1

I had the same problem. Fastest solution and worked on both computers was: (a) Go to http://www.code42.com/store/ (b) Download free version of CrashPlan (c) After clicking to install the pop-up with the application symbol (that you drop into your Applications folder) also has a small trashcan in the bottom right corner. (d) After installation complete click ...



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