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

1
vote
1answer
57 views

Problem persistently defining aliases in terminal

I am trying to persistently define some aliases for my everyday terminal use. I started off with this tutorial: How to persistently define aliases in Terminal, more precisely with Mike's comment. As ...
3
votes
1answer
159 views

Is there a similar functionality of “Get Info” (Cmd+I) from the Mac OS X Terminal.app?

I would like to ask if in OS X there is a similar functionality of "Get Info" (Cmd+I) but from the Mac OS X Terminal.app? I mean something like finderGetInfo /path/to/a/file.ext which will output the ...
1
vote
1answer
25 views

How to use proxy in terminal [duplicate]

Department of Telelcom (India) just blocked some sites in India. But, only Government-based ISPs block access those sites. Other ISPs still have these sites working. One of those sites is Github and ...
2
votes
1answer
29 views

Using Terminal to order SSID preference in System Preferences

I'd like to find a way to add a specific SSID to the top of the preferred WiFi networks in System Preferences > Network > WiFi > Advanced. (10.9 Mavericks and beyond) According to the man page, this ...
35
votes
2answers
45k views

How can I create a symbolic link in Terminal?

I know how to delete a symbolic link/soft link by using command rm in Terminal but I was wondering what command is used to create one?
0
votes
2answers
149 views

AppleHighlightColor syntax

I'm changing my highlight color via a command I find in Mathias Bynen's dotfiles like so: defaults write NSGlobalDomain AppleHighlightColor -string "0.764700 0.976500 0.568600" I'd like to change ...
3
votes
1answer
1k views

enabling/disabling internet sharing with terminal in mac osx 10.9.2

Very much on the line of already existing questions, but not having enough reputation to comment by following existing threads, I can only ask my own, at the risk of duplicating may be, certainly ...
1
vote
1answer
51 views

Where is the bash profile on iOS?

Where is the bash profile on iOS, I am jailbroken and can't find the bash profile, I would like to create some aliases and edit it.
1
vote
2answers
130 views

Shell not finding commands after I changed my .bash_profile file

I was following a tutorial trying to install Laravel (5.0). The tutorial showed to add export PATH="~/.composer/vendor/bin/laravel" to the .bash_profile document. Since then, I am not able to execute ...
2
votes
2answers
57 views

How to access other users' files via Terminal in OS X?

I am an admin that wants to access other users' files. How to do this via the Terminal?
2
votes
1answer
22 views

How to get rid of stuck terminal error

I don't exactly remember what I did last night, but ever since I get this message everytime I launch terminal. Not that it stops me from doing anything, it's just really annoying. Any help regarding ...
11
votes
4answers
32k views

How can I reset a Mac's password from Single User Mode?

