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

0
votes
0answers
31 views

External Hard Drive Not Showing Up after dragging it to Terminal?

So from the left side of the Finder I accidentally dragged my external hard drive and now it doesn't appear there. I would like to see it there, I know it's reading it because I did an ls /Volumes and ...
90
votes
4answers
39k views

Open Finder window from current Terminal location?

If I am in a specific path in a Terminal window, how can I open that same window in a new Finder window? Note: This is the opposite of opening a Terminal from Finder.
0
votes
0answers
82 views

Unable to start XVfb with XQuartz 2.7.9

Is there some issue with XQuartz-2.7.9 ? After installing XQuartz in my Mac 10.10 the command - /usr/X11/bin/Xvfb :4 -dpi 200 -screen 0 1000x1200x8 fails with the following error: ...
0
votes
1answer
72 views

ICMP packet with a negative round trip time?

I often keep a ping running in my Terminal so that I can pop it up to keep an eye on any network issues in our office. Recently, I ended a long-running ping session and noticed in the summary ...
-1
votes
1answer
55 views

Refreshing env variables by sourcing not working

I installed torch in my MacBook Pro (running El Capitan). Now for using torch, I've to refresh env variables. Official torch document asks me to run source ~/.profile. But the terminal is showing No ...
0
votes
0answers
33 views

Is there a way to turn off/on user account without deleting it running on OS X El Captain?

I want to turn off a user account without deleting the account and its content, so it won't appear in the login window and be able to turn it on again. I tried sudo dscl . create /Users/hiddenuser ...
1
vote
1answer
55 views

How to enable a disabled User Account on a MacBook Pro running OS X El Captain?

I disabled a User Account in the System Preferences > Users & Groups > Right-click on a User > Advanced Options... > Login shell: using: /bin/false Now the disabled account is visible in the ...
1
vote
0answers
28 views

Error when trying to “brew install rbenv”

I am trying to install rbenv by following instruction from the site Ruby on Rails development setup for Mac OSX when I try brew install rbenv I get the error below: Error: rbenv-rbenv already ...
43
votes
5answers
11k 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.
2
votes
1answer
77 views

User specific host file

I would like to add a user specific host file on my Mac (El Capitan 10.11.5) to a users home directory and have this be checked in addition to /etc/hosts when resolving domain names. I found a ...
56
votes
9answers
18k views

How do I speed up new Terminal tab loading time?

How can i speed up the terminal startup in Lion? I'm not referring to the startup of the Terminal application, but to the startup terminal windows, like when i open a new tab. I don't have anything ...
0
votes
0answers
83 views

FFMPEG Unable to find a suitable output format for [partial path from input]

