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

2
votes
1answer
44 views

Change user name

I had to change the admin user name of a new Macbook because his sons name kept showing up, Home Folder etc, So I used, 'sudo mv /Users/oldusername /Users/newusername' and Advanced Options in User ...
4
votes
1answer
915 views

Terminal flashes on empty backspace with Yosemite

Since using the Yosemite, I've had the annoying problem of my current Terminal window flashing when backspacing on an empty line. I know on previous versions of OS X this flashing was not default, and ...
6
votes
5answers
14k views

How can I save SSH Bookmarks in Terminal?

I've recently become infatuated with TotalTerminal and am tempted to switch from iTerm back to Terminal just so I can use it, except that I rely heavily on a half dozen SSH bookmarks in iTerm. Is ...
0
votes
1answer
106 views

Commands not found in Terminal except echo

In my terminal basic commands are not found like: mds-macbook-pro:~ ZILLURRAHMAN$ ls -bash: ls: command not found mds-macbook-pro:~ ZILLURRAHMAN$ env -bash: env: command not found mds-macbook-pro:~ ...
8
votes
4answers
6k views

Open an app in fullscreen via Terminal

I wonder if it's possible to open a program in Lion fullscreen mode via the Terminal. I want to write a short script which starts a bunch of programs in fullscreen mode, so that I only have to click ...
1
vote
0answers
68 views

Aggressize standard stream buffering in latest Command Line Tools (6.1)

I just upgraded my "Command Line Tools" via App Store.app's update process to Version 6.1. It seemed to install just fine, but a lot of commonly used command line tools now have much more aggressive ...
4
votes
1answer
6k views

LSOpenURLsWithRole() failed with error -10810 - Downloaded app does not start

I'm trying to run an application downloaded from the internet (e.g., Jabref) but it seems that it fails silently. When I try to open it by double clicking it, nothing happens. When I use the terminal ...
1
vote
0answers
38 views

Any way to reboot a iDevice that is connected to a USB port via terminal (Mac terminal)?

So, I am making a program to reboot iDevices (if there power buttons are broken), is there any way to induce the iDevice to reboot via the Mac shell? Take you'r time.
0
votes
2answers
245 views

Create multiple jobs in same terminal

Basically I have two jobs: Compiling a code Download a youtube video with using youtube-dl command Both of the above commands use the terminal. I want to execute both of these commands in the ...
3
votes
2answers
73 views

I deleted /usr/local/bin on my Mac. Is there any way I can see what was installed there?

I accidentally ran rm -rf /usr/local/bin. Yes, I know, I'm an idiot. Is there anything short of attempting to run every single application on my Mac to see what applications need to be reinstalled?
1
vote
1answer
36 views

Unpacking .bundle files via terminal

There's a known method for unpacking .bundle by going to Show Package Contents, but what if that option is unavailable? There is a solution that works for .pkg files by using the pkgutil --expand ...
3
votes
0answers
25 views

Tmux hampers osascripts display notification

I like to show notifications from scripts using osascript -e 'display notification "Some text"'. This works fine from the plain shell but it stop working when in tmux. It just doesn't show the ...
76
votes
5answers
34k views

How can I trigger a Notification Center notification from an AppleScript or shell script?

I'd love to be able to take advantage of 10.8's Notification Center features in AppleScripts and shell scripts I write. Is there a built-in command or a third-party library I can use from either an ...
1
vote
0answers
64 views

Print file from terminal via smb

So UI printing fails with no reason as always. I hope that I can get more details by printing from command line. Tried smbutil print //user@host/share file got: smbutil: unknown command print ...
3
votes
1answer
538 views

Need help using Homebrew 'Services' command

I installed MongoDB using homebrew recently. A few articles on the web advise to start mongo using the following command, brew services start mongo But when I use this command, I get the following ...
21
votes
6answers
48k views

How do I start TextEditor from the command line?

I work a lot at the command line in a Terminal and would like to start a text editor on a certain file. I'm from Linux Land and normally use kwrite or gedit from a bash shell. Trying to find the Mac ...
0
votes
0answers
103 views