My sister bought a used MacBook about 6 months ago and she has lost her password. Here is the procedure I tried to use to reset the password: Boot into single user mode (press Command-S at power ...
1
vote
0answers
18 views

Is HISTFILESIZE behavior different in Yosemite?

For a long time I've used the HISTFILESIZE environmental variable to control the number of lines that get written to my terminal history (the default of 500 is not enough; I set it to 10000). Ever ...
10
votes
4answers
1k views

Login directly to terminal instead of GUI

First: I'm obviously not talking about logging in and then automatically launching Terminal.app. In older versions of Mac OS X, you used to be able to type >console in the username field on the ...
0
votes
1answer
48 views

Replicate my Mouse config in command line

How can I replicate my mouse config (in the images below) through command line?
0
votes
0answers
44 views

fish shell suggests commands in tmux

I use fish shell, it's has option "suggests commands", so it is works like in the next screenshot. Examle: You type command git status. In the next time when you type just g or git fish give you ...
1
vote
2answers
736 views

OS X won't create any symbolic links, creates aliases instead

No matter how I try to create an symbolic link OS X refuses to play along and instead creates an alias. I've tried several tools and also through the terminal using the ln command. I am on a fresh ...
6
votes
4answers
95 views

Figuring out what IP's and Ports a program is accessing

I play poker semi-professionally online and live. When I play online I have a hard time limiting the amount of time I play. There is a free application I found called self-control. It allows you to ...
0
votes
0answers
41 views

Command line “convert” tool corrupting first file in folder

textutil -convert txt * -output * I am batch converting some RTFs to TXTs. For some reason, the first (only the first and always the first) file in the directory does not convert AND gets corrupted ...
1
vote
0answers
25 views

Can I get less(1) to display the final line, without selecting it?

When less(1) is looking at a file with a long name, pressing = updates only the final line on screen. For example, with the Terminal window at 80 columns and 27 rows (the default, I think), if I do: ...
85
votes
5answers
38k views

How can I trigger a Notification Center notification from an AppleScript or shell script?

I'd love to be able to take advantage of 10.8's Notification Center features in AppleScripts and shell scripts I write. Is there a built-in command or a third-party library I can use from either an ...
0
votes
0answers
24 views

How to download via home-brew when connected though Internet dongle?

I wanted to download python on my Mac OS Mavericks. I found a blog which instructed to download it via home-brew using simple command brew install python But I am getting failed to download errors. ...
1
vote
1answer
55 views

Move files if file name doesn't exist considering extension

For example, in folder A, I have foo.jpg and bar.jpg. In folder B, I have foo.png and foobar.png. I only need one version of the file regardless of the extension, so I only want move foobar.png to ...
1
vote
0answers
34 views

Finder's akward filesize behavior

Updated my os from Snow Leopard to Mountain Lion a week ago and noticed strange filesize info inside 10.8.5's finder. The info on filesize/foldersize in 10.8.5 is different from 10.6.5. While a folder ...
6
votes
2answers
669 views

Terminal not working after Yosemite installation

I installed Yosemite now and after the installation the terminal is not working. It used to work before, but after installation of the new OS X on Mavericks it is no longer working. How can I resolve ...
0
votes
2answers
588 views

Unable to set Atom as default $EDITOR

I would like to set Atom as my default editor on OS X 10.10 (Yosemite). In order to do this, I set in my .bashrc: export EDITOR="atom -nw" and reload the file with source .bashrc. Anyway, when I ...
1
vote
0answers
22 views

Terminal command not found [duplicate]

So I was going thru RoR tutorial, installed heroku, heroku toolbelt. I got an error message from Heroku to update to newvest Git for safety reasons. I tried that with installer but heroku version ...
0
votes
1answer
68 views

Slow mac when Terminal have been open for some time

When I have Terminal.app open for some time (mostly after 2-3 hours), everything starts getting slow. When I type there is a delay for each character, and all applications lag when I scroll. If I ...
1
vote
4answers
5k views

How to configure Terminal to be “Putty-like” when it comes to copy-paste with mouse?

As a long time Putty user, I love how upon selecting a text it gets copied into the buffer and upon right clicking it gets pasted back in. Is there a way to configure Terminal to behave the same ...
0
votes
1answer
46 views

Terminal stuck at error won't accept any commands.

I was trying to install CLI package from github but I messed up during the process and ended up getting this error. It is persistent and won't go away. Terminal wont accept any commands like mkdir, ...
1
vote
1answer
53 views

Can't find file saved in Propellerhead Reason 8

I made a song in Propellerhead Reason 8 and I named the file ".cubicle..reason" but now I can't find the file. I was wondering how I could use terminal to locate the aforementioned file.
0
votes
0answers
28 views

No java installations was detected, although I have Java

$ java -version java version "1.6.0_65" Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609) Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode) $ which java /usr/bin/java ...
1
vote
2answers
71 views

How to execute Terminal command using selected text?

I want to bind a shortcut to run a command in Terminal with text that I selected while web browsing. How could I do this?
2
votes
1answer
120 views

Force Macs to run Xprotect updater through terminal to get latest NTPD security patch

