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

Any way to remove all folders that contain only .DS_Store recursively?

If I try sudo find . -name '.DS_Store' -delete then, within a few seconds, the .DS_Store files get re-created by Finder before sudo find . -type d -empty -delete can take effect. I can do ...
1
vote
2answers
35 views

alias not working in terminal

I'm on a mac in Terminal. open -a "Sublime Text 2" opens Sublmine Text 2, just like I want it to. I now want to alias this to my .bashrc file, which I have an use for other things like prompt ...
0
votes
1answer
44 views

How to set the color of terminal text in ssh session exact same as local session?

So this is almost a copy from my previous question: Change output color of terminal (in Mac) to be different from typed text color for which I got a great answer here: ...
1
vote
0answers
11 views

Automate searching for a product by item number on a website and saving its image [closed]

I hope this is the right place to ask and that this question is appropriate. I don't intend to waste anybody's time. I am working on an ecommerce website and am just in the tedious stage of adding ...
2
votes
2answers
134 views

Why bash history on my mac won't save?

I have always used bash for work, and never had problems with it. Now, it does not save any command in history again. If I open a window terminal, try some commands, it acts like everything has ...
0
votes
0answers
15 views

Meta key in Emacs in Terminal on a Norwegian Mac

In the Terminal, there is an option to choose whether to use Alt as Meta. On a Norwegian Mac, you have to disable this, because | comes from pressing Alt+7 (same goes for \ and a few others). ...
3
votes
2answers
161 views

How do I programatically kill the CCLibrary process by PID?

I need to know how to write a command or script to kill the CCLibrary and CCXProcess processes. They are part of Adobe's Creative Cloud, and since their previous update they keep respawning and ...
0
votes
1answer
18 views

'soft return' in iTerm2

I'm just wondering is there a way to enter a new line in iTerm 2 without executing the line being typed? I am looking to make use of some relatively long commands to automate some things, but not ...
1
vote
0answers
38 views

Start application with environment from a terminal session

I use nvm to manage my node versions. Now i have to type nvm use stable to let nvm set my path variable like this ...
1
vote
3answers
78 views

None of my admin accounts are sudo users

I have three admin accounts on one machine running El Capitan. The machine is a few days old. Whenever I try to run a sudo command, I'm asked for my password and told accountUsername is not in the ...
0
votes
1answer
147 views

iterm + tmux isn't allowing me to scroll up with the mouse

I recently rebuilt my system and everything works except I can't scroll my (iterm2) terminal window back to look at commands and output that have scrolled off the screen. Without tmux I can scroll ...
0
votes
1answer
53 views

How to get iTerm to properly send the CTRL-. sequence?

Emacs uses a lot of C-. and similar keyboard sequences. iTerm doesn't send the key sequence C-. itself, but I've found that I can map C-. into an escape sequence or hex code or text in iTerm's ...
2
votes
0answers
41 views

How to customize drag-n-drop-to-Terminal path escaping results?

How can I change the way in which filenames are escaped (formatted) when dragged from applications and dropped into Terminal? For example, paths may be escaped with \, just spaces (), or other ...
0
votes
2answers
30 views

Changing the owner of a directory when username has a . (dot) in it [closed]

If I enter whoami in Terminal.app my id is shown as Abhi.Sri Now if I do chown -R Abhi.Sri /usr/local it says the user Abhi.Sri is invalid.
1
vote
0answers
34 views

El Capitan Terminal.app keeps showing overlay

New terminal in El Capitan keeps showing this annoying overlay with tmux commands describing my current tmux session. How do I turn it off?
0
votes
1answer
37 views

Error when running security in Terminal

I'm trying to export the keychains in Terminal. This is the code I used security> export -k SystemCACertificates.keychain -t all -f openssl -o goodone.txt And this is the error I got security: ...
1
vote
1answer
30 views

How can I split a 60 GB file into 5 GB pieces on a Mac?

I would imagine using a Disk Utility partition, but I didn't see the option in Disk Utility to split a larger partition into several. How can it be done on a Mac? I am doing this because I would ...
0
votes
0answers
21 views

