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
73 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
20 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
81 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
155 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
155 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
98 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
1k 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 ...
2
votes
2answers
60 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
12 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
29 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
91 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
32 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
32 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
54 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
263 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
33 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
59 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
247 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
41 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
174 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
32 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
731 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
17 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" . ...
9
votes
5answers
731 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 ...
0
votes
0answers
23 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
366 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
88 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
43 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
54 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
22 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
15 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
63 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
96 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
16 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
52 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
5 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
146 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
51 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
77 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
45 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
196 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?
-1
votes
1answer
56 views

How to create a text file and a folder from terminal?

How, from a Terminal, do I make a plain text file and a folder?
3
votes
2answers
249 views

I deleted .bash_history, now history isn't saved anymore (although I re-created it)

I have freshly installed a new copy of El Capitan. I accidently deleted .bash_history, so I just did a touch .bash_history again, hoping this would solve the problem of my bash history not being ...
1
vote
0answers
27 views

Manage Finder favourites with defaults write or similar?

I've been unable to find any preferences list file with the locations for the 'Favorites' list shown in the Finder sidebar. No luck from likely candidates com.apple.finder and com.apple.sidebarlists. ...
1
vote
0answers
40 views

Chrome desktop apps (extensions) won't launch at startup on OS X

I'm trying to figure out how to get a chrome desktop app (Kiosk) to launch at startup. I've gone to System Preferences > Accounts > Login items and added Kiosk (User > Applications > Chrome Apps > ...
1
vote
1answer
58 views

Change permissions of wheel to Read Only

How do I do the following using the terminal on mac os x?: Change permissions of wheel to Read Only in /System/Library/Extensions/Soundflower.kext
0
votes
1answer
17 views

How can I hook up a PHP server?

I have a php page I want to test on a server. Is there a server that runs through Terminal.app that supports PHP? I read this tutorial, but either I did it wrong or it didn't work. How can I start up ...
1
vote
0answers
164 views

How to convert OS X Dashboard widget to desktop app?

I would like to convert a OS X Dashboard widget to a desktop app, namely the Stocks widget. I understand I could move the widget to the desktop using terminal to enable developer mode for Dashboard ...