Hot answers tagged

4

Your main volume is encrypted with FileVault and still locked – consequently it doesn't show up in /Volumes. Before being able to mount it you'd have to unlock it: diskutil cs unlockVolume lvUUID #replace lvUUID by the one shown in the diskutil listing You will then be asked to enter the passphrase/password. You have to enter a passphrase or a password of ...


4

on run {input, parameters} is AppleScript syntax, not a valid shell command. If you want to execute AppleScript in the service, use the Run AppleScript action instead of Run Shell Script.


3

It depends on the shell you are running in. If it is a POSIX confirming shell e.g. bash, ash,ash, sh, and some others e.g. csh, tcsh then echo $0 will return the shell's name e.g. ~ $ bash bash-3.2$ echo $0 bash or ~ $ ksh $ echo $0 ksh However not all shells are POSIX e.g. I used to use ipython shell profile and now fish


3

Under csh family shells, you'll got your running shell with this command: % echo $shell If csh was run, directly or undirectly, from a Bourne family shell that had its SHELL variable exported, the latter being the common case, the SHELL variable would stay untouched so echo $SHELL will still show the its previous value which would be confusing. This is ...


2

When booted to OS X Recovery the root of the Macintosh HD is not /, it's: /Volumes/Macintosh HD/ To get to your Home directory in Terminal, use: cd "/Volumes/Macintosh HD/Users/User_Name" Where User_Name is the name of your User Account. From there you can access your directories such as Documents, Desktop, Pictures, etc. When booting into the ...


1

Open Terminal and enter sudo visudo to modify the file /etc/sudoers. Change the part: ## User privilege specification ## root ALL=(ALL) ALL %admin ALL=(ALL) ALL to ## User privilege specification ## root ALL=(ALL) ALL %admin ALL=(ALL) ALL your_username ALL=(ALL) NOPASSWD: /usr/sbin/networksetup and save the file. If you don't know vi: after ...


1

Your PATH environment variable seems to have been changed somewhere. Type the following command at your Terminal prompt: echo 'PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:~/bin:$PATH' >> ~/.bash_profile Exit terminal and the shell by typing exit and closing the Terminal app. Relaunch. Everything should be working now.


1

sudo allows you to run a command at an elevated permission level. You can edit the sudoers file by running sudo visudo One way to do this is to first add a line to your sudoers file which allows the listed commands to be run without a password. By adding the specific command to your sudoers file, you can allow the desired commands to be run without ...


1

Another way would be to check which TTY your terminal is attached to and check which shell is running on that tty. Then you could look at the PID (Process ID) and PPID (Parent Process ID) in case your shell has spawned another shell as a child process: MacBook:~$ w 15:16 up 8 days, 16:11, 2 users, load averages: 1.26 1.22 1.24 USER TTY FROM ...


1

There's an option called resume I think - check out this post. https://discussions.apple.com/thread/4140495?tstart=0. To quote the answer, you can do System Preferences > General > Uncheck 'Close windows when quitting an application' Not exactly what you want, but it's a possible alternative maybe?


1

My goal was to copy files to the external hard drive. They are stored in Macintosh HD (I originally thought I will find Macintosh HD in a subfolder of OS X Base System - wrong assumption). There was no Macintosh HD in Volumes folder, because I first needed to unlock it (I use FileVault). First you need to find the lvUUID of your Macintosh HD. Use this ...


1

You appear to be using git as a file system back-up. Have you considered git-annex? Learning git git can be tricky to learn and debug. Consider mastering the steps you want via Terminal.app – with the help of the Git Book. BitBucket support provides a wealth of examples and workflows to try and to learn from. Once you trust that process, automating via ...



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