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
6 views

How to change text before $ in Bash?

I am thinking how OSX is controlling the front things. I see now Maths-MacBook-Air:Volumes masi$ which I want to reduce to Volumes masi$ I could do not directly by serial programming in Bash ...
0
votes
1answer
8 views

Essential Networking Commands

I'm used to working with Linux so I like being able to do as much as possible from the comfort of my Terminal.app bash shell. So.. What are the essential networking commands & utilities ...
-1
votes
0answers
7 views

Make GUIs have the same $PATH as the terminal

I have a shell script (git hook) that uses some terminal commands such as mvn, java, and possibly others. When running the script from the terminal, all is fine. When a GUI (Git Tower) uses the ...
0
votes
0answers
10 views

Xcode Zombies from the command line

I'm encountering EXC_BAD_ACCESS, and I'm not sure of the cause. I know that Xcode offers Zombies, but when I try instruments t="Zombies" my_program_name it doesn't seem to raise the appropriate ...
0
votes
1answer
24 views

How do I access an SMB Share being hosted on a Mac running OS X?

I'm very new to the world of Apple so pardon my ignorance & general lack of knowledge. I only have Terminal access to a Mac which is being used for test purposes. I'm trying to share a folder ...
0
votes
0answers
3 views

Non-debug qlmanage

I've got a bash alias set up in my terminal, alias quicklook='qlmanage -p ', in order to easily quicklook files from the terminal, but the output bugs me. Testing Quick Look preview with files: ...
0
votes
1answer
17 views

Typing the control+\ (backslash) on Apple keyboard

I've been trying for quite some time now to figure out how I'm supposed to type the escape sequence '^\', Control+Blackslash on a Mac. I have a Swedish keyboard with the Swedish Pro layout, and I ...
1
vote
0answers
14 views

How to run Continuity Activation Tool from Recovery HD's command line?

I use Continuity Activation Tool to enable Continuity on my early-2011 13" MBP with an upgraded AirPort card. However, El Capitan's Rootless feature has forced me to use a modded version of CAT that ...
2
votes
5answers
110 views

Terminal: command to show application folder

I recently discovered that I can open application from Terminal like this: $ open -a TextEdit Is there any command that would just show the application folder instead of opening it? Such that I ...
1
vote
1answer
57 views

Make `hostname -f` return fully qualified hostname

How can i make hostname (i.e. the unix commandline tool hostname, invoked in terminal) return a hostname including the domain information? At the moment, hostname, hostname -f and hostname -s return ...
1
vote
1answer
27 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
1answer
22 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 ...
0
votes
0answers
53 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 ...
0
votes
0answers
12 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
0answers
27 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 ...
2
votes
1answer
19 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 ...
-3
votes
0answers
35 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 ...
2
votes
4answers
270 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
37 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
43 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
2answers
38 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 ...
2
votes
1answer
55 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
0answers
27 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". ...
0
votes
2answers
48 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 ...
2
votes
2answers
131 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 ...
1
vote
0answers
15 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
25 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
30 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 ...
1
vote
1answer
11 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
25 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
1answer
53 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"
0
votes
0answers
22 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
28 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
19 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
26 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
21 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 ...
0
votes
1answer
20 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 ...
4
votes
2answers
144 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). ...
0
votes
0answers
36 views

What will “rm -rf /” actually do?

I know that this is a very dangerous command, but what does it actually do. In other words, to what extend does it delete the hard drive. Does it delete only the user data? Or does it delete root OS ...
2
votes
1answer
13 views

Terminal app slows switching of desktops/Spaces

I noticed some time ago that when switching from one space (workspace/desktop) to another this animation is slowed if a terminal app is running on one of them. Funny thing I found out by experiment, ...
1
vote
1answer
15 views

Time machine creating files and directories at random places

I'm gonna keep this short and simple. I have a ~/.vim folder and ~/dotfiles/.vim folder (the ~/dotfiles/.vim was copied to ~/.vim). Yesterday I noticed that I had several files with weird permissions ...
0
votes
1answer
34 views

What does these extended attributes mean and where are they documented?

For some reason a directory I had (Vundle.vim) got randomly copied to another directory (got copied from ~/.vim to ~/dotfiles/.vim with strange permissions and what looks like no contents. Anyways, ...
1
vote
1answer
30 views

Terminal Command to display a single line from a text file in OS X

I want to display at a specific line, e.g. line 4, from a text file in Terminal (I need this for character counts, using wc). I'm sure this is a simple problem but read -e 1 filename doesn't do it. ...
6
votes
1answer
632 views

Terminal becomes unresponsive when a “sudo” password prompt is displayed

When asked to type my password to run a sudo command, the USB keyboard goes unresponsive and I cannot type in the password or anything else. I can hit return three times to bounce out on three failed ...
1
vote
1answer
52 views

Mac crashes when using Terminal app

I'm having trouble with my MacBook Pro. Specifically, it always crashes when I try to open the Terminal app. I get the following report: Anonymous UUID: 071752AC-395C-0603-2111-894859AA762E ...
0
votes
1answer
34 views

Terminal: grep command usage with '[' character as target, not function

Im using the grep command In a simple script, the problem however Is that the string which the grep command Is searching for includes a square bracket character: [. After some research, i have found ...
2
votes
0answers
30 views

terminal aborts when process finishes running with non-zero return value

My terminal is aborting when it encounters CTRL-Z: Last login: Thu Aug 13 11:13:51 on ttys000 mymac:~ snowch$ sleep 10 ^Z [1]+ Stopped sleep 10 [Process completed] Sometimes I ...
0
votes
0answers
9 views

Set Terminal.app preferences so CL and stdout are different colours

I see a lot of screen shots of Terminal and bash windows where the promote line and the user input is one colour (say white) and the other lines returned from commands entered are a different colour, ...
1
vote
0answers
32 views

Applescript exits with error when run via launchd

I have an applescript running beautifully in Script Editor as well as from an osascript command at the Terminal. The script talks to the Reminders.app in order to pass iCloud reminder entries to a few ...