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

2
votes
2answers
3k views

Bash Terminal keeps showing “No such file or directory” at startup

-bash: /Users/MarksMac/Library/Enthought/Canopy_64bit/User/bin/activate: No such file or directory Basically, how do i remove the above error? I am using a mac 10.9.1 I have tried looking up ...
25
votes
4answers
7k views

Using Alt/Cmd + Right/Left Arrow in iTerm

Is it possible to move between words in iTerm using Alt + Right/Left Arrows ? Now if I press Alt+Left I will get '[D' and '[C' if I press Alt+Right.
0
votes
0answers
10 views

Open djvu file with Evince?

I have installed evince from homebrew. But I have no idea how to change the default application of djvu file to evince. Yes, I can run it from Terminal, but it's not always that convenient. This ...
0
votes
2answers
54 views

OS X give focus to a window after showing

I have noticed something that really annoys me. Say I have some applications running and then I select a particular one using Dock. This application appears on the screen but does not receive focus ...
1
vote
1answer
33 views

List number of files in multiple zip files

How can I get the total number of files in multiple zip files at the same time? I have around 1000 zipfiles in one folder and would like to know the total amount of files inside them all combined. How ...
4
votes
2answers
5k views

Howto install 'MySQL Utilities' using brew or brew cask

I installed MySQL server and client using brew. I installed MySQL Workbench with brew cask. But I don't find MySQL Utilities (something new?). Howto install that using brew or brew cask? ...
0
votes
0answers
16 views

use python to mount smb share from osx including special characters in the password field

I've seen plenty of scripts for mounting a smb share in osx via terminal and python. I'm working toward the python solution using the answer at the end of this similar question. The only issue I ...
1
vote
1answer
36 views

What do some of the / directories do? [duplicate]

When I run cd / && ls I see some directories in which I know the purpose of, and then others I don't. Here are the directories I do not know the functions of: /etc /opt /private What do all ...
5
votes
1answer
183 views

Command line to disconnect or connect 802.1x authentication

I have been searching for a terminal command line to disconnect or connect 802.1x authentication, but not the network interface. I was searching some help pages and it showed command lines to export ...
2
votes
1answer
243 views

Terminal Command to Check Available USB Ports

I recently took a trip and was utilizing a USB GPS Device push coordinates to a file. In the middle of the day the device decided to stop working. We were never able to get it back working again ...
0
votes
0answers
23 views

Terminal: “Invalid Argument: dirname” (El Capitan)

I noticed the issue when I first went to run defaults write com.apple.finder AppleShowAllFiles YES in OS X Terminal (10.11.2) but this was returned bash: /usr/bin/defaults: Invalid argument I'm ...
1
vote
2answers
64 views

Exiting/Starting the Terminal (El Capitan)

In the latest Mac OS X Terminal version I noticed that if I type exit and the press Enter, I get the following: Last login: Wed Jan 27 09:18:48 on ttys000 Ian-iMac:~ Ian$ exit logout Saving ...
1
vote
1answer
44 views

Getting full HTTP request from website

I am doing a project in which my Arduino needs to connect to a simple web page and retrieve the content of a text file. I want to use curl to see the response I would get if I sent the following HTTP ...
0
votes
0answers
12 views

Can't Install Debian Source

I have a jailbroken iPhone 4 (iOS 7.1.2) When I try to run "make" command, it gives "gcc: command not found" error. I tried to install "gcc" with "apt-get install gcc" but there weren't source So I ...
0
votes
0answers
15 views

Data recovery/overwritten files?

I was troubleshooting how to install boost and came across a thread on stackoverflow that seemed to be about vaguely the same thing. I ran the terminal commands written in the thread, and realized ...
32
votes
3answers
12k views

Text copied from Terminal with formatting in Mavericks (10.9), Yosemite (10.10), and El Capitan (10.11)

After the update to Mavericks (10.9), anything copied from Terminal is pasted in the target app with the same formatting as in Terminal, in my case, white monospaced letters on a black background, ...
4
votes
1answer
2k views

Is it possible to download Apple's Command Line Tools for Xcode from the command line?

Background My job gives me temporary MacBook Pros for travel purposes. I get them with a fresh OS install before I leave, and when I return, they blank the hard drive. The trips usually require some ...
1
vote
0answers
28 views

What command(s) are ran when you right click on a text and click “open man page” in Terminal?

I know it obviously does man, to show the request manual page. However, I wonder what it pipes the output to, because it shows the entire thing at once, but it starts from the beginning. I would love ...
0
votes
1answer
27 views

Limit CPU when starting a task in terminal

I'm working on an application for part of a school project that simulates an operating system and which I launch using the Terminal. By nature it will consume all possible resources to loop over and ...
102
votes
2answers
150k views

How can I create a symbolic link in Terminal?

What command is used to create a symbolic link/soft link?
0
votes
1answer
35 views

autocomplete in zsh after `npm run tdd` command

I'm using OS X 10.10.3, I have installed zsh. And every time when I want to run a specific test I configured in package.json to execute npm run tdd followed by the test file. In linux systems if I ...
0
votes
2answers
38 views

Run command line tools as separate app

Is there a way to run command line tools as a separate app, so I can easily switch between them with apple+tab etc? I want this for things like a mail and irc client where I don't want to hunt down ...
1
vote
1answer
31 views

OSX Terminal no longer save my commands in history

Here's my issue. Last week I realized that my OSX (10.11.13) Terminal no longer saves the command I execute in the history file(s). To be more clear: I type the command test On the same terminal ...
2
votes
2answers
21k views

Sudo password doesn't work even if I have no password

I've erased the password from preferencenow I can log in without using any password but when I run a sudocommand terminal ask me a password if I insert nothing or the old one it return error. What's ...
0
votes
0answers
22 views

