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
101 views

Sending data to serial port and audio device from command line

I am looking to create a scripts that does the following: Send data to a non-standard serial port, in my case /dev/cu.SLAB_USBtoUART. Plays an audio file to a non-standard audio device, in my case a ...
3
votes
1answer
63 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 ...
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
0answers
39 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 ...
0
votes
2answers
75 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: ...
-1
votes
1answer
38 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 ...
5
votes
4answers
1k views

Is it possible to hide the scrollbar in Terminal?

In the 10.4 or maybe 10.5 versions of Terminal.app it was possible to hide the scrollbar completely. Does anyone know if this is still possible in the 10.6 version of Terminal.app?
0
votes
1answer
23 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 ...
1
vote
1answer
25 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 ...
1
vote
1answer
36 views

How to install subordinate CA certificate into keychain from Terminal?

I'm a Windows engineer, setting up a Active Directory PKI, but know very little about Macs. I'm aware of how to install root certificates into the system keychain using: sudo security ...
4
votes
2answers
3k views

How to spoof a USB-Ethernet adaptor Mac address in OS X

I've recently bought a usb-ethernet adapter (not apple) and I get internet connection. In my university we have to put a specific mac address but I can not change it. I have tried with sudo ...
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 ...
2
votes
2answers
2k views

“xcode-select --install” versus retrieving the dmg from Apple's developer website

I would to ask a question closely related to already existing posts (How to install command line tools without error that is not currently available on Software Update server? and ...
3
votes
2answers
190 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
votes
1answer
478 views

Unable to delete locked file

I have a locked file on my machine that I'm unable to delete. I've tried everything (that I know of) and don't have a clue why it won't delete. Here's what I tried: Everything here sudo rm file.txt ...
0
votes
0answers
32 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
26 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 ...
4
votes
1answer
67 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 ...
10
votes
4answers
53k views

“-bash: ls: command not found”

I installed the most recent update to OS X Lion (10.7). After I did that, my terminal won't recognize normal commands. I typed ls and got: -bash: ls: command not found I figured I'd try to add ...
4
votes
4answers
1k views

How to find the currently connected network service from the command line?

I would like to find out which of the available network services (e.g. Ethernet or Wi-Fi) is currently active. In this screenshot from the Network Preferences, you can see that Wi-Fi is currently ...
30
votes
3answers
163k views

Using The Terminal Command to Shutdown, Restart and Sleep My Mac?

I'm getting more interested in using Terminal as an alternative way to address solutions on my Mac. I have seen this question entitled "Is there a better way to shutdown/restart OSX?". I would ...
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?
0
votes
3answers
101 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 . ...
1
vote
1answer
68 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 ...
3
votes
1answer
50 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
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 ...
27
votes
2answers
31k views

List all defined aliases in Terminal

A friend who owned my current Mac before me created a lot of alias commands. Is there a way to list all defined aliases and the command that is associated with them? And if so, am I able to edit ...
0
votes
1answer
25 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 ...
8
votes
2answers
2k views

How to isolate processes that evoke insane mds_stores disk read activity?

I have an interesting situation where when I monitor my disk activity, I find that mds_store is continually running between 1 to 35 megabytes per second (averaging around 3-5 MB/s) on the read and ...
6
votes
2answers
441 views

“Ghost text” in terminal, Yosemite + TotalTerminal (formerly Visor)

There's "ghostet text" in my terminal (see screenshot), and I'm hoping someone knows how to fix this… Turning background transpareny off fixes the problem, but it's not a solution which I'm a fan ...
9
votes
5answers
626 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
1answer
61 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
17 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 ...
1
vote
2answers
85 views

How to keep PS1 changed in terminal?

I'm able to change the terminal prefix with PS1="[\\W]$". However, whenever I restart the terminal or open a new instance, it reverts to the default. How can I make this change permanent? Thanks! ...
-1
votes
0answers
63 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 ...
8
votes
1answer
559 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" . ...
0
votes
2answers
148 views

Dropbox vs Github for dotfiles sync? [closed]

For the last few years I've been using Dropbox to sync my dotfiles. For zsh, oh-my-zsh, emacs settings etc. More people seem to be using Github for this. What are the advantages and disadvantages in ...
6
votes
3answers
3k views

Change *.txt to *.csv

How can I rename all *.txt in a directory to *.csv files in the terminal (Mavericks). I tried following inside the directory: mv *.txt *.csv
2
votes
1answer
57 views

Date trash was last emptied bash

I'm trying to find out at what date and time the trash was last emptied. Would it be the date modified of the least recently modified file? Does moving it to the trash count as modifying it?
5
votes
3answers
339 views

To use STDBUF from Homebrew's coreutils

I run brew search stdbuf and get No formula found for "stdbuf". Searching pull requests... Closed pull requests: coreutils: upstream fix for stdbuf (https://github.com/Homebrew/homebrew/pull/32955) ...
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
69 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 ...
2
votes
1answer
127 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 ...
0
votes
0answers
55 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 ...
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 ...