Up until a little bit ago I had an Automator app with applescript and embedded bash for video conversion with ffmpeg and it worked great. Now for some reason I keep getting the following error: [NULL ...
0
votes
1answer
49 views

Resources for programming a text based interface in Swift? [closed]

Are there any tutorials someone could point me at for creating a terminal based, text interface application for OSX? Something sort of looking like Lotus 1-2-3 for DOS.
147
votes
6answers
71k views

git auto-complete for *branches* at the command line?

On my linux machine I have autocomplete for branches with git. [Note we are talking about git branch completion, not bash completion (e.g. commands, files, etc). Thus NOT lane's answer at all] For ...
0
votes
1answer
49 views

Screwed up my 1TB HD iMac27 - I am running OSX 10.11.5 need to rebuild it in Terminal

** Not sure what I did but I need to regain the space on my 1TB HD. I have made a full back up and need to know the step by step commands in TERMINAL to do this. As you can see I have access to only ...
0
votes
1answer
56 views

Terminal.app and tmux session, can't use “open” command (without tmux it works)

I use Terminal.app and a tmux session. > open -a VLC file.mp4 The window server could not be contacted. open must be run with a user logged in at the console, either as that user or as root. ...
1
vote
2answers
118 views

AppleScript set focus on terminal window

I have a AppleScript, which changes the position and the size of the application Terminal: Like here: tell application "Terminal" set position of front window to {1, 1} set size of front ...
3
votes
2answers
8k views

How can I make an Automator service run a shell script and display the output?

I'm using Automator to run a shell script (ffmpeg transcode to h264) as a 'Service', so that I can just right click the high res .mov file and select the service. It works fine, but as it's ffmpeg it ...
1
vote
2answers
30 views

screenshots storage place back to desktop impossible

I previously changed the settings of which folder to save screenshots. Now I want to go back to the default settings, storing it on the desktop. I have read what to do, in Terminal enter:defaults ...
25
votes
5answers
24k views

Can I view system stats in the Terminal?

The widget iStat Pro allows to monitor different system stats like CPU usage network bandwidth in/out memory usage ... How can I view such system stats in the Terminal?
2
votes
4answers
49k views

How to send text with telnet in Terminal?

I would like to send some text to a port on my machine using telnet in the Mac OS X Terminal. I start telnet using: telnet localhost 8080 Then I type some text. Is that text send automatically or ...
0
votes
0answers
33 views

Calling terminal command (pdfcrop) either directly from python or from within applescript (do shell script)

on OSX, I am using applescript to get a latex string from an application (OmniOutliner), process it via a python script that calls pdflatex and pdfcrop, and paste the final cropped pdf back into ...
0
votes
1answer
42 views

Command-line keychain access not showing any results [duplicate]

I have been trying to learn to control my computer through command-line, and keychain access is what I am trying now. I have been using the security command, and attempting to get my wifi password (I ...
0
votes
1answer
53 views

Problem “do shell script” on curl – Works in Terminal, but not via “do shell script”

I want to use "curl" with "do shell script" in an apple script. It already worked some months ago, but then the provider changed to https-only service. So I update curl on Mac OS Terminal: $ curl -V ...
2
votes
3answers
2k 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
63 views

How to encrypt zip file and filenames via command line?

Using command line on Mac, I know that I can encrypt a directory with the following command: zip -er Directory.zip /path/to/directory However, this does not encrypt the filenames themselves. If ...
0
votes
0answers
10 views

How Deep Do I Need To Define Paths for the Cosign Terminal Command?

My company is registered as an Apple Developer. Our firm has created Mac apps outside of Xcode that we want to code sign. They will run on OS X 10.8+. This link shows the tasks needed to code sign ...
0
votes
0answers
75 views

xcode build of citra not working

My machine: MAC OSX Yosemite 10.10.5. Situation: Installing citra (following the instructions on https://citra-emu.org/wiki/Building-For-OS-X). Everything works except the last step. Running in ...
0
votes
0answers
33 views

glxgears throwing Error: couldn't open display (null)

I installed glxgears through Macports with sudo port install glxgears. I am now trying to run glxgears by typing glxgears in my terminal, but the error comes up: Error: couldn't open display (null). ...
0
votes
0answers
24 views

How do I remove bookmarks from Terminal window?

With El Capitan, the Terminal app can automatically create marks, and bookmarks. However, there seems no obvious way to delete a bookmark that one's created (by accident). How can one delete a ...
0
votes
1answer
29 views

Trying to delete an application that always says it is open (in this case AVG AntiVirus.app)

This is the troubleshooting I've done so far: Went to Applications>Utilities>Activity Monitor and force quit the process. Shortly after doing that AVG shows up again in activity monitor. I went to ...
0
votes
0answers
18 views

Trying to install CANDLE in Mac OS X. Following Error report is showing. Should I install LibXm.so, if yes, how?

For more information about CANDLE(Collection & Analysis of Nuclear Data using Linux nEtwork): http://www.iuac.res.in/NIAS/Downloads/candle.txt
3
votes
4answers
6k 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 ...
0
votes
1answer
62 views

AirPort Express and ssh

So, I've been trying to understand networks a little better and I'm playing around with ssh. I've learned how to set up port forwarding from my AirPort Express directly to my computer, but I am ...
3
votes
1answer
51 views

How to open a URL without launching a new safari tab?

I would like to write a script (AppleScript or shell script) to open a URL such as https://itunes.apple.com/ca/station/beats-1/idra.978194965 which then launches iTunes and play a radio station. ...
34
votes
6answers
126k views

How do I start TextEditor from the command line?

I work a lot at the command line in a Terminal and would like to start a text editor on a certain file. I'm from Linux Land and normally use kwrite or gedit from a bash shell. Trying to find the Mac ...
18
votes
5answers
8k views

How to jump to a location using mouse on iTerm/terminal?

I work on a terminal most of the time. Is there an application / plugin over iTerm or any other terminal like application using which I can control the cursor location of my terminal using a mouse ?
0
votes
0answers
37 views

Virtualbox passthrough USB token From Commandline

I need to change ownership of a USB token from the host to the Guest Virtual machine in VirtualBox - without removing the token from the Mac. I have it working that you can start up the VM and then ...
0
votes
1answer
35 views

esc button OS X needs to be released on every command

In terminal I use escB or escF to jump through the words. If I want 2x back I've to do escB twice. Otherwise I just start typing F or B in Terminal. The modifier keys ctrl / alt /cmd work ...
1
vote
1answer
32 views

How can I change the black text in my terminal?

I have changed the color in my profile, but some text is still black. How can I make all black text inverted, or any color that's visible? I'm including screenshot of my preferences and the issue. The ...
7
votes
3answers
48k views

Open terminal using a keyboard shortcut

I am using Alfred and hence I don't have any use for the Cmd+Space keyboard shortcut. I want to invoke terminal using that shortcut. Just like in Ubuntu, when you press Ctrl+Alt+T, is there a way to ...
0
votes
0answers
12 views

How to set a folder as an time machine backup?

I updated my MacBook Pro and it now it won't boot. I am using my hard drive in an enclosure and an external hard drive to extract the data from the SSD that's inside the Mac. The HD that's in the ...
0
votes
0answers
9 views

Mount AS400 share on OSX 10.10 missing files

Running 10.10.x and trying to mount to our corporate IBM AS400 share via: mount -t smbfs "//user:pass@192.168.10.43" /Volumes/AS400 Works, however if I navigate to the folder I need ls /Volumes/...
0
votes
2answers
64 views

El Capitan can´t see or remove partition but it shows up in Terminal

EDIT: managed to reformat the partition to JHFS+, after accidentaly creating another partition i merged the new and the old one i dint want, then it let me merge all of them together. I created a ...
1
vote
1answer
32 views

Run shell and type output

I am using iTerm2. I would like to have a keyboard shortcut which runs a command and types the output at the current cursor. Example: I have a function branchName which returns/prints the current ...
5
votes
5answers
7k views

Is there any way to save Mac OS X preferences into a shell file?

Whenever I reinstall my Mac OS and/or buy a new Mac, I have to configure manually almost all the options of mouse, dock, etc. I'd like to know if Mac OS or some software can provide some way to save ...
0
votes
2answers
44 views

Trouble adding a printer with lpadmin

I'm trying to add a printer through the Terminal using lpadmin, and it absolutely refuses to work. The printer adds just fine, everything looks perfect from what I can see, but any attempt to print ...
0
votes
1answer
33 views

Batch modifying file metadata

I'm looking for an application or command line tool that can batch edit file metadata. I have some audio files recorded using a recorder that was off by 1 hour, and I want to modify the creation date ...
1
vote
1answer
39 views

output of the who command

I am trying to understand the output of the who command. When I add the -H flag to print the headers, the second column ( the one signifying the users logged in) is titled LINE. I am trying to ...
1
vote
2answers
418 views

X11 applications don't open after XQuartz update (OS X 10.10.4)

I updated X11 by installing the most recent XQuartz package, 2.7.9. Now, when opening an application that is supported by X11 (e.g., emacs), my terminal throws an error (while X11 starts in the ...