Bash shell doesn't inherit $PATH set in /etc/launchd.conf

I am new mac OS X user and recently I am setting up my laptop as a work environment. That concerns environment variables setting in shell. After some search work I found several ways to set ...
2
votes
2answers
590 views

Installing Mavericks via Terminal

I have the Install OS X Mavericks.app in Recovery Mode and I want to execute it somehow to start the installation from the terminal, so I don't need the internet connection. I executed the ...
4
votes
2answers
2k views

open new tab in iTerm and execute command there

I have found way to open new tab in iTerm: newtabi() { osascript -e 'tell application "iTerm" to activate' -e 'tell application "System Events" to tell process "iTerm" to keystroke "t" using ...
2
votes
1answer
54 views

Mac OS X (10.9.2) Terminal: Getting Weird Characters ~$â

out of nowhere I am getting the following weird characters: $â followed by a paragraph sign. See the below image for more detail: Also note where the white cursor is: it's basically 'one-off' so ...
1
vote
1answer
98 views

Home folder name changed but terminal prompt is still showing last name

I changed the name of my home folder in 2 ways. First I change it using the instructions from the official Apple website: sudo mv /Users/old_name /Users/new_name and then I also changed it going to ...
1
vote
1answer
113 views

How to sign in Messages app in Mac Mavericks from terminal

Is it possible to sign in Message app from terminal ? When I search for it, I only see on how to send imessage from terminal. Thus, how can I do that ?
0
votes
1answer
83 views

Why my brew does not work?

I installed brew before, but it does not work now. When I run brew, it give me the error -bash: brew: command not found So I tried to reinstall using the code ruby -e "$(curl -fsSL ...
2
votes
1answer
417 views

How to debug slow terminal prompt?

Ever since I upgraded to Mavericks, the Terminal prompt became a bit slower at coming back. It's not a huge deal, but there's now a slight noticeable delay before the prompt comes back (maybe like a ...
1
vote
1answer
30 views

Concatenating date and cycle count to file on startup

I have the following code from here to find the cycle count of the battery on my computer: system_profiler SPPowerDataType | grep "Cycle Count" | awk '{print $3}' I will enclose it in a simple app ...
0
votes
2answers
37 views

To prevent Finder from showing .noindex files

I can restrict Finder searching files by adding .noindex -extension, this thread. However, I want hide those files in Finder search. How can you prevent Finder from showing .noindex -files?
6
votes
3answers
471 views

How to remove .DS_Store from command-line auto-completion using cd?

I understand that .DS_store files serve a purpose. That said, they are a nuisance when auto-completing with the cd command. When I type cd in Terminal and press tab twice it lists all directories in ...
0
votes
3answers
1k views

How to use “open in terminal”, and “two windows side by side” on mac?

I'm a Linux user. I just bought my first Macbook but I still need some features from Linux that I think are also useful. For example: Open in terminal (right click and choose menu to open the ...
13
votes
2answers
11k views
2
votes
0answers
59 views

SSH to device via USB

When I try to SSH over USB to my device running linux, I get "ssh: connect to host 10.90.1.2 port 22: Network is unreachable" Mind you, I can run the same command "ssh root@10.90.1.2" on my linux ...
1
vote
1answer
66 views

Recompiling bash to avoid shellshock seems to have messed up bash

I probably shouldn't have even messed with it, but I followed the instructions to recompile bash here: How do I recompile Bash to avoid Shellshock (the remote exploit CVE-2014-6271 and CVE-2014-7169)? ...
6
votes
2answers
288 views

xcodebuild firing after every terminal command

After every terminal command, the prompt becomes unresponsive for 2-3 seconds. During this time xcodebuild seems to be running: Where would this hook be that's causing the xcodebuild to be fired? I ...
3
votes
2answers
61 views

Merging multiple AIFF files from the command line

Is there a way to put multiple commands in different voices into the same audio file. I know you can do this: say -v "Cellos" "la di da" -o ex.aiff But I have multiple commands in different voices ...
5
votes
3answers
315 views

loosing vi mode in terminal

My favorite text editor beeing VIM made me add the follwing line to my ~/.bashrc set -o vi As expected, hitting escape lets me execute a vi command, BUT ONLY ONE ?!? For example if I do this: ...
20
votes
5answers
58k views

How can I list all user accounts in the terminal?

How can I list all local user accounts (whether logged in or NOT so 'users' or 'who' is no good) in the terminal on a mac? OS X version is 10.6.8. I have seen this suggested - dscacheutil -q group ...
2
votes
1answer
43 views

How to open a new tab in iTerm in the same folder as the one that is open?

I'm using iTerm for my command line needs, and when I open a tab using ⌘T I want it to open the tab cd'ed to the same location as the tab that was open when I hit ⌘T (instead of opening in my ...
1
vote
1answer
303 views

External Hard-disk showing Input/Output error

I have a 1TB External Hard drive which I'm currently not able to access. When I open the External drive in Finder, It shows it's empty. When I use the option to "Get Info", I get the dialog box ...
8
votes
2answers
35k views

How to save and exit “nano .bash_profile” in Terminal?

I need to add some line to nano .bash_profile in Terminal. Then: 1) I enter with this command line: nano .bash_profile 2) Add the line I need 3) now I don't know how to Save and Exit I thought it ...
0
votes
1answer
128 views

