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
44 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
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
89 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 ...
0
votes
0answers
55 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
13 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
15 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 ...
2
votes
1answer
295 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 ...
4
votes
2answers
105 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
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
16 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 ...
3
votes
0answers
48 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 ...
2
votes
1answer
41 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 ...
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 ...
1
vote
0answers
17 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
30 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 ...
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
3
votes
2answers
155 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 ...
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 ...
3
votes
2answers
42 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

Toggle notification center's DoNotDisturb from terminal [duplicate]

Is there any way to toggle it with i.e. osascript? I'm on Yosemite.
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 ...
1
vote
1answer
36 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 ...
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 ...
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?
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
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 ...
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 ...
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
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 ...
1
vote
1answer
68 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.
0
votes
1answer
19 views

Hostname changes all the time from capital to not capital and back

my Macbook air is called Johannes-Air. But when I open the terminal sometimes it says Johannes-Air and sometimes johannes-air. Does anyone know why this happens and how to stop it?
1
vote
0answers
11 views

On which processor does my simulations run? [migrated]

I am currently running 11 numerical simulations (coded in C) on another Mac computer via my Terminal using ssh and screen (Bash) on Mac OS. The computer that is running the 11 processes has 16 ...
0
votes
0answers
26 views

How to mouse copy a very long line in vim terminal OS X

I want to copy with mouse one line from one vim terminal to another vim terminal. This line is huge and has a hidden character (I presume at the beginning) that I do not want to copy. In other ...
0
votes
0answers
8 views

Add a path to the system PATH [duplicate]

Please help me figure out how to set a system wide PATH..... I have upgraded svn to version 1.8.10 on osx 10.9 One of the required steps was adding the address of the current svn to the PATH. ...
0
votes
1answer
24 views

Fullscreen a running application from the terminal

I'm trying to pull a prank on a friend. I have a shell script that continuously cats a C source code file so make it look like the terminal is "hacking" something. The next thing I would like to do is ...
-2
votes
0answers
25 views

How to prevent my app from launching in a terminal?

When I open my app in finder, it opens a terminal like this: Last login: Mon Dec 1 10:13:26 on ttys001 MacBook:~$ /Users/me/Library/Application\ Support/myapp ; exit; I noticed that if I configure ...
0
votes
1answer
43 views

how to find files with .j or .jp extension

I have some image files that have a messed up extension. The files are of the following format: "filename." "filename.j" "filename.jp" I need to find all these files which are in several folders and ...
0
votes
3answers
257 views

Chrome won't quit! (Mac Yosemite)

I tried normal quit, and it closes and immediately re-opens. I tried force quit, and it closes and immediately re-opens. I tried force quit from the Activity Monitor, and it closes and immediately ...
1
vote
1answer
54 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
0answers
15 views

Need help fixing bus error in Eclipse Java? possible Pathway problem

Whats up folks, i have posted this question on other forums but got no reply, just note before you read, my terminology is not the greatest, im only studying IT this year, so my knowledge be still a ...
0
votes
2answers
28 views

Extract target of alias from Terminal

In my Finder windows I have many aliases that target other folders or documents. At the shell prompt in Terminal, these aliases show up as regular files. How can I get the target of an alias so that, ...
0
votes
1answer
53 views

Can I launch the File (Save/Open) Dialog from the command line?

Bash and vim's file completion facilities are effective for navigating through a few levels of a directory structure, but can be cumbersome when working with unfamiliar directories. Alternatively, I ...
1
vote
1answer
20 views

Disabling “access to contacts” dialog box with terminal

I am trying to disable the following dialog box that pops up all the time when I open Mail.app: Is there a way to do so using terminal? Thanks!
0
votes
1answer
21 views

Is there a way to immediately exit a hanging connection in Terminal?

I often have SSH connections through Terminal that stop responding (like if I've left it overnight) but when I try to use the dead connection Terminal doesn't respond for several minutes until: Write ...
2
votes
1answer
37 views

Keeping Finder in sync with changes made in Terminal?

Until Yosemite, I could work in the Terminal and file system changes would be immediately updated in Finder. Now, however, Finder seems to be out of sync with the filesystem. Finder shows files I have ...
0
votes
0answers
24 views

Path Finder 7: Using Terminal at bottom - not able to place @ sign

I am having troubles to place the normal @ (at) sign in the terminal in path finder. I do have German keyboard Layout, which means the @ sign is "option/alt + L". Simply nothing happens. Did someone ...
0
votes
1answer
15 views

Specifying network device used by software (or port) (in Terminal)

Is it possible to specify which network device should be used when running something in the Terminal? Like $ rails [only communicate through deviceA] Not just app, but instance specific, so ...