Tagged Questions

Terminal (or Terminal.app) is the program included in Mac OS X for running applications and issuing commands using the command line interface. These programs are controlled by typing lines of text, rather than using the mouse or keyboard commands in the usual graphical user interface (GUI).

learn more… | top users | synonyms

0
votes
1answer
5 views

What's the terminal command to see how network shares are connected?

I would like to see how certain volume shares are connected to my Mac. I'm on a Windows network and need to know if shares are connected over smb2 or cifs or afp protocol... etc... Do I need to ...
1
vote
1answer
13 views

How do I replace a symlink with the actual file?

I want to remove the symlink and instead insert the file it links to, if possible all with one command so I can have it as an "External Tool" in phpStorm.
0
votes
0answers
6 views

Turn off or adjust Dictation popup in Mac

In Mavericks, whenever I used Dictation, the little popup window would adjust to the left side of the text in Word, Pages, etc. However, since upgrading to Yosemite, this has been "fixed" and adjusts ...
1
vote
0answers
9 views

How to rename formula installed via Homebrew?

I installed gcc with homebrew: $ brew install gcc I can see the result: $ brew list ant gcc go libyaml postgresql tmux autoconf gdb isl mpfr python ...
0
votes
0answers
35 views

Unable to convert dmg to encrypted dmg on Yosemite

When I try to convert a regular (internet downloaded) dmg file to an encrypted dmg (256-bit AES) using Disk Utility on Yosemite it gives me this error message: How do I get this to work on Yosemite? ...
0
votes
1answer
24 views

/bin/sh don't read .profile after update to mac os x 10.10

I have updated my mac os x to 10.10 and got a lot of problems with program compilations. It looks like that default /bin/sh are not reading .profile anymore. So, all scripts, which are dependent from ...
2
votes
2answers
30 views

Process completed immediately after opening Terminal

After I open Terminal in OS X: Last login: Tue Oct 28 10:29:21 on ttys000 login(14773,0x7fff7572f300) malloc: * error for object 0x7fd4bb715110: pointer being freed was not allocated * set a ...
0
votes
0answers
12 views

Possible to disable window size hints in Terminal.app?

When you resize your terminal and it 'snaps' to the height/width of a single character. Is there a way disable this? Or perhaps another terminal emulator offers this functionality?
0
votes
0answers
13 views

Problem with PATH after installing MySQL

I'm looking for help concerning a problem with my Terminal. After some researches on differents websites, forums, I'm not the first one in that case, but all the solutions I've tried sofar did not ...
0
votes
1answer
21 views

Getting unknown command error when trying to run a bash script

I recently had to re-install 10.9.5 (default install) and am now finding that bash scripts that run perfectly from the command line (~/Me...) no longer work using crontab. I use crontab to invoke ...
1
vote
0answers
10 views

Change Managed, Mobile Account Password through script?

Wondering if anyone has worked with something similar before - we have a number of Mac laptops connected to an Active Directory server, and on first login users create a Managed, Mobile account. When ...
0
votes
1answer
46 views

Terminal commands not found:

Short explanation. After I've created .bash_profile file and added the line export PATH=/PATH/TO/YOUR/sbt/bin:$PATH into it, my terminal stopped working properly. Could you please help me to fix the ...
2
votes
2answers
49 views

Auto-Update Script

I'm trying to get the Macs at my workplace all updating at a specific time. To do so, I'm running a bash script from a spare Macbook running OS X Server. I have one minor and one big issue with my ...
1
vote
0answers
57 views

Keyboard shortcut to change tabs in terminal not working anymore in yosemite

I've set up a custom shortcut for Terminal to change tabs: cmd+option+left/right (the same as in most browsers, for convenience). I did this by going to System Preferences > Keyboard > ...
0
votes
2answers
27 views

Mac Terminal view is Screen Sharing is Enabled

Is there a way to use Terminal to check to see if Screen Sharing/Remote Desktop is enabled? Or is there a file which will have a YES/NO of it? The one catch; it must work without sudo or admin ...
0
votes
1answer
89 views

Shell environment variables not available in GUI apps even if app launched via Command Line

It is expected that shell environment variables won't be available in GUI apps launched via Spotlight or Finder.app. But until Mavericks - I could launch an app via Command line such as: open -a ...
3
votes
2answers
103 views

