Terminal (or Terminal.app) is the program included in Mac OS X for running applications and issuing commands using the command line interface. These programs are controlled by typing lines of text, rather than using the mouse or keyboard commands in the usual graphical user interface (GUI).

learn more… | top users | synonyms

0
votes
0answers
47 views

UNIX Script to Change Desktop & Screensaver in 10.8

I'm setting up LaunchAgent .plists that start up UNIX bash scripts to automatically change the desktop and screensaver for various different users for a Mac image that will be deployed to multiple Mac ...
0
votes
0answers
41 views

Help with “Couldn't start dropbox” message

My MacBook Pro is running Mavericks (10.9.5.) I restored a backup into my computer and then tried to use my Dropbox account and it wasn't working: I got the "Couldn't start dropbox" message. Before I ...
5
votes
3answers
6k views

How can I mount an encrypted disk from the command line?

When I type diskutil mount disk3 in the terminal, it says Volume(s) mounted successfully. However, the disk is not mounted and I can confirm this by opening the GUI of Disk Utility.app and also the ...
0
votes
0answers
25 views

Help modifying an Automator script for ditto

I posted this question over on SuperUser but this may be a more appropriate forum. In OS X Mavericks 10.9.5 and on Yosemite OS X 10.10.3 I'm using an Automator Service and an AppleScript combo that is ...
1
vote
0answers
23 views

Mac Terminal can't navigate between split panes [duplicate]

