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
0answers
18 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
8 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
2answers
16 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
56 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 ...
3
votes
9answers
5k views

How do I remove crashplan from my Mac

I recently tried out CrashPlan on my Macbook, but I decided not to go through with that. However, now that I'm not going to be using CrashPlan after all, I can't figure out how to remove their app ...
0
votes
1answer
15 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 ...
2
votes
1answer
9 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
29 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
0answers
20 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 ...
0
votes
0answers
15 views

Free up more File Cache in Activity Monitor like PURGE command [on hold]

I have found a application has Clean Memory function. I think it uses the original PURGE function, but after checking (using Activity Monitor), I see that it's likely to be more free File Cache ...
0
votes
1answer
19 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 ...
2
votes
2answers
910 views

Process completed immediately after opening Terminal

After I open Terminal in OS X: Last login: Tue Oct 28 10:29:21 on ttys000 login(14773,0x7fff7572f300) malloc: * error for object 0x7fd4bb715110: pointer being freed was not allocated * set a ...
2
votes
2answers
1k views

Installing Mavericks via Terminal

I have the Install OS X Mavericks.app in Recovery Mode and I want to execute it somehow to start the installation from the terminal, so I don't need the internet connection. I executed the ...
1
vote
1answer
29 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
19 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?
1
vote
1answer
19 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: ...
2
votes
2answers
36 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, ...
4
votes
2answers
6k views

How to debug Trace/BPT trap: 5?

I get a Trace/BPT trap: 5 error when using the open command: $ open -a Emacs Trace/BPT trap: 5 $ open -a Safari Trace/BPT trap: 5 $ open -a TextEdit Trace/BPT trap: 5 Any suggestions how I can ...
4
votes
0answers
78 views
+50

How do I change the color in Terminal indicating the use of a dead key?

A dead key (a key that does not generate a complete character by itself but modifies the character generated by the key struck immediately after) is indicated with a yellow background to previous the ...
0
votes
1answer
43 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 ...
1
vote
1answer
28 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 ...
1
vote
2answers
308 views

Unzipped files mystery location?

I used the Terminal to unzip a file by typing Unzip then dragging the file to terminal. The file unzipped successfully and a few GBs were used from my SDD. However, I have no idea where the files are ...
4
votes
1answer
111 views

“Ghost text” in terminal, Yosemite + TotalTerminal (formerly Visor)

There's "ghostet text" in my terminal (see screenshot), and I'm hoping someone knows how to fix this… Turning background transpareny off fixes the problem, but it's not a solution which I'm a fan ...
0
votes
1answer
26 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 ...
1
vote
2answers
43 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 ...
2
votes
2answers
55 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
0answers
19 views

How to paste Chinese/Unicode characters to Terminal?

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

Terminal paste unreliable

I'm trying to paste text into Terminal (v2.5 build 343, I'm running Yosemite), and it seems to consistently omit characters. For example if I copy the following text to the pasteboard: ...
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. ...
-1
votes
1answer
27 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
0
votes
1answer
18 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 ...
1
vote
2answers
2k views

how to get shell scripts to run at startup on Yosemite

There is a directory in System/Library for startup items I presume: StartupItems I need to have a shell script that will configure ethernet interface at start up, with local network address and ...
0
votes
1answer
34 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
17 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 ...
2
votes
1answer
54 views

Delete key doesn't work in vim on iTerm2

Firstly, I typed some thing on insert mode, like Hello At this stage, if I didn't exit from insert mode, delete works and can delete the whole word if I want. If I quit insert mode, and open ...
1
vote
0answers
25 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: ...
4
votes
2answers
3k 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 ...
0
votes
0answers
27 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 ...
2
votes
2answers
2k views

iTerm2 terminals close immediately with “argpath=login error=No such file or directory”

Whenever I try to open a new terminal window in iTerm, it closes right away after displaying this: ## exec failed ## argpath=login error=No such file or directory Does anyone know what is causing ...
35
votes
7answers
89k views

Is there an OS X terminal program that can access serial ports?

What programs can act as a terminal and access serial ports? This is not for terminal access on an IP connection, this is so I can access a hardware device plugged into a USB/serial converter running ...
1
vote
2answers
49 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
0answers
53 views

ssh from mac to linux

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
29 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
13 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: ...
4
votes
2answers
2k views

What is the “guest” password?

I tried looking for the "guest" password by doing the command dscacheutil -q user and found the guest account. I saw that there was a "password" (I know that the usual guest account does not have a ...
1
vote
2answers
61 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 ...
1
vote
1answer
23 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/ ...
0
votes
1answer
115 views

How can I get rid of MacKeeper Helper on my mac's activity monitor

I have tried to quit, force quit and so many more things in Terminal and all over the place but it's still there. Thanks in advance for help
0
votes
1answer
213 views

move a file, replacing existing (if any), ideally by putting existing in the trash

I am trying to find a way to automatically (without user intervention) move a file from A to B, replacing B if it exists, ideally by putting the existing copy of B into the appropriate Trash folder. ...
2
votes
2answers
1k 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 ...