How to always show window controls in Yosemite full screen apps?

The default behavior in Yosemite for apps with combined window title/toolbar in full screen mode is, that the window controls (signal lights) slide in from the left when the mouse the mouse pointer ...
0
votes
2answers
34 views

How to add icons to iTerm2?

I've been looking into making my terminal more visually expressive. So far I've found , and learnt how to import themes and customize color schemes, but I was wondering how people get these cool icons ...
0
votes
1answer
66 views

My Press and hold accents have been disabled in Yosemite

I just got Yosemite and now my Press and hold accent capability seems to have disappeared with my old software. I tried using /System/Library/Input Methods/PressAndHold.app in Terminal to find Press ...
1
vote
1answer
42 views

How to use OS X's terminal to ping an IP using the latency as a stopping condition for a loop?

What I'd like to do is to ping an IP while the latency is above an specific value. I think an example will help: Let's suppose I have the following result to the "ping *IP here*" command: PING *IP ...
2
votes
1answer
52 views

changes to .bash_profile causing Terminal shell to not load but keep looping with PATH settings

I was trying to make some changes with PATH (mostly add a new PATH) to my .bash_profile and the last line entered was source .bash_profile. After I saved and restarted the Terminal app, instead of ...
1
vote
2answers
35 views

Terminal command to move a number of files containing brackets to another folder or trash

Last night I consolidated a music collection into one place and each song is separated by an Artist folder and the track. The problem is that there are a high number of duplicates within these ...
0
votes
0answers
34 views

A shell script to open files as root in an IDE?

What I'm trying to do: open multiple system (Apache and PHP config) files to edit in my IDE of choice (Coda). The files are owned by the system, so root permissions are needed to edit them. sudo ...
0
votes
0answers
28 views

OS X Terminal – Open Tab in current directory, troubles with umlauts

I run OS X 10.7.5. I am currently experiencing an issue with Terminal. I have enabled the option to open new tabs in the current working directory. However, this does not work as expected, when the ...
1
vote
0answers
22 views

SSH Public key access - my password is being stored somewhere?

I've just created a Public/Private key to access my server via SSH, this has all worked fine but I added a passphrase to the key when it was created. The first time I logged in via terminal and ...
0
votes
1answer
166 views

Terminal switch tabs not working Yosemite

I had added keyboard shortcuts and those were working pretty fine on OSX Mavericks but not working in Yosemite. On pressing shortcut for switching tab terminal just flashes. Check screen shot of my ...
0
votes
1answer
32 views

Recover accidentally deleted Time Machine snapshot

I was running out of space on my external Time Machine volume and has the clever idea of removing all but the latest snapshot using the command line. sudo tmutil delete snapshot Unfortunately I ...
1
vote
1answer
18 views

difference between tty[p,r,s][N] and pts

$ ps -ef | grep tty | grep root | grep "-sh" root 25185 25184 0 Oct 14 ttyp4 0:00 -sh root 22998 22997 0 Oct 14 ttyp2 0:00 -sh root 25379 25378 0 Oct 13 ttyp0 0:00 -sh root 1709 ...
0
votes
0answers
80 views

Best Practices for dealing with unbrewed files in a fresh install of homebrew

I accidentally deleted /usr/local/bin which contained brew among other things. I reinstalled homebrew and ran brew prune to get rid of broken symlinks, but when I run brew doctor, I still get the ...
0
votes
0answers
38 views

Is there a way to clean up possibly invalid disks that only show up on Mac OS Recovery through ‘diskutil list’ in Terminal? Does Recovery use them?

Hopefully that question is clear enough, and hopefully this is just me being silly. When I boot into the Recovery Partition, go into Terminal, and run 'diskutil list', I get quite a few tiny and ...
1
vote
0answers
20 views

How do I Launch an Applescript with a Hotkey Without Automator?

I'm running Yosemite and looking to launch Terminal with a keypress in any application. One solution was creating a Service in Automator that launched terminal and assigning a key to it in System ...
1
vote
1answer
28 views

How to parse output from a command in OS X Automator?

I have the following code in Automator but it fails to load the variable with the output from the command. for f in "$@" do output = hdiutil verify "$f" echo "$output" done I want to parse ...
1
vote
2answers
56 views

Using RVM and installing rspec gem for Ruby