How can I setup a Cisco IPSec VPN connection from the command line?

We've got a few macs to manage and we are working out how to script the configuration of a few things. We've got most of the bits worked out but there is one that I can't seem to find the right ...
5
votes
1answer
131 views

Change output color of terminal (in Mac) to be different from typed text color

I know how to change the color of ls output, but I would like to change the color of all terminal output. To make clear what I mean, below is a picture of my terminal. My text color is orange. ...
1
vote
1answer
19 views

Automatically deleting files that contain a specific content

I would like to make use of the command that looks for a specific phrase in a file: grep -lr "text to find" * provided here and delete all of the found files. How can I generate the relevant ...
0
votes
1answer
23 views

How to delete a list of files and folder generated via find in terminal?

I'm generating a list of files and folder that meet certain criteria with use of a command: find ~/ -iname "whatIwantToRemove" The command will generate some results: ...
0
votes
1answer
51 views

Help converting Apple Script to Shell Script

This Apple Script works great to mount the logged in Active Directory users network homedrive as a mounted network drive but we currently have it running as an App at login via "Login Items". ...
1
vote
1answer
136 views

“Copy URL to Clipboard.app is not available as a HTTP browser” in El Capitan

I came across “Copy URL to Clipboard.app” (or “CUTC” for short) in How to access a clicked URL in a URL handler application created in Automator and have been using it for some time now. However, it ...
6
votes
4answers
301 views

Search for *.swo

I think this should be an easy one, but it's got me stumped. When I use the following, it finds the file. $ ls -al .bash_*.sw* -rw-r--r-- 1 damiensawyer staff 12288 27 Nov 07:39 ...
1
vote
0answers
101 views

How to change the “Recovery HD” partition to type “Apple_Boot”?

Typing in the terminal diskutil list gives me this... /dev/disk0 (internal, physical): #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme ...
0
votes
0answers
27 views

launchctl does not set environment variables correctly

I am trying to use launchctl to set the environment variables for Eclipse. What I want to do is pass my PATH to eclipse. I have tried to setup launchctl to do this. Here is the the output of ...
1
vote
2answers
110 views

Auto login with FileVault in El Captain

When using File Vault on El Capitan, is there any way to disable the Auto Login, so when you start up it loads straight away without needing a password. If not, then is possible to set it so when you ...
0
votes
1answer
343 views

External disk - Unrecognized file system (-69846)

I have an external storage with 2TB that was working nicely. But since last week, when I unplugged the USB before eject it, the disk is not readable anymore. When I insert USB, I can actually see ...
1
vote
0answers
90 views

How to set up routing tables on OS X to redirect VPN traffic?

I am trying to setup route table on my OS X machine so regular internet traffic doesn't go through VPN but only specific destinations will be targeted via VPN. When I connect to VPN it creates new ...
0
votes
2answers
72 views

Git is very slow on OS X

Whenever I use anything Git related on my MacBook (brand-new Macbook Pro with El Capitan), it takes almost a full minute for each command. I did a simple GIT_TRACE=1 git stash and got back this: ...
0
votes
0answers
46 views

Trying to install gnome-terminal on Yosemite

When I run gnome-terminal I get the error: (gnome-terminal-server:572): GLib-GObject-CRITICAL **: g_object_ref: assertion 'G_IS_OBJECT (object)' failed Here are my versions: Mac OS X - 10.10.5 ...
1
vote
1answer
28 views

Airport utility: Scan specific channels

I am using the Airport utility /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport. With the little program I am able to scan my network for WIFI senders. I do ...
0
votes
0answers
14 views

How do I get quicktime to store temporary recordings on external drive? [duplicate]

I've manged to set my 1TB as final destination for saved QT file but, now worried that my Mac ain't gonna have enough space for temp files of a 6hr screen record of a lecture I need. How to I store ...
0
votes
1answer
33 views

Permissions errors thrown, but permissions appear to be correct

On my HD, I have a bunch of files that I've generated via Python scripts (or otherwise). When I run "open foo.png" from terminal (or via finder), I get a popup that says The file “foo.png” ...
0
votes
0answers
441 views

