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
2answers
43 views

applescript will not stop running

I have an applescript that utilizes a named pipe and pipes data over to it. I have my script passing said data in a while loop, which is working, but I find that I am unable to stop the script ...
0
votes
0answers
13 views

Make `$ hostname -f` return fully qualified hostname

How can i make $ hostname (in the terminal) return a hostname including the domain information? At the moment, $ hostname, $ hostname -f and $ hostname -s return the same name, all without the domain ...
1
vote
1answer
22 views

No commands installed from pip work in Terminal

I've been learning python and tried to install pep8, restviewer and other command line apps but when i try to run them, it shows a command not found error. -bash: restview: command not found I've ...
0
votes
0answers
51 views

.bash_profile is not working unless sourcing it manually

I got a new machine (yosemite osx), and I am trying to set it up. I have created .bash_profile, but unfortunately it doesn't work. Even if I log back in or restart the machine, and open terminal ...
9
votes
3answers
854 views

Any way to make Cmd-D “delete next word” rather than “split-pane” in Terminal

I am so used to using ⌘D to "delete-next-word" in emacs and xterm, that I automatically hit it in Terminal all the time, which rather annoyingly (to me, at least) causes the pane to split instead. ...
4
votes
6answers
10k views

How can I write a script to open multiple terminal tabs and execute code in them?

I want to be able to open the terminal application and have it either automatically run a script that opens several tabs and run an arbitrary set of commands in each. For example I would like one tab ...
5
votes
1answer
742 views

Can an alias be added to the dock via the command line?

I found this article but it handles the GUI solution. I would like to automate the setup of a new machine, and do that I've created Dropbox shares of a number of my common configurations. (I could ...
0
votes
1answer
17 views

How to get current user SID in Mac OS X

For my application purpose, I want to get the user information from Active Directory. Especially I want to get current user SID and user account domain SID. Can anyone tell me some way to get this ...
4
votes
2answers
2k views

How to spoof a USB-Ethernet adaptor Mac address in OS X

I've recently bought a usb-ethernet adapter (not apple) and I get internet connection. In my university we have to put a specific mac address but I can not change it. I have tried with sudo ...
3
votes
5answers
840 views

Make shortcuts to directories via terminal

My problem is: whenever I'm coding, I work inside folders that are inside other folders and it's a long way to type: cd /folder1/folder2/.../folderN I know it's possible to make a shortcut to the ...
1
vote
0answers
24 views

“Unable to unmount volume for repair” message from reformatted SSD (and empty) in “Option/ALT startup”

