questions narrowly about terminal.app alone should use this tag. Please consider using **command-line** for any question not specifically about the native terminal app

learn more… | top users | synonyms

3
votes
3answers
2k views

How to store SSH Credentials in Terminal

I am new to the MacBook and I am running El Capitan. I'm migrating my machine usage from a PC to a MacBook. I am long time user of PuTTY and SuperPuTTY on a PC. I want to create and save login ...
0
votes
0answers
34 views

arrow keys in nano text editor on iPhone

I am using the nano text editor on iPhone, the one included in the terminal app downloaded with Cydia. I have difficulty in editing my files, because I cannot properly move the cursor. I can only move ...
1
vote
0answers
144 views

Command line tool for interacting with Bluetooth Low Energy devices, similar to gatttool

I've just found out that some Python code I've got working on Linux also needs to work on OSX. For reliability reasons, on Linux I've been using a cludgy but effective approach to reading and writing ...
1
vote
1answer
53 views

Run Terminal Command from .terminal file

I just figured out how to export settings from terminal which creates a .terminal file. And I realize that the ExecutionString parameter has changed to the CommandString parameter. I put a command in ...
1
vote
0answers
32 views

Bash add Symbolic Link to Finder sidebar

Can I programmatically add a symbolic link to the Finder sidebar. Manually dragging is not an option. Bash is preferred, but other options that can be invoked from bash (i.e. application with ...
2
votes
1answer
230 views

PostgreSQL- Cannot connect to server

PREFACE: I just bought my first Mac laptop a week ago so that I could get some work done on my trip, but so far I've spent most of my time trying to solve an issue with PostgreSQL. Something went ...
1
vote
1answer
62 views

Auto completion of accents and tilde OSX

I've been working on macs for a couple of years now, and recently switched jobs (Software dev). Before when I was typing something like "e would not automatically merge into ë. This is really ...
1
vote
0answers
112 views

How to disable mouse acceleration without logging out?

I know I can type in the terminal: defaults write .GlobalPreferences com.apple.mouse.scaling -1 to turn off mouse acceleration BUT this requires me to log out and log back in to take effect. The ...
0
votes
0answers
64 views

SSH disconnects after successful connection after pressing any key

I am working with a new macbook pro with OS X Yosemite 10.10.5. I have had the problem described below since my very first ssh connection attempt at the terminal a couple of weeks ago. Since then, I ...
5
votes
3answers
433 views

Setting font weight in Terminal.app for El Capitan

I've noticed that there's a subtle difference in the way fonts are rendered in the Terminal app in El Capitan (vs Yosemite). It seems like it used to be the case that the AppleFontSmoothing property ...
1
vote
2answers
3k views

External Display and Blurry Fonts on El Capitan

I am one of the many who have extremely blurry fonts on external displays connected to my 2014 MacBook Pro. The solution for me has always been to follow this guide which runs a ruby script and puts ...
0
votes
1answer
21 views

Terminal problem: dhcp mode

Everytime I start terminal, it says dhcp instead of my account name. Why is this and how do I exit out of it? dhcp-205122:~ NAME$
70
votes
2answers
11k views

What functionality do 'marks' offer in the El Capitan Terminal?

Since upgrading to OS X El Capitan, I've noticed a change in the Terminal: Executed lines show an opening bracket on the left, and a closing bracket on the right, as shown in this screenshot: ...
0
votes
0answers
13 views

Self Control app timer stuck

I got a self control timer that's stuck at a very high count. Haven't been able to fix this though I've tried several commands in Terminal.app What can I do? Joachim
1
vote
1answer
48 views

“Failure while executing” error when trying to install GCC

I've followed the instructions of the both the accepted answer to this question as well as the other suggestions, How do I install GCC via Homebrew?. But all I get is the following message when I run ...
0
votes
0answers
9 views

Drag Click Suddenly stops working in Terminal on a mac

While working in a terminal window on a mac OSX 10.10.5 with terminal Version 2.5.3 (343.7) the drag click will stop working for highlighting text. The only way to "fix" it seems to simply quit and ...
1
vote
2answers
52 views

Steps to send a file with FTP?

I can connect to my server in my terminal with ftpcommand. Then, I connect to my site with open xxx but I don't know how to send file from my computer (local) to this server, with put. Can someone ...
0
votes
1answer
267 views

How to install ruby gems without sudo

I want to install a Ruby Gem to my computer, but since I don't have an administrator account I can't use sudo. How do I install a Gem without sudo, and what (if any) privileges do I loose? This is in ...
2
votes
2answers
118 views

Remove iterm from cmd+tab apps

I was using TotalTerminal to get visor like terminal on a shortcut. But TotalTerminal is abandoned so I have switched to the iTerm2. My problem is that when I use a shortcut to trigger iTerms visor ...
4
votes
1answer
423 views

I can't uninstall Homebrew. How can I find and remove all of my Homebrew files and re-install it again?

I've deleted a main Homebrew file and now I can't un-install Homebrew. I want to un-install it and then do a fresh install. This is what I'm getting in the Terminal... host:~ user$ ruby -e ...
0
votes
0answers
23 views

Fonts in terminal not rendering properly

While in the same window, ALL the fonts do not properly render in the external monitor (only in the Terminal). Here you a small example of what I am facing:
13
votes
1answer
2k views

New Terminal behavior after upgrading to OS X 10.11

I've noticed square brackets in the "gutters" of a Terminal window when editing files in emacs. The brackets are on either side of the screen and go away if I force a window update by either resizing ...
0
votes
1answer
243 views

Bash Autocomplete Script with El Capitan

About a week ago, I added the following to the end of my .bash_profile script so set up tab completion for man pages: function _man_pages() { local cur opts prev COMPREPLY=() ...
0
votes
2answers
332 views

Install John the Ripper Jumbo

I've been following the instructions here for installing John the Ripper on my Macbook Pro (El Capitan). I've skipped the Iterm and Cuda sections (I have a Redeon GPU). All is well until I run make ...
0
votes
1answer
98 views

Bash command to calculate average on each row and each column

Suppose we have a log file like marks.log and the content looks something like this: Fname Lname Net Algo Jack Miller 15 20 John Compton 12 20 Susan Wilson 13 19 I want ...
0
votes
1answer
61 views

Modify router port-forwarding rules from Terminal

I'm trying to modify my router's NAT Table / Port-forwarding rules using the terminal on my Mac. My current setup looks something like this Public <-> Internet <-> Modem + Router ...
2
votes
0answers
17 views

bash: ping: command not found [duplicate]

My shell can't find ping. $ ping -bash: ping: command not found $ uname -r 14.5.0 $ echo $PATH /usr/local/bin:/usr/bin:/bin:/Users/alex/.cabal/bin $ which ping $ However, man ping works and ...
0
votes
1answer
96 views

.profile is not loaded on non-login /bin/sh

The problem is in the title, but let me add few details here. I am running on OS X 10.10.5 (14F27). Using default Terminal.app. Content of config files Content of /etc/profile echo " # reading ...
5
votes
3answers
1k views

Copy to clipboard from Tmux in El Capitan

I am quite happy with the Terminal changes in El Capitan (see e.g. this question). However, i can't figure out how to enable copying to system clipboard from within Tmux. For instance, now that I am ...
14
votes
2answers
4k views

Changes to Terminal in El Capitan

Can someone please describe the changes made to Terminal.app in El Capitan? I've just noticed that mouse events started working in Tmux, which is awesome! I had the following set in my tmux.conf: ...
1
vote
1answer
32 views

Start brew-installed applications from terminal

I just set up homebrew on my new macbook and used the brew and brew cask commands to install some applications. I can now open the applications from the launchpad but not from the terminal. I know ...
0
votes
1answer
27 views

Terminal: List only and specifically, the 5th file in a directory

I am wondering if there is a Terminal command which will specifically list the 5th file in a directory. I was initially using the ls | head -5 command to complete this, however it listed all other ...
0
votes
1answer
30 views

Installing Applications on Mac through Network

I need to install an application to number of Macs. Is there any way i can do it over the network or any other advise on this. Thanks
0
votes
0answers
32 views

Terminal: executing a batch of commands from dynamic locations

I'm trying to restructure a library of audio files and I've been trying to do so using Terminal. See the folder structure in the attached image. There's a couple of things I want to do: 1) Remove ...
0
votes
0answers
493 views

Error: -69711 this operation couldn't proceed because the target's boot helper was mounted; you may want to try again

I have a MacBook Pro 8,1 (13", 2011 unibody) running Yosemite (no upgrades). Tried to partition my SSD hard drive and it threw an error when it was almost through saying it can't find the partition. ...
0
votes
1answer
23 views

Reattaching remote servers: no such file or directory in terminal

I'm using the Connect to Server tool to mount a remote drive. I'm able to access this via Terminal at /Volumes/REMOTE. If I unmount and remount the same connection however, my existing terminal ...
0
votes
1answer
41 views

Keep command output in terminal screen

I'm new to Mac, when I use terminal, I found some commands like git log behaviours different from Linux. On Linux, they will print result on screen and exit, leave all result on screen and I can see ...
3
votes
1answer
61 views

Using Terminal to truncate filenames in directory

I have about a thousand jpegs in a directory that have filenames such as 1300-Kazoo-Pkg.jpg 1314-Learn-to-Play-Piano-withKid.jpg 1314-Learn-to-Play-Piano.jpg I want to shorten them to the numbers ...
3
votes
0answers
40 views

Terminal prompt 'saving' certain commands on up-arrow

I added a little bit of shell scripting to my prompt for fun. It alternates the colors of prompt items randomly. I did it purely because a gray screen gets boring after awhile. The following is my ...
0
votes
0answers
45 views

Repair Disk failed

I try to repair a disk because my Mac still is on grey screen during start. I created a USB Yosemite bootable and I can use Terminal. I tried with: diskutil repairvolume disk0s2 But I get the ...
0
votes
2answers
54 views

Softlink /bin/bash to a brew-installed bash

It is a question related to this other one, but I can't comment. I've updated to use bash 4 from brew installation. But I don't know if changing all the header scripts from: #!/bin/bash To ...
0
votes
2answers
554 views

Is there a terminal command to enable Continuity - handoff on unsupported OS X?

It is known that Apple sometimes drops support for new features such as Continuity on older OS X releases or older Mac models, sometimes those new features not necessarily hardware dependent. I've ...
0
votes
1answer
61 views

kate editor with built-in terminal

For programming it is very convenient to have a built-in terminal inside a text editor. Therefore my favorite text editor on KDE-Linux is kate which has great ability of a built-in terminal below the ...
0
votes
1answer
29 views

In terminal (bash), should I be in a folder to move it to another?

In a directory named World, I've been asked to move a folder within it--South_America--to another folder also within World--North_America. 1. I can't figure out if I should be in South_America or one ...
0
votes
0answers
239 views

How can I stop callservicesd errors I find in Console?

I posted this to some other forum and found no luck. I'm learning Terminal, coding, and scripting. Every so often I check my Console just to see what's up. (Often I don't understand it all, but it's ...
1
vote
3answers
292 views

How to determine what an app does and if it contains malware?

How can we know on iOS and OS X what an Application really does? On OS X you always can do the following: right click on an .app and "show package". Contents -> MacOS and double click the ...
0
votes
1answer
16 views

Terminal not launching correctly, prompt does not appear until SIGINT

I am running OSX 10.8.5 (Mountain Lion). When I launch terminal, or a new window/tab within terminal, I don't get my prompt. The last login information gets displayed fine, and my cursor is set ...
4
votes
1answer
276 views

Using python screws up the shell (and/or terminal?)!

The problem Simply opening and closing the Python sub-shell screws up my shell (or possibly the terminal?). It seems to remove the shell's ability to print any text I enter, including newlines after ...
1
vote
1answer
191 views

Alcatraz - Xcode command line tools are not currently installed

I'm managing Xcode plug-ins via Alcatraz. Everything was alright until I installed and then uninstalled Git following instruction in the uninstalled.sh file in official git.zip file: sudo rm -rf ...
2
votes
2answers
42 views

automatic save before “Run in Terminal” in BBEdit

I am a new BBEdit user, with a long experience as TextWrangler user. In TextWrangler, I am used at running python scripts with the command "Run in Terminal", and in TextWrangler the default behaviour ...