What is the meaning of the command lsof +L1

lsof +L1 My understanding is that the command above shows files that have been deleted but are still open. These files have a “link count” of 0, meaning that there is no directory entry (no link, ...
1
vote
1answer
923 views

iSSH alternative

I'm using iSSH application on my iPhone, mainly for VNC connections. I like its usage. But as I understand, this app is not in App Store now, and the development of iSSH was ended. Could you please ...
3
votes
2answers
40 views

See live report of process's status

Under Linux, I can use top to see a live report of what processes are running. An important field I use is the Process Status field, which shows whether a process is running, a zombie, sleeping, etc. ...
1
vote
1answer
2k views

How to list bluetooth devices from command line

I have to list all available bluetooth devices from command line. I tried to google it, but got only results like "how to turn on bluetooth from terminal". Simply: bluetooth scan Thanks for help in ...
1
vote
1answer
115 views

Terminal colors in Mavericks

I am trying to get terminal colors working in 10.9. I have tried ls -G, I have tried exporting CLICOLOR=1, I have set a bunch of different TERM settings and none of it works. Anyone know what the ...
1
vote
0answers
26 views

No access privileges after new setup via Terminal commands OSX 10.5.8

I have an old G5 Mac running OSX 10.5.8 (leopard)and I had forgotten my admin password. I used some excellent terminal commands I found at Ask Different to Reset the initial setup. I used a different ...
0
votes
1answer
177 views

Disk Utility Showing 0 Bytes on USB

I have a 32GB USB. I recently used dd to write a Linux image to the USB. Somewhere during dd my Macbook froze. When I plugged it back into the laptop after rebooting it wouldn't show. I left it 20 ...
9
votes
3answers
1k 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 ...
5
votes
3answers
4k views

error: There was a problem with the editor 'vi' when using it with git

I have this strange problem with using vi as the editor for git commit -a. Normal flow is: I type git commit -a, vi appears, I enter my commit message, and then :wq to save & exit from vi. This ...
5
votes
2answers
422 views

Unable to format pendrive, diskutil error

When I insert my USB Pendrive in my iMac i see this message: I tried to format it both with DiskUtility and with diskutil command in terminal but I get this error: iMac:~ User$ diskutil eraseVolume ...
0
votes
1answer
1k views

Unable to enable AVB under Mavericks on MacBook Pro

I have a MacBook Pro that has the Thunderbolt hardware which means it should be able to support EthernetAVB. I have done a search and found the command to enable it at the website Manual Pagez. The ...
2
votes
0answers
58 views

Iterm2 - Export a single profile's settings for distribution to others

I've been getting used to working with Iterm2 over the past few weeks. I have a very specific profile configuration requirement for a legacy business application. The configuration for the profile ...