I am trying to reformat a Samsung 512GB Pro with bootable USB, and I have manage to get through the prep for the USB so i`m in no need there. But after the "Option/ALT startup" i click on the USB to ...
0
votes
0answers
10 views

Force Mac OS X to Register USB devices

I'm using an HDMI CEC adapter connected via USB to my Mac Mini (Machine model Macmini6,2). Often when the Mini is rebooted it fails to register the adapter. Unplugging and replugging the USB cable to ...
1
vote
1answer
30 views

How can I “Open an app from an unidentified developer” without using the GUI

Basically, I used the native Safari.app web browser to download a third party application and I want to run / open it from the comfort of my bash shell / Terminal.app CLI; despite the following error ...
1
vote
2answers
298 views

Password no longer works on MacBook Air Yosemite 10.10.2 I need to reset the password, without logging in

I do not know why, but my password is no longer working on my MacBook Air v. 10.10.2 Yosemite. I have tried several things including restarting in Recovery Partition, going to terminal and typing ...
2
votes
1answer
18 views

How do I open a new Terminal window ssh'ed to another machine from the command line?

From the command line I'd like to open a new Terminal window that is already SSH'ing to a host. From the command line, I can open a new Terminal window very easily: open -a Terminal or open -a ...
31
votes
9answers
10k views

How do I speed up new Terminal tab loading time?

How can i speed up the terminal startup in Lion? I'm not referring to the startup of the Terminal application, but to the startup terminal windows, like when i open a new tab. I don't have anything ...
2
votes
2answers
3k 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
0answers
15 views

`LSOpenURLsWithRole() failed with error -10810..` :~ root#

Okay, so I turn on my laptop, sign in to my regular user account and proceed to open/run a Java-based, HTTP-proxying application called burp via Terminal.app. It executes normally but refuses to bind ...
1
vote
3answers
300 views

Is there a command similar to Linux's command-not-found?

Most Linux operating systems have a package like command-not-found (http://packages.ubuntu.com/utopic/command-not-found), which provides suggestions when a shell command was not found, e.g. because ...
2
votes
1answer
36 views

How do I change Mission Control shortcuts from the command line?

I have been trying to figure this out for a long time. I have a pretty typical Mac OS provisioning script: https://gist.github.com/ryanpcmcquen/b2e608311f286a4ab3e1 I would like to change the ...
1
vote
1answer
41 views

OS X Server leaves some unwanted open ports after removal

I am currently running OS X Version 10.9.5 (Mavericks). In the past I installed OS X server and had to sign some certificates so that users could authenticate with the VPN function (which is what I ...
0
votes
1answer
51 views

How can I create a custom behavior for a URL scheme?

I would like a specific URL scheme, magnet:, to run a command in Terminal. For example: magnet:?xt=urn:bKKH Would execute: myCommand "magnet:?xt=urn:bKKH"
2
votes
4answers
262 views

How to remove or hide Apple applications from my app folder?

I've got a lot of Apple applications on my Macbook which I never use (Photos Facetime, iBooks, iMovie, iTunes, etc.). They just clutter up my application folder and I want to get rid of them. This ...
2
votes
1answer
47 views

How to start Firefox web browser from terminal in private mode?

Simply put, how do I open the Firefox directly from Mac OS X Terminal in private mode?
0
votes
2answers
37 views

What is the netstat command for particular port if that's connected or not? [closed]

Need to know what is the exact netstat command to find out if a port is connected with any network or it's open through OS X Terminal. I want info on a particular port, such as port number 80, so the ...
1
vote
1answer
40 views

Can't install Python Modules

I'm running OSX 10.8.5 with python 2.7.10. When I run the following pip install pyodbc I get the following error message. Error Message: Command ...
4
votes
3answers
17k views

How do I convert a suitcase font?

I have a font set - Type: Font Suitcase I am sure I have used a terminal command to convert it to a TTF or OTF. I don't really want to pay for software to do so. What is the best way of converting ...
2
votes
3answers
3k views

Installing Mavericks via Terminal

I have the Install OS X Mavericks.app in Recovery Mode and I want to execute it somehow to start the installation from the terminal, so I don't need the internet connection. I executed the ...
0
votes
0answers
23 views

Mount external HDD readOnly option

I have the following problem: I used the optical bay to use a HDD in my mid 2010 13" Macbook Pro in addition to my SSD. It was working just fine until a few days ago, when it started to get "slower". ...
10
votes
3answers
7k views

How do I make Terminal.app's scrollbars disappear in Lion?

Once I upgraded to Lion, I found out that the vertical scrollbar is always plastered to the right side of the application window. Because I run GNU Screen within Terminal.app, the right side of the ...
2
votes
2answers
128 views

Should the pgrep command be available in OS X 10.7.5

I posted this question on stackexchange and was told in no uncertain terms that my system was broken because pgrep did not exist in /usr/bin This has me worried, my system is stable and I am sure I ...
0
votes
3answers
53 views

command + delete in terminal

Often, when I'm typing in a super long command(usually ruby on rails console code), I decide that I need to do something else first and therefore, have to delete the command which I just typed(but not ...
3
votes
2answers
3k 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 ...
1
vote
0answers
14 views

Using Dictation with MacVim or Terminal

I'm trying to use Dictation on Mac 10.10.5 to enter text into MacVim (or into Terminal). It works for the most part, but for whatever reason, those programs won't let Dictation add a space after each ...
0
votes
2answers
21 views

Adding Gradle to PATH

I am trying to add Gradle to my PATH. I have used the command export PATH=/myUsername/Applications/gradle-2.6/bin:$PATH but when I type gradle I get an error "command not found." So I went to ...
1
vote
2answers
29 views

Can I replace characters in AppleScript?

I'm working on an AppleScript to mount our Active Directory Home Shares and I've come up with the following part that looks at the logged in users "SMBHome:" and it gives me the users home share but ...
3
votes
3answers
4k views

How to make bash (Terminal.app) remember history of previous sessions?

In my computer at work, my bash shell remembers history from previous sessions, even if I just opened a new terminal. In my computer at home, this doesn't happen. I have the same OS 10.6.8 in both ...
1
vote
1answer
10 views

Trying to replace volume sound in OS X to what was present before. Encountering permissions problems even as root. Help?

I'm trying to get the old volume feedback noise on my MacBook. I have a copy of the sound file but the system is refusing to let me replace it, even as root. I found this article that also explained ...
1
vote
1answer
18 views

install: illegal option — D

In linux the command install has these options (among others): (from the man page) -d, --directory treat all arguments as directory names; create all components of the specified directories ...
0
votes
0answers
50 views

How to pause Applescript when another process is not responding to system events?

I would like a Applescript to pause while a specific process/script/app is not responding (temporarily or permanently) to system events, and to start-up again when the other process is back. In ...
0
votes
0answers
21 views

Protect changes to plain text file written by standard user's execution of bash script

I have written a simple bash script that I want to use as a time clock for employees (work-studies) in my computer lab. The script works great. 1. Each work-study has two icons (two separate bash ...
1
vote
1answer
27 views

Disk utility unable to change partition type

I'm trying to copy a .img disk image to a microSD. However, when I try to move the contents of the image I downloaded to the microSD, I get this: Same result when copying via Terminal. ...
0
votes
0answers
18 views

ffmpeg - how to merge two h264 videos, using one of them as alpha?

I need to merge two 264 videos: one of the two is a normal rgb video, and the other is a greyscale video that I would use as luma matte to make a final prores clip with alpha. Is it possible doing it ...
0
votes
1answer
25 views

Finder is showing many files which I have deleted

I have an Xcode project which I just deleted so I could rewrite it. (I used rm and rmdir) Here's the problem: Though ls says that the folder is clean, Finder says it's still, there, and, what's more ...
1
vote
0answers
14 views

Using osacript to access Finder from crontab (or from non-interactive session)

I have a script that generates a dmg file from my application bundle. This is generated every night from our subversion repository. If would be interesting to set up things like the DMG's window ...
0
votes
0answers
17 views

Open Emacs with separate instance in mac os x yosemite

I am on Yosemite 10.10.5. I would like to open emacs from spotlight or from the Terminal as separate instances so that when I close one emacs window the others don't close either. Similar questions ...
3
votes
2answers
1k views

How to get rid of “You have new mail.” in zsh

I'm using zsh with prezto as my shell with iTerm as terminal app. I always get the message "You have new mail" when opening a new prompt. I don't have any new mail in Mac Mail and I don't run a mail ...
0
votes
1answer
18 views

Add bottom margin or scroll past last line in Mac OS Terminal

If I have a full terminal history then the cursor will line up at the very bottom of the window. I generally prefer working more toward the middle of the page. Especially since I usually keep the ...
0
votes
1answer
1k views

Mac stuck in safe boot

I accidentally did a hard reset on my mac by doing contorl+c when my mac was booting up. I typed /sbin/fsck -fy because it was supposed to fix my Mac so that it is no longer stuck in safe boot. It ...
4
votes
2answers
143 views

Prevent Finder to launch on boot

I do not need Finder because I use Ranger in CLI and I manually quit it (I added the quit option) each time I boot (mainly not to have it in the way when I use to switch applications with cmd + tab). ...