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

1
vote
0answers
28 views

How to set the colour of a folder with a specific name on mac terminal?

I am using these four lines in my .bash_profile file to enable colouring on my mac terminal (Mac OS Yosemite). export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ " ...
0
votes
1answer
57 views

Restore scrollbuffer and tabs in iTerm as Terminal.app does

I love the restore functionailty of the Terminal.app when the app crashes or I need to restart my computer, Terminal.app will show me the recent scrollbuffer for the tabs I have open with a - ...
1
vote
1answer
28 views

Cleaning off packages installed via Terminal on OSX

I have been learning to use Terminal to install packages (particularly to learn Ruby development). I believe that I'm experiencing some conflicts with things that have been installed and would like to ...
2
votes
2answers
63 views

How do I find the path of a file on another computer on my network?

I would like to access files from another computer on the same network in the Terminal. But I am not sure of the path to those files. How do I find it?
0
votes
0answers
32 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
29 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 ...
13
votes
3answers
5k views

How can I install the Command Line Tools completely from the command line?

I'd like to script the installation of the the Xcode Command Line Tools. On Mavericks, xcode-select --install will open a dialog prompting the user to install, but I'd like to trigger the install ...
5
votes
3answers
5k 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
19 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 ...
14
votes
4answers
3k 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
80 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
61 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
85 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 ...
0
votes
1answer
1k views

Mac stuck in safe boot

I accidentally did a hard reset on my mac by doing contorl+c when my mac was booting up. I typed /sbin/fsck -fy because it was supposed to fix my Mac so that it is no longer stuck in safe boot. It ...
1
vote
1answer
90 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
39 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 ...
18
votes
13answers
8k views

What orthodox file manager for OS X could I use?

I'm looking for a graphical file manager fro OS X, for console Midnight Commander is ok. I need two panels, function keys operations and preferably FTP and SCP support. Also, it would be great to be ...
-1
votes
1answer
28 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
votes
0answers
40 views

My terminal commands always start with vm instead of ~ why?

Why do all my terminal commands get executed with a vm prefix instead of the standard ~ prefix that I see in everyone else's laptops? I'm afraid that I'm maybe hacked and perhaps my whole computer ...
0
votes
1answer
1k views

how to use terminal to remove item from dock

Hi I have a shell script in my login item , which runs whenever i log in to my system . It does work completely but once it exits the terminal , it leaves the terminal shortcut on my dock and I don't ...
1
vote
1answer
34 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
33 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
75 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
42 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
67 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
85 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
101 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
6k 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
19 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
69 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
135 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 ...
3
votes
4answers
50 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
247 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 ...
16
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. ...
0
votes
1answer
4k views

My Finder is not responding and there are no documents on Desktop after downloading OS X Yosemite

I've just upgraded my Macbook Pro (15 inch, mid 2009) to OS X Yosemite and it is running slowly and my Finder is not responding at all and none of my documents are on my Desktop. I have tried taking ...
1
vote
1answer
28 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 ...
5
votes
1answer
230 views

How to zip from terminal without creating folder structure of path to folder?

It is possible to zip a target folder with encryption by the terminal command zip -er ~/Desktop/myzippedfolder.zip ~/Documents/myfolder/ However, the contents of myzippedfolder will be a folder ...
0
votes
0answers
38 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
17 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 ...
50
votes
5answers
44k 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
32k 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
47 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
114 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
76 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 ...