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
0answers
3 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
17 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
34 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 ...
1
vote
0answers
21 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
20 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
28 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
30 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
41 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
26 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
25 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
18 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
18 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
73 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
17 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
11 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
34 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
17 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
10 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
21 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
31 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
127 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
47 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
33 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
60 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
19 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
243 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
236 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
23 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
35 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
15 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
30 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
96 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
754 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
48 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
36 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
36 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 ...
1
vote
1answer
52 views

How to sign in Messages app in Mac Mavericks from terminal

Is it possible to sign in Message app from terminal ? When I search for it, I only see on how to send imessage from terminal. Thus, how can I do that ?
0
votes
1answer
25 views

Why my brew does not work?

I installed brew before, but it does not work now. When I run brew, it give me the error -bash: brew: command not found So I tried to reinstall using the code ruby -e "$(curl -fsSL ...
2
votes
1answer
23 views

Mac OS X (10.9.2) Terminal: Getting Weird Characters ~$â

out of nowhere I am getting the following weird characters: $â followed by a paragraph sign. See the below image for more detail: Also note where the white cursor is: it's basically 'one-off' so ...
0
votes
2answers
22 views

To prevent Finder from showing .noindex files

I can restrict Finder searching files by adding .noindex -extension, this thread. However, I want hide those files in Finder search. How can you prevent Finder from showing .noindex -files?
2
votes
1answer
34 views

Change user name

I had to change the admin user name of a new Macbook because his sons name kept showing up, Home Folder etc, So I used, 'sudo mv /Users/oldusername /Users/newusername' and Advanced Options in User ...
1
vote
1answer
16 views

Concatenating date and cycle count to file on startup

I have the following code from here to find the cycle count of the battery on my computer: system_profiler SPPowerDataType | grep "Cycle Count" | awk '{print $3}' I will enclose it in a simple app ...
2
votes
0answers
28 views

SSH to device via USB

When I try to SSH over USB to my device running linux, I get "ssh: connect to host 10.90.1.2 port 22: Network is unreachable" Mind you, I can run the same command "ssh root@10.90.1.2" on my linux ...
1
vote
1answer
59 views

Recompiling bash to avoid shellshock seems to have messed up bash

I probably shouldn't have even messed with it, but I followed the instructions to recompile bash here: How do I recompile Bash to avoid Shellshock (the remote exploit CVE-2014-6271 and CVE-2014-7169)? ...
3
votes
2answers
33 views

Merging multiple AIFF files from the command line

Is there a way to put multiple commands in different voices into the same audio file. I know you can do this: say -v "Cellos" "la di da" -o ex.aiff But I have multiple commands in different voices ...
1
vote
1answer
18 views

How to open a new tab in iTerm in the same folder as the one that is open?

I'm using iTerm for my command line needs, and when I open a tab using ⌘T I want it to open the tab cd'ed to the same location as the tab that was open when I hit ⌘T (instead of opening in my ...
2
votes
2answers
640 views

brew bundle reporting “Error: unknown command: bundle”

I'm completely puzzled by this one. I have refactored my install scripts to use the new brew bundle feature. However, I'm getting "Error: unknown command: bundle" $ which brew /usr/local/bin/brew $ ...
0
votes
1answer
109 views

iSSH alternative

I'm using iSSH application on my iPhone, mainly for VNC connections. I like its usage. But as I understand, this app is not in App Store now, and the development of iSSH was ended. Could you please ...
0
votes
1answer
54 views

What is the meaning of the command lsof +L1

lsof +L1 My understanding is that the command above shows files that have been deleted but are still open. These files have a “link count” of 0, meaning that there is no directory entry (no link, ...