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

1
vote
2answers
27 views

How to hide Terminal Window when a script is running

I've built a script that sits in the users login items that runs each time a user logs in but I want to prevent the terminal window or terminal application from popping up. I don't mind the app icon ...
0
votes
1answer
43 views

How to get started with MySQL on Mac

I'm all very new to mySQL. I've installed it from the Oracle website, and I think I managed to run the server with the command: sudo ./mysqld_safe --console But it's impossible to open the client ...
1
vote
1answer
71 views

Error in opening Microsoft Word through Terminal

I haven't been able to open Microsoft Word through Terminal. I tried: open -a Microsoft\Word But I get this in return: Unable to find application named 'MicrosoftWord' How can I open Microsoft ...
1
vote
1answer
20 views

Use brew to check version of software online before installed

For example, when I run brew search octave It shows homebrew/science/octave Caskroom/cask/octave I don't know which to install so I want to check the version of these ...
0
votes
0answers
12 views

Can't get terminal to connect to internet via proxy

I set up a proxy server on my raspberry pi, which is connected via LogMeIn Hamachi to my mac. Using the proxy settings in my global network settings panel, I can access local resources via Chrome, ...
0
votes
2answers
53 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 ...
0
votes
0answers
37 views

Set default user in terminal

I just formatted my Mac and upgrade it to El Capitan, When I open Terminal I see that I am always logged in as root: How can I get my usual user name every time I open a new Terminal window, I ...
0
votes
1answer
9 views

How to restore the Terminal mail program to default settings

So a number of months ago I was messing around in Terminal trying to get my Mac to send an email from the command line. Unfortunately, I don't remember everything I did but I know I was messing around ...
3
votes
1answer
62 views

'mdls' and 'mdimport' interaction: good practice question

Am I correct to assume that, in order to ensure a query in the terminal such as: mdls -name kMDItemContentCreationDate /var/log/system.log always returns the actual creation date of said file ...
-1
votes
1answer
37 views

hditutil tool will not convert .iso to .img?

This is not working for me! Will someone clarify why? Here's the command I'm using: hdiutil convert -format UDRAW -o /Users/Jacob/Desktop/destination_file.img ...
0
votes
1answer
21 views

LSOpenURLsWithRole() failed for the application /Applications/darktable.app with error -10810

Darktable mysteriously stopped working on me yesterday. I tried restarting my iMac, deleting and re-installing darkable and finally after going through some forums I tried running through the ...
0
votes
1answer
28 views

Making Terminal bash auto-complete stop at ambiguous character and display all possible options

The behavior I see happening is that when I type something partially and hit TAB, if there are multiple files/commands that match what I had typed in, only the first one is displayed. Further TAB hits ...
0
votes
1answer
139 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 ...
1
vote
1answer
24 views

Dragging and dropping a file onto a Terminal window doesn’t escape the path under zsh 5.2

Under OS X you can drag and drop a file from the Finder (or anywhere else) onto a Terminal window and the file’s path will be inserted as if you had typed it in. Recently, filenames with spaces have ...
0
votes
2answers
16 views

Listing/Moving certain files

My current path is /Users/UserName/Downloads/Downloaded_Path. In Downloaded_Path Folder i have multiple folders like F1, F2 etc and each folder contain rar part-files from rar to r99. What I want to ...
0
votes
0answers
10 views

Shortcut for dragging and dropping a tab on terminal

Not sure if this is possible. But I was wondering if there is a shortcut for physically moving a tab on my Terminal. Say I have these tabs on my terminal: | tab A | tab B | tab C | tab D | If I ...
0
votes
0answers
21 views

Is the C compiler used in Xcode ANSI-compliant?

I need to build php from source but when I compile php and apache with xcode, Compiler logs some warnings about "deprecated" uses however I use latest tools. So I found out that apache recommends ...
0
votes
0answers
30 views

How do I disable/enable an external monitor from terminal

I run two external monitors + my MBP display in OSX Yosemite. My middle external monitor is also connected to my PC. The monitor will automatically switch to an active input, so for example if my ...
0
votes
0answers
12 views

