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).
1
vote
1answer
327 views
Many programs notify me that “grep/sed/uname/… not found”; some run, some don't. My system(?) path is damaged, how do I go about a diagnosing it?
Some manifestations of this problem: macports won't install, MATLAB won't run, BTT works but incessantly spams me with " not found" popups, and emacs shell does not work.
My interactive shell PATH is ...
1
vote
1answer
6 views
Is there a way to set an Application Shortcut in the Keyboard Preference Pane via Terminal?
I'd like to have a bootstrap for my custom keyboard shortcuts to use on multiple machines...
1
vote
1answer
21 views
preventing ssh command from opening xquartz on every session
Whenever I use ssh, after I type the password, xQuartz pop ups in the dock and terminal window looses focus. This happens even if there's no an X session. Why? How to prevent this behavior?
3
votes
1answer
85 views
Mac Terminal support for multiple fonts
I was trying to get emacs minimap to work on the terminal - http://www.emacswiki.org/emacs/MiniMap
However, the font is the same size as the rest of the screen, which makes it pretty useless. It ...
1
vote
4answers
307 views
How can I map keyboard keys to mouse axes in Terminal?
How can I map the mouse axes to my keyboard keys in the Mac OSX 10.6 Terminal? For example, moving the mouse up (positive x) triggers a keypress of W. Is this built in, or do I need a software ...
1
vote
4answers
594 views
Executables in /bin and /usr/bin are not found in path
Somehow I can’t execute files in /bin or /usr/bin without providing the full path.
This isn’t happening when running from Terminal, but, for example, iTerm can’t run bash (only /bin/bash), OnyX ...
0
votes
1answer
40 views
Cleaning up my .bash_profile: Can I delete some of this?
I'm not a Unix guru.
I'm running OS X 10.8.3 Mountain Lion. Today I removed Macports from my machine. I believe macports left some cruft in my `~/.bash_profile which I would like to remove (the ...
1
vote
3answers
40 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 ...
1
vote
1answer
249 views
“DYLD_” terminal error?
So, I've done some searching.. and still haven't found a solution for this. I'm not even sure what has caused it. There are no DYLD_ or LD_ flags being set at all, but I always see this when I open ...
1
vote
1answer
24 views
How to remove an environment variable on Snow Leopard
I'm running under Snow Leopard 10.6.8 and I recently added an environment variable which it seems to be messing my bash terminal (I guess).
What I did is add the variable ...
0
votes
0answers
28 views
I am having trouble getting apache to work via terminal on mac os x 10.8.3
I am a beginner with the terminal app. - I think , while following a tutorial for creating a user configuration file for apache, that I messed something up internally with apache. I cannot even access ...
1
vote
2answers
62 views
how to move files in terminal osx
Hello world so i am way new to mac i am trying to install an older version of wkhtmltopdf because the brew install wkhtmltopdf installs a rc version that just wont work.
So i found this blog that ...
0
votes
1answer
54 views
How can i reset my Terminal?
just some time ago i installed the OS X Server app on my mac and since this day it always appears server as the chosen directory in my terminal.
But because i dont really like the Server application ...
0
votes
0answers
20 views
Making checks before rsyncing external drive on OSX
I have the following issue on OSX though I guess this could equally be filed under bash. I have several encrypted portable drives that I use to sync an offsite data store or as an on-the-go data store ...
-2
votes
0answers
27 views
Find command acts weird
I don't know if there is something wrong with my current find commandline app. Whenever I run it, the terminal is closed.
I have no idea, it's just weird.
0
votes
1answer
29 views
How do I make a bash script so that I can drag its input on top of the icon?
I need to make a bash script to that I can drag a .rar file on top of it and then the script will receive the pathname of that file as argument 1 ($1). I have made the bash script, but how do I make ...
38
votes
12answers
23k views
Is there a Mac OS X Terminal version of the “free” command in Linux systems?
On Linux, I often use the free command to see the current amount of free and used memory in the system. For example:
$ free
total used free shared buffers cached
...
2
votes
3answers
229 views
How can I use Terminal to copy all files of a certain type from a failing hard drive?
I need to use terminal to copy my Pictures folder from a failing harddrive onto another drive, but I can't actually change into the folder and use just cp *.jpg ~/Documents. Is there a way to do this ...
0
votes
2answers
39 views
How to build a simple app that turns text to m4a files
I'm learning Chinese and want a way to quickly generate and save words and phrases to m4a files.
I've managed to do pretty much what I want in terminal, but I can't seem to figure out how to make an ...
1
vote
0answers
25 views
Terminal configuration lost after booting up
On OS X 10.8.3, my Terminal.app is configured with my .bashrc file. In my .bash_profile I have:
source .bashrc
It works great, except when I let some Terminal windows opened and shut down the Mac. ...
6
votes
3answers
1k views
How to replace Mac OS X utilities with GNU core utilities?
I found there is some differences between the utility command I used on the mac OSX and linux. I want to make my experience united.
How could I replace all my mac utilities with GNU utilities?
2
votes
2answers
62 views
Is it possible to get the full suite of unix options for the command line tools on OS X?
I follow Unix Tool Tip on Twitter and it is interesting that many of the tips that are posted are not available on OS X.
For example:
cp - u will only copy files that don't exist, or are newer ...
0
votes
2answers
42 views
Where is the official Apple documentation for the Terminal App? I need a list of escape sequences
Terminal.app does not implement all xterm sequences. I need to get the complete list of what it does implement. Is it available anywhere?
0
votes
1answer
23 views
Check Remote Management Status via Terminal
I need to be able to SSH into a Mac (Mountain Lion) and check if ARD is running and if so, what are the settings. Basically, I need the equivalent of going to System Preferences -> Sharing -> Remote ...
12
votes
5answers
7k views
When I open Terminal, I get an “I have no name!” prompt
Suddenly, this morning, I open a Terminal window and I get this:
I have no name!@macbook:~$ whoami
502
** I am not a number! I am a human being! **
What gives? Anyone know what I need to do to ...
0
votes
1answer
24 views
Cursor does not go begining of the line
Hello I am trying to go begining of the line. neither left arrow key or ctrl + a
lets me do it. everytime it keeps couple letters on the right.
however its a visual bug my cursor is actually in the ...
0
votes
1answer
30 views
For iTerm2, how do I make the working directory appear in the window title?
I recently switched to iTerm2 from the default Terminal app and have a usability issue.
On Terminal, the working directory you are in shows up on the title bar along with the process and pixel ...
0
votes
3answers
3k views
bash: brew: command not found [closed]
I am new to mac and was following a video and typed export PATH="$HOME/opt/git/bin:$PATH" I believe this messed up my path and I am not able to install MySQL now. When I tried to install homebrew I ...
3
votes
1answer
70 views
How to launch pdf viewer from the terminal
I'm working using LaTeX, since I compile the document in the terminal, it would be much easier for me to open it in pdf viewer directly from the terminal.
I'm using OS X 10.8.2 in Polish, so I'm not ...
0
votes
2answers
35 views
Auto open 4 terminal sessions and SSH them to a given host
I'm doing Rails development on a MacBook via a VirtualBox setup that's somewhat similar to Vagrant. My inconvenience is that I like to have at least 3 terminal tabs connected to the VM via SSH (one ...
0
votes
1answer
23 views
Why does shasum generate non-standard hashes?
As far as I can tell, the shasum that ships with os x doesn't generate the hashes that it's supposed to.
$ echo "" | /usr/bin/shasum
adc83b19e793491b1c6ea0fd8b46cd9f32e592fc ?-
When I look up empty ...
0
votes
1answer
37 views
How do I disable a specific wifi network through terminal?
Is there a way to disable a specific wifi network in Terminal? I'd like to disable my home wifi connection for reasons outlined here: Reclaim Your Life After Work by Disabling Internet Access for ...
0
votes
1answer
55 views
Solarized theme for Terminal
I've installed the Solarized theme for Terminal.app and imported it. But my Terminal is all gray, I don't get color highlighting on anything. Not even running Python terminal generates any color. How ...
4
votes
1answer
59 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
0answers
46 views
FocusFollowsMouse, cut-paste from browser to Terminal in 10.8 (duplicate)
Added: this was discussed in
focus-follows-mouse-plus-auto-raise-on-mac-os-x on SO in 2010. In short, accept it,
or buy an addon:
how-can-i-make-focus-follow-the-mouse-cursor.
The sequence:
cut ...
0
votes
2answers
26 views
Mac Won't Remember Hostname in Terminal After Reboot
I'm trying to set my hostname for my mac. Currently it's unknown002374e31ebd.
I've tried setting it with
sudo hostname -s Steve-Mac
Which will work for all future terminal sessions. However, if ...
0
votes
1answer
47 views
Can an Open Directory (10.8) user's home directory be changed from the terminal?
I'd like to use SFTP/SSH for users (students and faculty) to manage their web content. The default home directory is "/Users//". I'd like to point them to something like "/Users//web" to block access ...
4
votes
2answers
244 views
Change the default action to open executable files in the editor instead of Terminal
When double clicking an executable file (without a file extension) in Finder, it opens in Terminal by default. I can change that to any other application for this single file, but I cannot change the ...
0
votes
0answers
30 views
FTP: active vs. passive, command line vs. browser
Here's a weird one for everyone. I'll use AskDifferent because my test bed is on a Mac, but I don't know that the underlying issue is specifically Mac.
My Mac is behind a NAT wall. Let's call my ...
7
votes
3answers
1k views
Can Finder and the “open” command treat files with .sh or other typical extensions just like .command files?
I am looking for a way to inject some more extensions into the OS X launch services database systematically so that when clicked, they execute in the terminal app just like .command files do by ...
0
votes
1answer
190 views
How can I access a remote machine via SSH from behind a proxy?
I’m trying to connect to a Linux machine via SSH. The problem is that my Mac is in a different network, behind a proxy that routes HTTP and HTTPS through port 80.
How can I access the Linux machine ...
2
votes
3answers
82 views
look up a word in Dictionary.app in Terminal
Is there a bash or applescript to look up a word in /Applications/Dictionary.app from a Terminal window ?
open -a /Applications/Dictionary.app/ --args word
ignores --args, says "type a word to look ...
0
votes
1answer
51 views
Force relaunch of Finder from terminal into background
For some reason, Finder is no longer running and will not relaunch using conventional methods.
I can, however, get it running with the following command in the Terminal:
prompt$ open -g ...
1
vote
2answers
51 views
How do i autorun .command files from a USB drive when I plug it in?
I've made two .command files, "lock" and "unlock". The first hides hidden files with: defaults write com.apple.Finder AppleShowAllFiles TRUE, then refreshes finder with killall Finder. The second does ...
0
votes
0answers
15 views
Laptop crashed while downloading files using FileZilla, now those files only show up in FileZilla browser and can't be overwritten. How to delete?
My laptop crashed while downloading files using FileZilla. Now those files only show up in the FileZilla browser and they can't be overwritten. I can't see them in Finder or in Terminal. How do ...
2
votes
2answers
37 views
Alternative to “luit” which is available via homebrew
I have a few legacy commands which I need to run in the terminal. Unfortunately they only work with ISO-8859-1 encoding being used.
For now I manually switch the terminal encoding, but that bugs me. ...
1
vote
1answer
48 views
Where are login options stored?
How can I read Login options from terminal (Automatic login, Display login windows as, Network Account Server etc.)?
12
votes
2answers
6k views
Amending PATH so that /usr/local/bin is ahead of /usr/bin
I'm trying to install brew but get the following warning:
Warning: /usr/bin occurs before /usr/local/bin
This means that system-provided programs will be used instead of those
provided by Homebrew. ...
16
votes
2answers
6k views
How can git auto-complete branches at the terminal command line?
On my linux machine I have autocomplete for branches with git.
For example I can type git checkout [TAB] and get a list of branches.
Or I can type git checkout feb* [TAB] to get all branches that ...
0
votes
2answers
46 views
(find: *.png: No such file or directory) terminal
I am trying to do some batch processing in terminal with texturePacker. The creator of texturePacker said that this is the way that you batch convert a directory of .pngs to .pvr.ccz.
find ...



