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
3answers
49 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
199 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
28 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
58 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
192 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
33 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
150 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
668 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
703 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
22 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
208 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
79 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
39 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
56 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
88 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
15 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
43 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
119 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
45 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
72 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
43 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
159 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
46 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
243 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
26 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
38 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
55 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
138 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 ...
2
votes
1answer
341 views

Can't delete Logical Volume Group on Fusion drive

I have a 2014 iMac Retina running OS X Yosemite and a 3TB Fusion drive. I am attempting to restore it from a Time Machine backup, but when I try to do so, I get the error message, "The disk can't be ...
1
vote
2answers
112 views

How to Poll USB mouse through terminal in El Capitan

I've been trying to view which devices are connected to my USB ports through terminal in El Capitan, in particular a USB mouse. I've read online that I can ls /dev/tty.* to view all connected devices. ...
0
votes
1answer
49 views

OS X Terminal: 'ls' shows program but then says command not found?

I am trying to start MongoDB from the terminal. When I navigate to the folder and hit 'ls', all the applications show up but when I type in the name of the application( 'mongod'), it says it is not ...
0
votes
0answers
34 views

The file that cannot be deleted

Today I've been clearing out my hard drive, removing files and applications I no longer need. I deleted a few stubborn files using command line rm. But I've run into a file that resists all my ...
0
votes
2answers
39 views

Terminal command to enable write to remote NFTS drive

Can the drivename be "Seagate Backup Plus Drive" in the Terminal command ... label= drivename none ntfs rw,auto,nobrowse or will the spaces create errors in Terminal?
2
votes
2answers
71 views

Bash history is not remembered in Terminal

My Bash history is remembered when I connect to my Mac via SSH, use iTerm2 or launch bash in the built-in Terminal app (every command I typed in bash is saved) but is not when I just use the built-in ...
0
votes
0answers
40 views

Slow login and Terminal loading time in Yosemite, possibly related to open directory

I have a problem with slow login times in Yosemite. Logging in is speedy after booting, but after a while (a few days usually) it slows down and can take 20-30 seconds. The time to load a new ...
0
votes
0answers
31 views

Z shell history broken on OS X Mavericks

I can't get Z shell's history working at all. cat .zshrc : HISTSIZE=1000 SAVEHIST=1000 HISTFILE='~/.shell_history' setopt APPEND_HISTORY EXTENDED_HISTORY INC_APPEND_HISTORY Whatever the terminal ...
4
votes
1answer
115 views

update_terminal_cwd demystified please?

I am trying to find the documentation on what, exactly, the printf command is doing in update_terminal_cwd. If you didn't know already, the update_terminal_cwd function is defined (at least on Mac OS ...
2
votes
2answers
79 views

How can I get iTerm 2 to copy only what I select?

iTerm2 has a very nasty habit of making an assumption of what I want to copy and paste from the terminal. Instead of just allowing me to copy exactly what I highlight, it will expand to what it ...
1
vote
1answer
27 views

Can softwareupdate be used to automatically download (but not install) on the terminal?

Could the Terminal command softwareupdate be used to download (but not install) any MacAppStore updates, say with a scheduled Calendar running an Automator/AppleScript script?
2
votes
2answers
124 views

How to get the password hashes for a user in Mac OS X 10+, in recovery/single user mode?

I would like to view the hashes on my Mac, in either single user mode, or the terminal in recovery mode. I tried to follow the steps described in OS X 10.9: where are password hashes stored. But I ...
0
votes
1answer
45 views

Characters and notification bounce when Terminal loses focus

OSX 10.11.2 Terminal 2.6.1 I have an intermittent issue that is driving me up the wall. I spend a lot of time in Terminal in full-screen mode on my 2015 11" Macbook Air. I generally have Chrome or ...
0
votes
0answers
52 views

Why is “com.apple.quarantine” extended permission being added to downloaded files?

Recently I found downloaded files were not accessible through my web browser when viewing a site running inside a VirtualBox server. I noticed downloaded files have the extended permission ...
3
votes
3answers
51 views

Unexpected changes to command line

When I open up a command line on my Mac the welcome message is usually Last login date Johns-MacBook-Pro$ This now reads... Last login: Fri Dec 18 23:48:34 on ttys000 Johns-MBP-2:~ johnw$ What ...