Is it possible to add apps to Apple Server Profile Manager via terminal/command line

I am trying to automate my build process. Currently I have to manually upload builds to the enterprise server every time I want to distribute a new build. Is it possible to automate this? I think I ...
0
votes
0answers
25 views

Ran out of disk space during sudo cp in Terminal on OS X

I was copying the /Library/Audio/Plug-Ins directory to ~/Library/Audio/Plug-Ins, with the user Plug-Ins directory backed up of course, so that isn't the problem, and I had forgotten that I had... less ...
0
votes
0answers
27 views

Can I use Terminal to create 3 partitions on Mac

What would be the command in Terminal to create more than 2 drive partitions in El Capitan on the new iMac?
1
vote
3answers
37 views

Create a custom terminal window

is it possible to create (and put in the dock) a custom terminal window? What I mean with "custom": it should have a different name (eg. "myTerminal"); it should automatically start running a ...
1
vote
1answer
65 views

Mac does not automatically restart when power is re-applied after `shutdown -hu now`

I want to have a Mac Mini automatically boot when power is applied, as I cannot conveniently reach its power button, because it resides inside an art installation, where the power will be shut down ...
0
votes
1answer
24 views

How to get local directory names into terminal window titles?

The title of my terminal window is: Terminal -- bash -- 130x39 This is how I see them listed in Terminal->Window and it is very hard to know which one is which. When I use multiple terminals, the ...
3
votes
1answer
49 views

Safe to allow students to access Terminal.app in a shared environment?

Background: We have a lab of Macintosh computers, all running 10.10.3 currently, that are for classroom instruction. Students typically use their own login/password via Active Directory to log in to ...
-1
votes
1answer
57 views

Permission denied to create tree directory - El Capitan

Following this tutorial , under the subtitle Download angular-phonecat Since there is a local server comes packages with El Capitan, and I have an ios emulator installed to run some web app ...
0
votes
0answers
16 views

Cat command to join mp3 selects only the first file

I'm on a Mac with El Capitan (10.11.2) and have a folder with multiple mp3 files (audio-01-13.mp3 for example as a file name). Now I wanted to merge these files in one big mp3 file by doing the ...
0
votes
3answers
99 views

List All Files in USB device from /Volumes Shell Script

To clear things up I have setup folder actions on my mac for whenever a USB device is plugged into my mac it will run a shell script. When I list all files in the Directory /Volumes i get $ ls -a . ...
0
votes
1answer
25 views

Start Terminal in AppleScript

At work I'm overseeing several users who use MacBooks to connect to our enterprise environment. One of our vendors has an old server which users access via ssh. I've created an Automator workflow to ...
8
votes
1answer
554 views

Why do I have 2 IPv6 addresses?

If I go to System Preferences > Network > Advanced it is shown that I have 2 different IPv6 addresses (both with a 64-bit prefix). Why is so? If I type ifconfig | grep inet on the terminal, it ...
1
vote
1answer
14 views

emacs on console "can not load file, package