SOCKS5 Proxy for only specific IP addresses without authentication

I need to connect to a specific proxy server for only specific IP addresses. I've managed to configure everything with proxyfier. However I only have the trial version. I've read much about ssh ...
69
votes
4answers
43k views

How to replace Mac OS X utilities with GNU core utilities?

I found there is some differences between the utility command I used on the mac OSX and linux. I want to make my experience united. How could I replace all my mac utilities with GNU utilities?
0
votes
2answers
28 views

Get Number of PDF Pages in Terminal

How can I output the number of pages in a PDF in the Terminal? I looked into the lp family of commands, with no luck however.
0
votes
1answer
247 views

Are copies using rsync faster than using Finder?

So - I have a question about using rsync in Terminal. I need to move a Time Machine backup off of an external drive in order to reformat it. The 'backups' folder is nearly 300 GB. At first I tried to ...
1
vote
0answers
23 views

OS X (El Capitan) Terminal Fn-Up and Fn-Down stop working as Page Up and Page Down

I've identified a strange "state" my Terminal program seems to get into. It doesn't happen on all tabs -- right now, one tap can Page Up/Down properly, and another one can't. When I open a new ...
0
votes
1answer
38 views

Reset icon cache on MacBook

I've been trying to find out how to reset the icon cache on my MacBook, and two methods seem to always be suggested. However, the two approaches differ slightly in the third line. Method 1 sudo find ...
2
votes
2answers
146 views

Cannot kill process shown in parenthesis

I started a rather long dd command that I would like to stop. ps shows: $ ps PID TTY TIME CMD 2006 ttys002 0:00.00 (dd) The dd process is shown in parenthesis without the argument. ...
1
vote
1answer
37 views

Can't seem to redirect input in Terminal

I'm having issues getting redirection to work in Terminal. I'm in a C++ class where we have to create an application, then find that application in the Terminal and place a text file in the same ...
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
16 views

Script opens two terminal windows

I coded this little AppleScript using Automator: tell application "Terminal" do script "myscript" end tell This perfectly works but has a side effect: when I close the window, there's always the ...
0
votes
0answers
10 views

How to uninstall an app installed in iOS simulator from command line?

I'm looking for a way to uninstall an app from iOS simulator which doesn't require an interaction with the emulator. In fact I'd find more handy to do the equivalent as Android adb uninstall ... ...
0
votes
1answer
195 views

Sort folders first, then files [El Capitan]

I am aware there are many posts about this problem, but many are just workarounds for Finder. However I use console more often then Finder because of programming. I am also aware of something like ...
3
votes
2answers
104 views

how can I search for folders ending in certain characters in Finder?

Executing a Finder search for folders seems limited to searching for folder names beginning with the search term. I can't search for folder names only using a characters in the middle or end. I'm ...
3
votes
2answers
3k views

Terminal problem with Ctrl + Arrow and Shift + Arrow keys

I am running Mavericks on a new Macbook Pro. When I use the Ctrl and Shift keys together with the arrow keys, I get some sort of key codes as output in the terminal. I am pretty sure that this problem ...
2
votes
0answers
83 views

What processes are used by DRM?

Whenever some content is DRM-protected, screenshots of such content are masked. Even using Terminal does not avoid such problems. Which processes in ps ax are used by DRM that is implemented by ...
1
vote
1answer
469 views

How to start Tunnelblick VPN connection via Terminal

I can connect/disconnect using the Tunnelblick app. How do I connect via the command line? /Applications/Tunnelblick.app/Contents/Resources/openvpnstart start ??? How do I determine the parameters ...
0
votes
1answer
53 views

Why won't my LaunchDaemon start?

I'm attempting to write my first LaunchDaemon: I think it's pretty simple and meets all the requirements, but it won't run. The file is at /Library/LaunchDaemons/com.noah.supertest.plist Ideally, it ...
9
votes
2answers
5k views

Transparent Background in Terminal?

On Ubuntu, I can change the terminal background to be semi-transparent. I've seen other people do this in OSX, but I don't see the setting anywhere. Is there some way to make this happen?
0
votes
1answer
6k views

Can't start Octave 3.8.0 in GUI mode

I installed Octave 3.8.0 using homebrew. The Octave official FAQ says I can use --force-gui option to start octave with the GUI. But when I use octave --force-gui command in the terminal, nothing ...
0
votes
1answer
23 views

What does hitting the tab button do in terminal?

In Terminal, if I hit tab twice, Terminal asks if I want to list all 1580 possibilities. What is this, and what is this used for?
1
vote
1answer
26 views

SSH access using .pub key

I don't know if I'm overthinking this too much but I can't seem to understand how to use a ssh public key to create an ssh connection trough my mac. I'll list my steps bellow: First created the ...
0
votes
1answer
17 views

Terminal window displays odd text after being resized

If I open a terminal window, and then shrink it as far left as possible, and then enlarge it again, it displays some odd text, including some of the letters in my hostname: Any way to fix this? ...
1
vote
1answer
56 views

How to make a Mac OS X .app with a shell script?

I tried following a few tutorials, but I get this: How can I fix this? I added in a info.plist (I just copied and pasted another app's file, and changed around a few things.) Also, I used chmod +x ...
0
votes
1answer
13 views

git commit editor error 'subl -n -w'

On my ElCapitan, I have vim installed but my git commit is giving errors: $ git commit subl -n -w: subl: command not found error: There was a problem with the editor 'subl -n -w'. Please ...
2
votes
1answer
775 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
1answer
21 views

Help running what seems to be a directory in Terminal?

I'm trying to export my Skype chat history with this: https://github.com/Temptin/SkypeExport After I'm in the downloads directory in Terminal, typing in (with my skype username substituted in) ...