Apple released the the patch for an NTPD hole. This patch is automatically updated if you have SystemPreferences-->App Store-->Install system data files and security updates; checked. Which we don't. ...
1
vote
1answer
90 views

Escape single quote in command in alias Terminal

I am working with SVN for version control, and whenever I'm ready to commit some changes, I have to stage them all with the following command: svn status | grep -v "^.[ \t]*\..*" | grep "^?" | awk ...
1
vote
1answer
51 views

How do i mask “forbidden” chars in passwords in the mount command?

How do i properly mask/escape illegal characters like /:@\ in passwords added in the mount command? The question arose in the answer here: mount -t afp ...
1
vote
1answer
112 views

In Bash, can I output text from cut into a new command?

This might be a vague title, but it's hard to explain what I'm doing in a short title. I have a tool that removes adware and it mainly runs in bash. Some of the programs I want to kill may have ...
2
votes
1answer
828 views

Need help with update to latest Git using Terminal

I was trying to update to the latest Git version in my Terminal. I've no clue what I did and all I remember was that I removed the previous installed Git I think because when i run the following ...
0
votes
0answers
161 views

Yosemite blue grey Screen O Death

I have a late model 2011 MacBook Pro, and I upgraded to Yosemite two weeks ago. Yesterday I was working in After Effects on some pretty big movie files when the laptop screen just went black. When ...
2
votes
1answer
39 views

How do I create terminal session independent env vars on OS 10.10?

I read Mortimer's answer here http://stackoverflow.com/questions/25385934/setting-environment-variables-via-launchd-conf-no-longer-works-in-os-x-yosemite and added this file in ...
4
votes
2answers
282 views

How can I specify shutdown time with “sudo shutdown”?

In the following Terminal command sudo shutdown -r now, there is a time set ("...now"). Is there a way to set a specific time. For example, could it be sudo shutdown -r -int 1200?
1
vote
1answer
24 views

How to configure $PATH (for LaTeX) and run commands in Terminal?

After consulting the programming section of StackExchange, I have been referred to apple.stackexchange instead. I am using the following template: ...
2
votes
1answer
27 views

iTerm2: How to change the color used to highlight search results?

It seems that iTerm2 is hardcoded to highlight search results using a yellow background color. I tried both the latest release and the nightlies but could not find a way to change that color. Did I ...
34
votes
5answers
5k views

Is there a way to access a Mac's geolocation from terminal?

Some GUI apps use OS X location services, but I want to retrieve a Mac's physical location from the command line. This could be useful for running scripts, switching settings etc. The mechanism should ...
21
votes
4answers
7k views

Can a Mac's model year be determined via Terminal Command

Does anybody know a terminal command that gives me the the model of my Mac? For example - "MacBook Pro, Retina, 13-inch, Mid 2013" or "MacBook Pro, Late 2009" or "Mac Mini, Early 2010". That ...
2
votes
1answer
84 views

Displaying calendar events as text, in the terminal

Using Yosemite, is there a way to display events from my calendar in the command line? I'm aware of the stock calendars apple supplies for things like holidays and such, /usr/share/calendar/ and the ...
4
votes
0answers
194 views

How to isolate processes that evoke insane mds_stores disk read activity?

I have an interesting situation where when I monitor my disk activity, I find that mds_store is continually running between 1 to 35 megabytes per second (averaging around 3-5 MB/s) on the read and ...
1
vote
2answers
37 views

Escaping variable in script

I'm using script.sh in an OS X Mavericks terminal containing only the following: echo ${1} ls ${1} Now, when I call ./script.sh "/Users/me/some\ directoy\ with\ whitespace/", the echo command ...
2
votes
2answers
46 views

How can I connect to ftp server in terminal?

How can I connect to ftp server in terminal? What is the command? For example for the ssh server: ssh admin@ip.of.the.site
6
votes
1answer
650 views

Force Spotlight to index a normally un-indexed folder

Spotlight only indexes a limited number of folders and doesn't index all of the files on your system. This makes sense and for the average user this usually isn't a problem. However, I recently ...