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
50 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
392 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
69 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
37 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 ...
2
votes
3answers
913 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
159 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
2answers
1k 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
87 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
62 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
72 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
46 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
58 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
70 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
68 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
203 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
479 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
75 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 ...
2
votes
2answers
971 views

Start/Stop Internet Sharing via Terminal in Yosemite without 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
105 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
25 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
86 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
181 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
26 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
27 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
56 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
51 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
35 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
35 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
202 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, ...
2
votes
2answers
59 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 ...
1
vote
1answer
274 views

Mac terminal stop hard drive from spinning

Can I stop hard disk drives from spinning using Terminal? The reason why I want to know is because I have my Mac to backup at midnight however I do not want my HDD to be spinning all the time. I ...
0
votes
1answer
101 views

ss (netstat alternative) for OS X

How do I install ss on OS X? I couldn't find the iproute package in homebrew. Red Hat recommends ss over netstat in Red Hat Enterprise Linux 7. ss is provided by the iproute package. Red Hat ...
0
votes
1answer
354 views

Why is cp command 4 times slower than copying in Finder in OS X 10.6?

I accidentally stumbled upon this issue: Copying a 119 MB zip file took 4 times longer in Terminal (cp) than in Finder! I copied a file of 119 MB size in Terminal with time cp file.zip file2.zip ...
0
votes
0answers
126 views

How to paste Chinese/Unicode characters to Terminal?

I'm trying to paste these Chinese letters: 你好世界 to my Terminal, but instead I've got "^L" or some other weird characters. The same happens for other unicode characters (such as £āēīōūśṣṭēīōū) when ...
1
vote
2answers
76 views

How to show hidden files in finder? [duplicate]

In terminal I ran: defaults write com.apple.finder AppleShowAllFiles TRUE and killall Finder If I CMD + SHIFT + G /usr/local/.git I can see the folder. However, if I CMD + SHIFT + G and go to ...
1
vote
1answer
65 views

How do I create a symlink to MacVim configuration files?

I want to store my configuration files in source control and symlink them so they will be used by MacVim. Looking at :scriptnames I see vimrc and gvimrc being used in: ...
-1
votes
1answer
66 views

How to download pictures from a website using terminal

What terminal command should I use to download all Leonardo DiCaprio pictures of this website to my Desktop : http://leonardodicapriofan.com/photos/thumbnails.php?album=334
2
votes
2answers
106 views

Insert Character on batch folder rename

I have a folder that has several hundreds of thousands of files named like "ABC 123456". I need to add a dash after between the two blocks of text like this "ABC - 123456". Leaving the trailing space. ...
0
votes
1answer
129 views

Syntax error: No operation specified when trying to resize Ubuntu VM

I'm trying to expand the hard drive of my Ubuntu VM in VirtualBox from my Macbook Air terminal. But when I type in VBoxManage modifyhd <uuid>|~/VirtualBox VMs/Ubuntu/Ubuntu.vdi --resize 20000 ...
0
votes
1answer
43 views

Is there a way to get a list of all currently running program's window titles with AppleScript?

I'm looking to write a script which outputs a list of all the window titles of all the currently running programs. Is there any way to do this with AppleScript? I tried running the following code: ...
0
votes
1answer
44 views

Determine and Use Resolution as a Variable in UNIX script on Mac

I'm deploying a NetRestore image to multiple kinds of Macs: MacBooks, MacBook Pros, Mac Pros, iMacs and Mac Minis. I have several custom designed login screens that I'd like to use but everything ...
1
vote
0answers
401 views

Mac OS X Yosemite connectivity issue

Every so often my MacBook Pro starts getting very intermittent network connectivity. I have a Virgin Media SuperHub. Pinging my router gives me lots of request timeouts: 64 bytes from 192.168.0.1: ...
0
votes
0answers
153 views

SSH via sudo cron on Yosemite

I have a shell script that is supposed to run via cronjob on Yosemite, also when no user is logged in. I discovered the cron has to be edited with sudo crontab -e to do that. The script connects to ...
1
vote
2answers
466 views

How to remove space character (whitespace) from end of filenames and foldernames?

Problem with mac is that it allows space character at end of file or folder. If this file or folder with space character in end is beeing copied to FTP using Filezilla or Dropbox then mac makes ...
0
votes
1answer
153 views

How can use ssh to connect to my university network over VPN

I am still a beginner with using terminal. I am trying to ssh from my mac at home to a linux at my university. I am using VPN to connect to the network. When I ping the IP address of the computer I ...
1
vote
1answer
109 views

Automator service: delete last page from PDF with use of pdfsplit via bash

I would like to design a simple Automator service that would delete last page from PDF passed via finder. My proposed syntax for the Shell Script is: for f in "$@" do pages=`pdfcount "$f"` ...
1
vote
1answer
62 views

Processing of Port Wine Failed

I was in the process of installing Wine on terminal (via Macports), and encountered this hurdle while "computing dependencies": "---> Verifying checksums for xorg-libpthread-stubs Error: ...
1
vote
1answer
170 views

ln -s symbolic link command error

I tried to use the ln -s command to create a symbolic link to offload storage onto a separate volume and get the following error: ln -s/Volumes/NONAME/POP-emailaccount@provider.net/ ...
1
vote
2answers
525 views

Why `echo -n` doesn't work in this script on mac terminal?

I am learning shell from tutorialspoint today:http://www.tutorialspoint.com/unix/unix-shell-loops.htm And I copied this code block to a loop.sh file: #!/bin/sh a=0 while [ "$a" -lt 10 ] # this ...
0
votes
1answer
134 views

What this ifconfig output telling me?

What is this output of ifconfig telling me? Any explanation of the first in particular would be sweet. A:~ Linda$ ifconfig lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 ...