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
34 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
83 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
255 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
42 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 ...
0
votes
1answer
1k views

Multiple instances of the Mumble client

I have tried command that I found and it works for second and after that second client closes. open -na /Applications/Mumble.app Other command that I tryied with the same resul. ...
2
votes
1answer
12 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 ...
0
votes
0answers
14 views

Terminal not beeping on bell character

I'm running a nearly vanilla installation of OS X Yosemite 10.10.1 with the usual Homebrew, MacPorts, and Fink. I have barely anything installed with these utilities. For some reason, my ...
4
votes
2answers
2k views

brew cask: howto uninstall an Application

I tried, while I am in /opt/homebrew-cask/Caskroom $ for i in *; do brew cask uninstall $i; done Error: appcleaner is not installed Error: avidemux is not installed Error: eclipse-ide is not ...
4
votes
2answers
102 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?
9
votes
3answers
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 ...
1
vote
1answer
12 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
15 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 ...
33
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 ...
20
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
37 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 ...
3
votes
0answers
39 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
1answer
733 views

“Missing Quartz Composition” displayed on TotalTerminal

I started using TotalTermianl on Mountain Lion. But the background have Missing Quartz Composition error. I have found some people had the same as mine here Do anyone know how to fix it??
1
vote
2answers
33 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 ...
0
votes
0answers
14 views

Batch command line “convert” tool corrupting first file in folder

-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 by the ...
2
votes
2answers
32 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
617 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 ...
1
vote
2answers
905 views

“xcode-select --install” versus retrieving the dmg from Apple's developer website

I would to ask a question closely related to already existing posts (How to install command line tools without error that is not currently available on Software Update server? and ...
1
vote
0answers
94 views

Switching network location under Mavericks without password

When using Lion I could issue this command at the terminal to change network locations(which I got from this site, thank you): networksetup -switchtolocation "Proxy" I've recently upgraded to ...
1
vote
0answers
16 views

Change the Linux Debian Mirror [closed]

When I would like to change the mirror in Linux Debian. What is the file I have to configure?
0
votes
1answer
29 views

Why do I have /Volumes/Storage Drive?

In Terminal, I noticed I have /Volumes/Storage Drive. On my mac, I have no drive named Storage Drive. Furthermore, no Storage Drive appears in Finder or Disk Utility. When I cd inside Storage Drive ...
3
votes
2answers
153 views

How to use gcc or git without installing xcode?

I am a newbie of Mac user. I can see there are gcc, git, etc in the "/usr/bin" folder. But when I want to use them, it prompts like this: MacBook-Pro:~ nan$ git xcode-select: note: no developer ...
7
votes
3answers
8k views

Why is my host name wrong at the Terminal prompt when connected to a public WiFi network?

For three days straight, I have connected to the public WiFi network at my local library. Each day, I have seen a different prompt in Terminal. Here are some of the prompts I've seen: zp-pc:~ ...
3
votes
3answers
2k 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 ...
9
votes
5answers
7k views

Waking display from terminal, general waking

This is a two part question. A practical, "how to" question is first, and then I ask for configuration suggestions. First, I put my displays to sleep at night, and I would like to be able to wake ...
0
votes
1answer
31 views

Is there a terminal command to restart an application?

I am having issues with Adobe Dreamweaver on my Mac running Yosemite. I will be in the middle of saving a file to my server and it just locks up. Nothing will happen after that. I try and force quit ...
2
votes
2answers
108 views

Strange ACLs on OS X System

I have a folder on a HFS+ volume I can't delete. I already tried to get rid of the ACLs but somehow this doesn't worked out. The folder is calles CrashPlan.app. Here is what the terminal says: ...
1
vote
1answer
35 views

CD-ing a file to itself

I wrote an application in Applescript to open a black picture and fullscreen it in preview. I need the app to "cd" to itself, no matter where it is. That means if it is on the desktop it can pull up ...
3
votes
2answers
41 views

Created a symlink but Finder shows it as an Alias

When I try to backup my iPhone, iTunes gives me an error, saying that it cannot make a Backup because the backup is damaged or not compatible. To move the backup folder I have followed the steps as ...
1
vote
0answers
13 views
0
votes
4answers
60 views

why cannot I edit my `hosts` file?

I'm trying to edit my hosts file, because doing ssh <some host in hosts> fails to translate to ip. according to the Finder UI it is found under: however when trying to run cat hosts from the ...
0
votes
1answer
28 views

How to downgrade software using terminal?

New apple user here, I am trying to downgrade matplotlib to 1.3.1 after coming to this potential solution: https://github.com/matplotlib/matplotlib/issues/3470/ I just have no idea how to do that.
1
vote
1answer
22 views

How do I zip a .app file using terminal?

I'm having trouble zipping a .app file. If I zip without -r (recursive) it is really shallow, if I zip with -r it's really dense. The zip doesn't unzip correctly regardless.
0
votes
1answer
47 views

Applescript to replace string using sed

I need and Applescript to replace some text as follow: Original text: string  string  string  $  text1 string  string  string  $  text2 text3 string  string  string  $  text4 The ...
6
votes
3answers
4k views

How can I manipulate several security settings from terminal?

I want to change these behaviors from terminal: Auto-login Showing password after screensaver and sleep mode Go to sleep mode after x minutes Enable screensaver after x minutes
2
votes
1answer
183 views

Porting Linux shell scripts

The command shell$ ls . -R works on Linux but not on OS X. This is because OS X command line options have to come before the arguments,and not just anywhere as in Linux. In particular, this ...
2
votes
2answers
21 views

listing files with extension in Terminal [duplicate]

in a Terminal session the command ls *.pdf -l does not list the pdfs (or whatever other file format) as expected, as the -l option seems to be ignored. Everything works fine if I issue a simple ...
2
votes
1answer
27 views

How to change the default command to open shells in the MobileTerminal Cydia package

I am using MobileTerminal on iOS 7, and want to know how to change the default shell from sh: to bash:. I assume I would need to change the login command for this, but how would I?
6
votes
2answers
16k views

Installing .pkg with terminal ?

Is it possible to install a .pkg using a terminal ? (I wanted to install an app through ssh).
1
vote
1answer
29 views

Getting loads of Open error 5's when using Terminal to repair permissions

My GF's MBP running on Mavericks broke down 2 days ago. First I tried to copy the contents of her HDD to an external HDD but got the I/O error time after time. Then I tried all the basic things like ...
14
votes
5answers
2k views

Is there a native terminal in OS X, without having to load the desktop, window manager, etc? [duplicate]

FOr example, in linux you can boot to a terminal, you don't have to load a desktop, window manager, etc. Is there something like this in Mac OS X? And like in Linux, is it possible to switch to one of ...
1
vote
1answer
33 views

Invisible folder after usage of trash-cli

Recently, I decided to install trash-cli on my MacBook Pro after using it successfully on my Ubuntu machine. To set it up I ran the following commands. git clone ...
4
votes
1answer
57 views

Is there a way to put switches at the end when using OS X command-line?

For example: rm long/path/to/some/dir -r instead of: rm -r long/path/to/some/dir Is it possible to make it work like that, as in GNU command line utils? TIA, Karol
1
vote
1answer
67 views

How to know if Drive is SSD or HDD through Terminal?

I would like to know if there is a way through Terminal commands in Mac OS X to find if an attached drive is SSD or HDD.
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
55 views

Terminal command to delete all images in folder and subfolders?

I need a terminal command to delete all images (*.jpg, *.png, *.gif, *.JPG, *.PNG, *.GIF) stored in myfolder and its subfolders, preserving the folders structure. I do not need to move them to trash ...