I think I installed rvm correctly. When I type in rvm -v it outputs rvm 1.25.33 (stable) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/] ...
1
vote
0answers
13 views

Terminal: I press “@” or “#” and terminal write “?”

I have this problem only on the terminal. When I would like to write these symbol, for example "@" or "#" the Terminal write this "?" and a do a sound bell. screenshot: I don't understand why. ...
1
vote
1answer
285 views

Error while trying to open new Emacs.app after upgrade to Yosemite

After upgrade to Yosemite I get this when trying to launch new Emacs app from command-line. I've spent yesterday trying to figure out what's the problem, so today I decided to ask here. ➜ ~ open -n ...
1
vote
1answer
62 views

How to programmatically get the path to the wallpaper on the active desktop?

I'm trying to get the path to the wallpaper in the active desktop. However, I'm having trouble reliably getting this. The following sources indicate that ~/Library/Application ...
1
vote
0answers
37 views

Aggressize standard stream buffering in latest Command Line Tools (6.1)

I just upgraded my "Command Line Tools" via App Store.app's update process to Version 6.1. It seemed to install just fine, but a lot of commonly used command line tools now have much more aggressive ...
0
votes
1answer
73 views

Commands not found in Terminal except echo

In my terminal basic commands are not found like: mds-macbook-pro:~ ZILLURRAHMAN$ ls -bash: ls: command not found mds-macbook-pro:~ ZILLURRAHMAN$ env -bash: env: command not found mds-macbook-pro:~ ...
1
vote
0answers
24 views

Any way to reboot a iDevice that is connected to a USB port via terminal (Mac terminal)?

So, I am making a program to reboot iDevices (if there power buttons are broken), is there any way to induce the iDevice to reboot via the Mac shell? Take you'r time.
3
votes
1answer
411 views

Terminal flashes on empty backspace with Yosemite

Since using the Yosemite, I've had the annoying problem of my current Terminal window flashing when backspacing on an empty line. I know on previous versions of OS X this flashing was not default, and ...
0
votes
2answers
238 views

Create multiple jobs in same terminal

Basically I have two jobs: Compiling a code Download a youtube video with using youtube-dl command Both of the above commands use the terminal. I want to execute both of these commands in the ...
1
vote
1answer
29 views

Unpacking .bundle files via terminal

There's a known method for unpacking .bundle by going to Show Package Contents, but what if that option is unavailable? There is a solution that works for .pkg files by using the pkgutil --expand ...
3
votes
2answers
44 views

I deleted /usr/local/bin on my Mac. Is there any way I can see what was installed there?

I accidentally ran rm -rf /usr/local/bin. Yes, I know, I'm an idiot. Is there anything short of attempting to run every single application on my Mac to see what applications need to be reinstalled?
2
votes
0answers
17 views

Tmux hampers osascripts display notification

I like to show notifications from scripts using osascript -e 'display notification "Some text"'. This works fine from the plain shell but it stop working when in tmux. It just doesn't show the ...
1
vote
0answers
34 views

Print file from terminal via smb

So UI printing fails with no reason as always. I hope that I can get more details by printing from command line. Tried smbutil print //user@host/share file got: smbutil: unknown command print ...
3
votes
1answer
121 views

Need help using Homebrew 'Services' command

I installed MongoDB using homebrew recently. A few articles on the web advise to start mongo using the following command, brew services start mongo But when I use this command, I get the following ...
4
votes
1answer
781 views

View passwords of all Wi-Fi networks my Mac has connected to in the past

I have connected my Mac to lots of public Wi-Fi networks. I want to know their passwords. What should be the terminal command to list all the Wi-Fi networks whom I connected with in the past with ...
0
votes
0answers
57 views

Bash shell doesn't inherit $PATH set in /etc/launchd.conf

I am new mac OS X user and recently I am setting up my laptop as a work environment. That concerns environment variables setting in shell. After some search work I found several ways to set ...
1
vote
1answer
50 views

Home folder name changed but terminal prompt is still showing last name

I changed the name of my home folder in 2 ways. First I change it using the instructions from the official Apple website: sudo mv /Users/old_name /Users/new_name and then I also changed it going to ...
4
votes
0answers
38 views

Launchd starts event 40 seconds later?

I've created a .plist file, which should act as system daemon (global with root user). This .plist file listens to the settings directory for changes like changing network settings. When this happens ...