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
1answer
12 views

How do you disable Printer Sharing via terminal?

I am looking for a command/script to disable the printing sharing feature via terminal. Does anyone have any idea or know how to go about doing this?
3
votes
2answers
114 views

Script to change downloaded mac wallpaper automatically?

I want to change my mac wallpaper daily with microsoft bing images. I found this script that download the daily picture automatically, but I sill have to set the wallpaper automatically. Is it ...
1
vote
1answer
12 views

In which file Terminal.app stores its windows?

Usually after reboot/crash all Terminal windows are re-open automatically, this time they weren't. Where (which folder/file) Terminal.app stores the session/information about its windows which ...
1
vote
1answer
25 views

Powerline patched font not working on Terminal.app

I am on Mac OS X 10.10.2 (14C2513). I am using Inconsolata patched font from here. But I also tried to patch the font myself. The result is the following: I am able to see the glyphs but zsh (see ...
2
votes
1answer
14 views

Mac nl only takes lines 2048 chars long

I'm having an issue where the Mac version of nl will mark a new line after 2048 characters. I tried it on linux, and it doesn't do this. Any idea why it does on Mac, and how to fix it?
2
votes
0answers
3 views

Is there a way to force clockwise pane rotation in iTerm2 with the shortcut keys?

I've often found that when using iTerm2, I'll have like 3 or 4 panes open in one tab. And the shortcut keys for moving between them Cmd + ] and Cmd + [ are very useful, but unpredictable. The reason ...
2
votes
1answer
73 views

How to gain insight into spotlight index?

I'd like to get a list of all indexed files and their path that spotlight came across. How would I do that ? mdutil does not seem to be of any help.
2
votes
1answer
23 views

Can't get Terminal to Display Colour (Mavericks)

I've recently been working on a script to backup files, etc. for my own use but recently I thought it may look nicer if I was able to cleanup and have everything nice and tidy (with colours and what ...
1
vote
1answer
17 views

How can I access the keychain remotely from the command line?

I am storing various passwords (e.g. for remote email servers) in my keychain. From the command line, when logged in locally, I can retrieve these via: security unlock-keychain ...
1
vote
3answers
42 views

New terminal to same directory

When I have a terminal window open, ⌘N opens a new one. Is there any way to get the current directory in the new window to automatically be the same as it was on the window where I pressed ⌘N?
0
votes
0answers
15 views

Can I get rid of these timestamps in terminal?

I'm getting Javascript output in my terminal and it currently looks like this: Is there a way to get rid of the timestamps at the beginning of each line? I'm not sure if this is something I somehow ...
1
vote
1answer
24 views

How to identify file type for a bulk lot of files and attach suitable extension to each

I have just over a thousand (1000) files whose suffix/extension has been changed by a database engine all to the same thing (eg. fileName.abcd where .abcd is on every file regardless of whether it is ...
0
votes
1answer
19 views

mysql: command not found [duplicate]

How do I use MySQL from the CLI? When I use the terminal, I get: Darrens-MacBook-Pro:~ thufir$ Darrens-MacBook-Pro:~ thufir$ mysql -bash: mysql: command not found Darrens-MacBook-Pro:~ thufir$ ...
1
vote
1answer
14 views

How to install tofrodos in Yosemite via Homebrew?

This thread is based on my attempt to parse windows syntax to unix in this thread. I run successfully brew reinstall tofrodos and get ==> Reinstalling tofrodos ==> Downloading ...
1
vote
1answer
12 views

Bash automatically creating () and ()! files

I noticed that the Yosemite system has been creating files with names just "()" and "()!" in places where I recently made bash commands and want to know why. I can't even delete them use rm as after I ...
0
votes
0answers
16 views

how do I install SIPSAK?

How and where is this installed from on a Mac? For context, SIPSAK is the SIP Swiss Army Knife: sipsak is a command line tool which can send simple requests to a SIP server. It can run additional ...
0
votes
0answers
20 views

Mac Terminal won't accept £ in ssh password?

I have an issue where I'm trying to ssh into the root account of a firewall from my Mac. I'm on the same network as the firewall. ssh root@1.2.3.4 I'm then asked for my password which contains the ...
2
votes
1answer
27 views

Droplet with a progress bar?

First of all, apologies for my ignorance on the subject. All of this ffmpeg and automation is new for me and sometimes I cannot see even evident things. I am learning command lines to encode videos ...
2
votes
1answer
26 views

Open application from terminal and remain linked to the process (like Linux) so when CTRL+C is sent to terminal the application closes too

I have an application (closed-source tool not developed by me) which requires another process to exist before executing properly. When I quit this application, I also want that custom process to be ...
0
votes
0answers
10 views

Backspace over SSH shows ^?

I'm trying to use vim to SSH in terminal on my Macbook. All the solutions I found were for PuTTY, but I'm using terminal. Someone said to add this to my vimrc but that did not work: stty erase ^? ...
0
votes
0answers
28 views

How do I install SIPSAK with macports?

For context, SIPSAK is the SIP Swiss Army Knife: sipsak is a command line tool which can send simple requests to a SIP server. It can run additional tests on a SIP server which are usefull for ...
1
vote
0answers
74 views

Syntax highlighting in Mac OS X Yosemite Terminal

I would like to know what is the method to do syntax highlighting in terminal. I am trying to avoid my mouse to become more of a keyboard junkie so I am working more on Terminal and trying to learn ...
0
votes
0answers
17 views

Executing files directly from read/write WebDAV server

I’m using the Finder’s built-in Connect to Server... feature and use it for connecting to a read/write WebDAV server. Everything is working except executing files hosted on the server. I tried ...
0
votes
0answers
29 views

Terminal runs a lot of programs on start, why?

Every time I open a new terminal it takes a while to hand it over to me because it goes through a process of running sed, awk, and the ruby interpreter (I think that's what it's doing). Can anyone ...
1
vote
3answers
34 views

How to add MySQL to $PATH variable to resolve “mysql: command not found”?

I installed MySQL on my Mac, and now I would like to add it to my $PATH variable. I want to be able to type mysql anywhere. I tried adding the following to my .profile file: export ...
4
votes
1answer
133 views

Broken $PATH variable

I was trying to add something to my $PATH variable, but I think I made some sort of typo. Now, I am trying to fix this, I want to remove what I added, but when I type e.g. open .profile, it tells me ...
0
votes
1answer
89 views

How to access the Wi-Fi password through Terminal?

I am at my school and the computer I am currently using is connected to a Wi-Fi network. I want to know the Wi-Fi password and I am on a Mac. I know there is a way to do it through Terminal. What I ...
1
vote
1answer
22 views

Terminal git:master after oh-my-zshell installation

I just installed oh-my-zshell. And my terminal looks like the image now. What is git master there? I installed oh-my-zshell on other macs, the look is not like that. I am on the root here BTW. Can ...
0
votes
1answer
23 views

Remove all items in mdfind

How would I remove all of the items returned by mdfind? For example, I want to remove all files relating to "MacLaunchpad", so I did mdfind "MacLaunchpad" Which returned ...
1
vote
1answer
35 views

Device name in Mac Terminal is a random person's iPhone? [duplicate]

I was in terminal today and noticed this: Jeremys-Iphone: I have no idea who Jeremy is or have a friend named Jeremy. Do you know what this means, and how this might have happened? Thanks!
1
vote
1answer
29 views

Preview image from pipe

I have a command line utility, let's called as: produce_image. So i can do the following in the Terminal: $ produce_image > some.jpg $ open some.jpg #opens Preview.app also, I have ImageMagick ...
1
vote
2answers
45 views

Trim the middle of a file name

I have a lot of files in a directory that have [!] in the file name. Is there a way to trim that out with a command in the terminal? Here's an example filename. file001[!].ext
0
votes
1answer
27 views

Is there a way to make `open -a` pass command line arguments to the app it launches?

I'd like to run OpenSCAD from the command line with some arguments. $ open -a openscad myfile.scad works as I expect. $ open -a openscad --args --help reports LSOpenURLsWithRole() failed for ...
0
votes
0answers
13 views

shotdetect fatal libpng error gd-png error: setjmp returns error condition

I downloaded shotdetect and followed this guide to install it on OSX Yosemite 10.10.1 . When I try to run shotdetect, it appears to run through the entire video file, but then fails towards the end. ...
2
votes
1answer
44 views

Mac terminal prompt's machine name becomes “bogon” after using traceroute

I was doing some traceroute test yesterday, and today, my Mac terminal's user prompt becomes `bogon:~ myUserName$` Also when I'm doing traceroute like: traceroute www.google.com it stops with ...
4
votes
1answer
126 views

Creating a symbolic link in /bin is not working

I've tried three different ways to create a symbolic link to Sublime Text on my Mac and, after restarting terminal each time, it still keeps telling me command not found. I'm using a Mac with Yosemite ...
2
votes
1answer
40 views

How to unfreeze terminal when SSH connection dies?

I"m using Mac 10.9.5 with bash shell. Occasionally when I ssh into another machine and then the connection dies (e.g. the Internet goes down or I move to a new location), the terminal window with the ...
1
vote
1answer
78 views

Start/Stop Internet Sharing via Terminal in Yosemite w/out using AppleScript

Okay, I see this question has been asked a few times before (here, here, here and here), but none of those really answer the question for me. I don't want to use the AppleScript suggestions provided ...
1
vote
0answers
47 views

Can't delete files from remote Buffalo drive, “Permission Denied”

There are several files on a remote Buffalo drive that I can't delete. I'm using a Mac (OSX 10.9.5) and Finder reports the drive's filesystem as "SMB (NTFS)". I have tried from the GUI and from ...
0
votes
0answers
14 views

Configure terminal dimensions to show as Lines x Columns

In my terminal, when I ask to show Dimensions (profiles -> window -> dimensions), it shows the dimensions as Columns x Lines, but when I use resize -s 25 200, I am actually resizing as Lines x ...
0
votes
3answers
24 views

How do I change the path that is being searched for launching an application?

I am trying to launch the D programming language compiler DMD, but the terminal is giving the following error: dmd: failed to launch executable at /Library/Compilers/dmd2/osx/bin/dmd But there's ...
1
vote
2answers
78 views

Mac OS X administrator account still requires sudo

when trying to install Ruby, Vagrant, and Grunt using terminal I am still required to use sudo on my installs. I am sole proprietor of the laptop and have an administrator account. Shouldn't I be able ...
2
votes
1answer
14 views

Terminal displays directory of previous SSH location even when not running SSH

I am using the terminal app to ssh and when I do, it conveniently tells me (at the very top) what and where I am logged into for example: user@computer:/home/user/directory/ and so forth. However, ...
0
votes
1answer
22 views

Is there a built-in way to both save and copy a screenshot to the clipboard at the same time?

From what I've seen it seems like the basic hotkeys do not allow such a thing, besides if I use the following command on the terminal : screencapture -ci somepath/screenshot.jpg It only copies the ...
0
votes
1answer
42 views

How can I force Terminal.app to take up exactly half of my screen?

I'm using Spectacle for Window Management and I regularly use the commands to split my screen horizontally for exactly two windows. It works quite well for most things, but not for applications like ...
0
votes
1answer
27 views

Changing volume at command line using script/function

I found this nifty command which sets volume to 50% (or any level desired): osascript -e 'set volume output volume 50' I'd love to have a script or function that lets me type v 50 or v 30, etc. to ...
1
vote
1answer
31 views

How can i get the mac family number using terminal?

I want to get model number/family number. http://www.everymac.com/systems/by_capability/mac-specs-by-model-number-family-number.html. I have found the above link that have listed all the Model ...
1
vote
2answers
27 views

In which .plist is the underscan setting stored?

I'm trying to write a script which changes the underscan value on my Mac mini, but I haven't found the .plist file containing the setting. Does anyone know where the underscan setting is saved?
2
votes
2answers
54 views

Terminal/iTerm2 issue: reverse-i-search trims off command

I've been having this issue since 10.9. cd into a reasonably long path, e.g., cd /Volumes/Storage/backup/long/path Enter a moderately long command, e.g., curl -X GET http://localhost:8888 ctrl+R, ...
1
vote
0answers
31 views

Python script executable opened by text editor

I have a simple "Hello world" script that I want to turn into an executable. The problem is that even though I went through the steps of declaring the path of the Python interpreter in the first list ...