In my .emacs file, I try to install el-get with this code: (unless (require 'el-get nil 'noerror) (require 'package) (add-to-list 'package-archives '("melpa" . ...
8
votes
5answers
620 views

Cannot open Terminal on mac (“Not allowed to use” error message)

I cannot open Terminal at all because of this error message. (Probably the rudest error message I have ever seen on a computer.) This mac was originally a school computer and the permission to use ...
-1
votes
0answers
60 views

I need help with a automatic login AppleScript

I am running El Capitan 10.11.2 on a Mid-2015 MacBook Pro. I have attempted to write an AppleScript to enable automatic login then when finished modify to disable it. I am new to AppleScript but ...
0
votes
0answers
15 views

Services shortcut not working properly

So I have set ctrl+T to open the folder I have selected in Terminal. But usually it doesn't work and nothing happens entering the shortcut. When I go Finder->Services and then don't press anything ...
1
vote
1answer
55 views

Passing arguments to 'Run Shell Script' in Automator

I want to make an Automator workflow to run a shell command. For example, I want to receive text input from the user and treat that input as a shell command instead of text. If has tried pass argument ...
0
votes
0answers
53 views

UTF-8 five-character code point in Terminal

How can I use the Unicode Hex Input keyboard to enter UTF-16 representations of characters in Terminal? Specifically, I'd like to enter U+1F601 (grinning face with smiling eyes). Using the Unicode ...
0
votes
1answer
28 views

How to get routing table in terminal [duplicate]

How can I get the routing tables in command line? On a normal unix machine I can use [user@server ~]# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric ...
2
votes
2answers
44 views

File not visible in Finder

I've saved a file with the name filename\.svg and it didn't appear in finder. When I check terminal, there was a file named .svg in the folder I saved my file. I changed its name to test.svg but it ...
0
votes
1answer
20 views

Terminal not recognizing commands

My terminal is not recognizing the majority of commands. It won't recognize ls, ruby, python, brew, and a few others. Does anyone know how to fix this?
0
votes
0answers
13 views

How to enable Ctrl-% command in emacs on OSX

I'm trying to use of paren-matching shortcut ctrl-% in emacs on OSX. It was successful on Win. But on OSX non of commands: ctrl-shift-1/3/4/5/6/... works - only work ctrl-shift-2 (ctrl-@) for some ...
0
votes
1answer
25 views

How can I script inverting screen colors?

And, more generally, how can I change accessibility settings via the command line? Worth pointing out that I'm pretty comfortable with bash already- coming from a systems administration / *nix ...
1
vote
1answer
64 views

Mac Terminal - Rename Keeping Last 6 Characters

I'm using the built in Terminal, and I am totally new to this coding so I will need to know exactly what to type when I open the Terminal. Also, please don't direct me to any other software. So lets ...
0
votes
1answer
10 views

Time Machine exclusions added via tmutil do not appear in TM “Options” list

I can successfully add Time Machine exclusions using tmutil addexclusion and I can verify exclusions successfully with tmutil isexcluded but if I then open up Time Machine's Preferences and click ...
0
votes
1answer
20 views

Terminal command to get all of a file's metadata?

Is there any way to get all of the metadata associated with a file in Terminal? By "metadata" I mean things metadata and properties that are not stored in nor derived from the file's contents (i.e., ...
0
votes
0answers
4 views

hostname keeps swapping to UNKNOWN

The hostname keeps changing on my Mac to UNKNOWN. It's happened probably half a dozen times in the past month, and I genuinely haven't the faintest idea what's causing it. The Sharing section of ...
2
votes
1answer
63 views

Is it possible to open a Private Browser window in Safari using Terminal.app?

I'm trying to open a Private Browser window in Safari using Terminal. I could open Safari using open command and this way, open /Applications/Safari.app/Contents/MacOS/Safari but I couldn't open a ...
0
votes
0answers
25 views

Looking for a Terminal command to disable permanently “pause mode” on HP printer • Lion 10.7.5

Reason : HP Printer suddenly always on "pause / queue" while printing. My problem : All of a sudden, my LaserJet CP2025 printer stopped printing, putting instead all documents on queue. I'm ...
2
votes
2answers
57 views

Why I am unable to switch bash to the one installed by homebrew?

I'm trying to update bash to version 4.x. I did brew upgrade, then brew update, then brew install bash. I ran sudo bash -c "echo /usr/local/bin/bash >> /etc/shells" and sudo bash -c "echo ...
3
votes
0answers
25 views

Unable to start app built manually

I have create an application APP-py3.app stored in /Applications. The APP-py3.app contains the following files [F] and directories [D]: Contents [D]: Info.plist [F] MacOS [D]: script [F with ...
1
vote
1answer
54 views

How to open path in Double Commander from Terminal

If I type open $(pwd) or open /anypath/ I will get the path opened in Finder. How I can achieve similar results but with the path opening in Double Commander instead?