XCode 7.1.1 update, missing otool and git

I recently installed Xcode 7.1.1 After installation there seems to be problem with it. git is missing Kaunteys-MacBook-Pro:~ Kaunteya$ git 2015-11-26 13:44:03.369 xcodebuild[2118:134190] ### ...
4
votes
1answer
393 views

unknown option: mode-mouse with iterm, tmux

Reset my computer and iterm2,tmux now complaining about my .tmux.conf having setw -g mode-mouse on set -g mouse-select-pane on set -g mouse-resize-pane on set -g mouse-select-window off set -g ...
1
vote
0answers
33 views

hdiutil convert not working and not telling me why

I've been trying to create a bootable Ubuntu flash drive following instructions from multiple sites. I need to convert the .iso file to an .img using hdiutil. For starters, the syntax of the command ...
0
votes
1answer
42 views

Extract files from a .exe file

on Windows we can extract files from an .exe file pretty easily but I couldn't find any terminal command to do similar things. I imagine this is because some .exe are compressed in such way OS X ...
0
votes
1answer
122 views

homebrew gcc-5 fails to find any standard library

I am running os x version el capitan and have installed gcc5 via homebrew. However, compiling simple programs such as: #include <stdio.h> int main() { printf("Hello world\n"); return ...
1
vote
2answers
22 views

Keyboard shortcuts for Terminal

I am trying to add a shortcut to the menu bar actions in the Terminal app, (specifically to create a new window with my own theme.) Here is a screenshot: However when I try to add the shortcut via ...
0
votes
0answers
27 views

USB Keyboard's number pad doesn't work while using vim

I have a usb keyboard that has a numberpad. When I use the number pad in most situations, it works as expected (IE when I click the bottom 3 buttons, I get 123 in this web form). However, when using ...
0
votes
0answers
7 views

open command does not work inside tmux: error 10810 [duplicate]

Using the open command in terminal normally works. But when I am in tmux, it always gives the following error: $ open wordref011.pdf LSOpenURLsWithRole() failed with error -10810 for the file ...
2
votes
3answers
502 views

El Capitan - Right Click Menu - Open Terminal Here

I know this may have been asked several times, however I cannot find a valid method that will work for me. On El Capitan - I want to add a option to the right click menu (not the services section) ...
4
votes
2answers
262 views

How to access an external drive

I plug in a flash drive to my USB port. How can I access it through bash? ($ cd / takes me to the directory called Macintosh HD, but through Finder, I can go up one more directory called ...
0
votes
0answers
46 views

Why does setting CLICOLOR=1 not turn on colors for “ls”?

If I do ls -G, I do get the colors. From what I understood from the man pages, if I go into ~/.bash_profile and add export CLICOLOR=1 I would then get colors by doing just ls, as "This option is ...
0
votes
0answers
49 views

Cannot create a folder or access it at specific location on Mavericks

Cannot create a directory and can neither go into directory. $/Volumes/Iomega_HDD/Movies is an Windows NTFS file system mounted on my OS X Mavericks so in the Movies folder if I try to create folder ...
0
votes
0answers
124 views

Terminal - Crash at opening - pointer being freed was not allocated

I have an issue with my terminal since the installation of El Capitan. Every time i'm opening my terminal, this message appears and prevent me to using my terminal correctly : ...
2
votes
1answer
132 views

Terminal Sub-pixel Rendering improvement?

I recently noticed that the Menlo font is rendered differently in OS X El Capitan, depending on the application being used. After tinkering a bit with AppleFontSmoothing, I noticed that the crucial ...
1
vote
1answer
16 views

Terminal floats between desktops

On my mac, OS X Yosemite, if I have terminal open and multiple desktops the terminal window appears on all desktops. How do I disable this feature and have the terminal stick to the desktop it was ...
1
vote
0answers
52 views

Messed up 3TB Fusion Drive Partitions (on iMac Late 2012)

I found one of the threads around here where you helped some guy with getting the Fusion drive back together after a failed attempt of using the Bootcamp on a Mac machine. Messed up 1TB Fusion Drive ...