Problem I have just bought a new macbook pro and am using the Terminal to code. I have read a lot of posts about pane splitting, but nothing answers my question (or none of the solutions have ...
16
votes
4answers
4k views

Disable line wrapping for output in the Terminal

I often read outputs in the terminal that get wrapped as they are too long. Since there is no way that I can modify the printed output, I need to let the Terminal allow for horizontal scrolling. Is ...
1
vote
3answers
101 views

To prevent Text Wrap in OSX Terminal?

I would like to prevent the text wrap in OSX Terminal, by letting text to continue under the border. I could not find it in Preferences of the terminal. How can you prevent text wrap in OSX ...
0
votes
2answers
63 views

Why is same privileged bash command giving different information from script than from command line?

I wrote a bash script to verify various configs on a system, but I am getting different results depending on whether it is run from the command line directly or from the script. Here is the command: ...
0
votes
1answer
164 views

Password no longer works on MacBook Air Yosemite 10.10.2 I need to reset the password, without logging in

I do not know why, but my password is no longer working on my MacBook Air v. 10.10.2 Yosemite. I have tried several things including restarting in Recovery Partition, going to terminal and typing ...
1
vote
1answer
96 views

What are all these extra hidden files (with hash digests) that I can only see when running “ls”?

Since upgrading to Yosemite, there seems to be an extra class of hidden files that are 'more hidden'. They are visible when I run ls, but not in my Finder (even though regular hidden files are visible ...
0
votes
0answers
43 views

Enable internet sharing from command line (without using applescript)

I have perfected a couple of scripts which can enable and disable the sharing interactively using applescript, but I want a way to be able to do everything without the applescript. My aim is to learn ...
-1
votes
1answer
33 views

AppleScript choose file with Terminal action

I would to choose a file/an image that is being mounted in the Terminal set pathelection to POSIX path of (choose file of type {"sparsebundle", "sparseimage", "dmg"}) do shell script "hdiutil ...
4
votes
4answers
7k views

Get disk temperature in terminal

Is there a command I can use just to get the hard disk temperature in the terminal? Is this possible without a third party app?
1
vote
1answer
38 views

Can I update the iCloud password from a terminal?

I have several Macs in a different country, and I would like to update their iCloud password remotely. I can login to the machines via SSH, but the firewall does not allow me to use VNC. I would like ...
0
votes
1answer
38 views

Propagate permissions to subfolders and subfiles

I know that using sudo chmod 777 /folder will set a particular permission to /folder, but it will not do the same with subfolders and subfiles inside the folder. Is there a terminal command to ...
2
votes
1answer
131 views

How to upgrade bash with brew (permission error)?

I work with Yosemite (10.10.3) and would like to upgrade bash (to version 4.x) and found this post. After brew update, I did brew install bash, but obtained: ==> Downloading ...
1
vote
2answers
47 views

Terminal find, rename by deletion

Mac will append a ' 2' (note the space) to the end of a file/folder that is a copy of another file/folder inside the same directory... I was wondering if anybody knows how to batch remove/rename this ...
1
vote
1answer
71 views

Missing .Bash Files in ~/

While uninstalling/removing home-brew, node, and yeoman...I noted that I don't have a .bashrc or .bash_profile in my home directory. I only have .bash_history present. Why is this? Is this bad? If ...
0
votes
0answers
23 views

How can I see a notification that has been cleaned from notification center? [duplicate]

Hi I want to know if there is a log of what notifications has been triggered in my notification center maybe with a terminal command. Thanks!
3
votes
1answer
6k views

How do I get vim to work at 256 colors in iTerm?

I just got a new iMac, and installed iTerm (0.10). On my last laptop 256 color mode worked fine, but I'm having trouble getting this to work on my new Mac. I copied over all the settings, set $TERM ...
0
votes
0answers
178 views

How to enable true color mode in an OS X Terminal?

NeoVim recently added support for True Color mode in terminals that support it. I've tried both Terminal 2.5.3 (343.7) and iTerm 2.1.1, and neither one can display more than 256 colors by default. ...
-1
votes
1answer
160 views

Export PATH directly from command line in Yosemite--where is my PATH?

I want to use the latest version of git which I installed via Homebrew, so I needed to change my PATH variable to ensure OS X uses the Homebrew version instead of the outdated version that ships with ...
2
votes
5answers
7k views

Find logged on user and network home directory with a bash script

I am trying to use a script to find the username and home directory of the user that is currently logged on to a Mac. This is what I have, and it works, but is there a better (i.e. simpler) way to do ...
1
vote
0answers
35 views

Problem with Livestreamer after updating Python to 3.4

After upgrading to Python 3.4 i get this message when trying to use livestreamer: /usr/local/bin/livestreamer: line 3: __requires__: command not found /usr/local/bin/livestreamer: line 4: import: ...
-2
votes
1answer
74 views

The Greatest Hassle of OS X

So after downloading lots of applications on my Mac in the past, I decided to get rid of some of these applications - and this is where I met some of the greatest hassles of using OS X, the processes ...
3
votes
1answer
209 views

Script to change Computername/hostname causing bizarre Terminal behavior

I have a script (mostly borrowed) which utilizes scutil to rename computers based off of values in a CSV file. It matches the serial number to a computer name, sets a variable, and then renames the ...
4
votes
4answers
78 views

Set bash_profile to open with Sublime Text 2 by default

I'd like Sublime Text 2, not TextEdit, to be the default program to open my bash_profile file when I call open ~/.bash_profile in Terminal. Normally I would just control-click on the file in Finder to ...
8
votes
3answers
1k views

TotalTerminal doesn't work with full-screen apps

TotalTerminal (former Visor) is an awesome plugin for Terminal that turns it into a Quake-style console that slides down on a key combination. This is tremendously useful for development because I ...
0
votes
0answers
32 views

Cannot type shift L in Terminal

As title says, I cannot type 'L' (uppercase letter) in Terminal. When I type 'bind -p' 'L' do not appear on the list. I have no problem typing l (lowercase letter). I cannot paste in 'L' neither. ...
2
votes
2answers
267 views

Hard Drive Formatting Error in Terminal

I have tried formatting and partitioning this brand new hard drive and it has failed on multiple computers using multiple methods. It is a LaCie Porsche Design 4TB hard drive. Here is the commands I ...
17
votes
6answers
7k views

How can I play a midi file from terminal?

I'm looking for a most simple command line app (or an on-board tool on Mavericks I am not aware of) to play a midi file from the terminal. As plain as possible, something like play myfile.mid. ...
1
vote
1answer
35 views

Folder disappear from NAS only in Finder

I'm using a Lenovo ix4-300d has my backup system for my archives and it work pretty well. The only downside right now (and it's not even them fault) is that some folder has disappeared from my Finder ...
0
votes
0answers
51 views

Bash Terminal Environment variables = dollar sign

I think I'm having trouble with environment variables (I'm trying to install seismic unix, the make install doesn't work, and I think that environment variables are the problem). The makefile calls a ...
0
votes
0answers
21 views

change bash color profile on su $username

With my useraccount I use a .bash_profile that contains this line: export PS1='\[\e[0;36m\]\u\[\e[0m\]@\[\e[0;33m\]\h\[\e[0m\]:\[\e[0;33m\]\w\[\e[0m\]\$ ' With my adminaccount I use a .bash_profile ...
51
votes
5answers
46k views

Are my permissions for /usr/local/ correct?

I’m using HomeBrew for my port needs (seems a bit “cleaner” than MacPorts). I can install without sudoing (which is great), but the man linking step seems to require it (/usr/local/share/man/man3 ...
11
votes
3answers
35k views

Using Terminal, how can I find which directory is my USB drive mounted in?

I am using Terminal and have looked through directories. I just can't find where my USB drive its directory is. Which directory is my USB drive mounted in?
0
votes
0answers
64 views

GIT_AUTHOR variable overrides git config variables

When I commit a change, instead of using the email address I configured, git uses an invalid one of the form: MyMacUsername@NameOfMyMac.local I have tried all 3 git config commands (--global ...
6
votes
1answer
117 views

Terminal app Tabs, how to position next to current tab instead of at the end

I use Cmd-T all the time to open new tabs, and it's set to use the same directory. However, it positions the new tab as the last / far right tab in the window, instead of next to the current tab that ...
3
votes
1answer
77 views

How to get the postion of the lid

I am trying to figure out what the position of the lid is. Whether it is open or closed. Is there a terminal command or a cocoa code snippet for this? I've already tried pmset -g but i can only get ...
1
vote
1answer
1k views

Getting loads of Open error 5's when using Terminal to repair permissions

My GF's MBP running on Mavericks broke down 2 days ago. First I tried to copy the contents of her HDD to an external HDD but got the I/O error time after time. Then I tried all the basic things like ...
17
votes
6answers
3k views

I-beam cursor color in Mavericks's terminal

After upgrading to Mavericks the I-beam cursor in the terminal became less visible (see screenshot, I am using the Pro profile with a dark background) Is there a way to change the cursor's color or ...
3
votes
3answers
2k views

Keyboard shortcut to change tabs in terminal not working anymore in yosemite

I've set up a custom shortcut for Terminal to change tabs: cmd+option+left/right (the same as in most browsers, for convenience). I did this by going to System Preferences > Keyboard > ...
37
votes
4answers
41k views

How can I open a text file with TextWrangler from the Terminal (command line)?

Often when I work in the Terminal (the command line) I need to edit some text files. I prefer to edit text files using TextWrangler. How can I open a text file with TextWrangler from the Terminal? I ...
0
votes
0answers
56 views

Trying to run commands in bash causes Homebrew error

Whenever I try and run any commands in terminal (bash), my window goes crazy and it keeps looping through an output of: /usr/local/Cellar/rbenv/0.4.0/libexec/rbenv-hooks: line 32: cd: ...
1
vote
1answer
34 views

What is wrong in this command about grepping and pandocing?

I am thinking this answer which returns a broken PDF document in OSX 10.10.3. The file test_dummy.tex is here. pandoc test_dummy.tex -f markdown -t html | grep -E '(^<|^$|^ *$)' \ | grep -v ...
5
votes
3answers
5k views

Change file association in terminal?

Is there a method for associating file types with applications via terminal? I thought ~/Library/Preferences/com.apple.launchservices.plist might do it, and I also have seen: Why is a command line ...
0
votes
1answer
17 views

create custom links in OSX dock

I have a program that runs from the command line but not correctly from the icon in the applications menu. While I would like to figure that out, all I want right now is way to create a link in the ...
0
votes
1answer
35 views

Unable to cut from text edit and paste into terminal

Up until a day ago, I was able to cut and paste commands into terminal from text edit. This is a ongoing function as I store regularly used bash commands in text files so I can cut and paste them ...
0
votes
1answer
45 views

Shut down via Terminal/AppleScript without restoring

How can I shut down my Mac via Terminal or AppleScript, but without restoring? tell application "Finder" to sleep works not, the windows will be restored.
8
votes
1answer
8k views

Create a Terminal command to open file with Chrome

I want to create command in terminal that would allow me to use chrome index.html and have the the given file open in Google Chrome. How can I get this working?