Tagged Questions

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
2answers
2k views

Is there a way to have something similar to Cygwin on Mac?

I'm a web developer using a MacBook Pro running OS X 10.9.3. Before I started developing in a Mac, I used Cygwin on a Windows machine to see what was happening behind the scene on my web application. ...
0
votes
0answers
286 views

Move full screen app to the LEFT of first desktop in 10.9.4?

I am part of the Apple developer program, and received the 10.9.3 beta before the full release. In that version, I could place a full screen app to the LEFT of the first desktop. My setup was to have ...
0
votes
1answer
258 views

How to move IOUSBFamily.kext file in trash back to to System/Library/Extensions using Terminal in recovery mode [closed]

Im toying with my Mac. I restarted the system forgeting to return the file, How can i move it back or restore without having to reinstall the OS.
0
votes
1answer
31 views

Why am I unable to set new command prompt for terminal?

Why am I unable to set new command prompt for terminal in OS X Mavericks? I've tried to do the following: export PS1="\u \W$ " It works as expected but after restart the default value of PS1 will ...
1
vote
0answers
55 views

How do I enable an external display in Single User Mode via Terminal on a headless macbook?

I'm trying to troubleshoot video issues on macbook laptop with no display or a dead? display but can't see what I'm doing. I need a Terminal command to run 'blind' after I boot into Single User mode ...
0
votes
1answer
147 views

How do I get system_profiler output from a lot of machines in a network?

I need to have a script that will execute "system_profiler -detailLevel full" command in a remote mac machine. While this is going on, the user on the remote machine should not know that there is ...
3
votes
2answers
289 views

Using Alt/Cmd + Right/Left Arrow in iTerm

Is it possible to move between words in iTerm using Alt + Right/Left Arrows ? Now if I press Alt+Left I will get '[D' and '[C' if I press Alt+Right.
0
votes
1answer
39 views

How to get the content of a Resource Fork?

I want to get the stored resource fork. In PHP, I'm trying to: system('DeRez' . $_icon . ' | perl -ne \'m|/\* (.*) \*/| && print $1; END {print "\n"}\', $content); which in Terminal really ...
1
vote
1answer
176 views

'localhost' stoped working as an alias for '127.0.0.1' for SSHing into my VirtualBox VM. Why, and how to fix?

The question explains the problem. For months I've never had any problems along these lines. Then, yesterday morning, I couldn't get into my VM! Took a long time to troubleshoot but here was the ...
2
votes
1answer
53 views

Automatically stop a terminal script when locking MacBook Pro

I have written a bash script that I manually start when logging in onto the laptop, but I want it to stop running when I lock my laptop. This doesn't seem a very standard scenario, but I don't want ...
5
votes
1answer
189 views

How to use Terminal to send Keystrokes?

Is there a way for Terminal to simulate pressing multiple keys at once? For example, Shift + Ctrl + R? I am ssh into OS X from a windows client (PuTTY) and am wondering if I need to configure the ...
0
votes
0answers
28 views

How to prohibit other languages than english in terminal

I am using some other languages other than English as input sources, every time I am opening my terminal and start writing a command I write it in a language other than English. I need to know if ...
0
votes
1answer
214 views

Enable SMB sharing from command line

On OS X 10.8, using terminal commands, I'd like to enable SMB sharing as if I had ticked the following checkbox under System Preferences - Sharing - File Sharing - Options: I've tried the following ...
2
votes
1answer
33 views

Terminal sometimes scrambles initial output

I switched to iTerm 2 a while ago, but would like to fix this small problem that I have with OS X's built-in Terminal. Terminal is supposed to look like this when it first opens on my machine: ...
0
votes
1answer
223 views

sudo: unable to cache user root, already exists

Suddenly started getting this strange error when attempting to run any command via sudo: sudo: unable to cache user root, already exists I've tried different Terminal windows, repairing ...
2
votes
0answers
27 views

OS X / Finder - Right Click “New Folder with Selection” - how to Increase the Animation Effect Speed?

10.9.x Finder The effect that pulls all the selected items into a new folder from the right click "New Folder with Selection" is really nice, but way too slow for me. Anyone know a terminal command ...
1
vote
1answer
109 views

Automate mobile terminal?

I have a jailbroken iPhone. I use it to reboot my router when my wifi is going slow or messing up. But I'm lazy and I was looking for a way to automate the process. I use shortcuts that mobile ...
0
votes
0answers
33 views

Terminal: Different Profiles, Different Startup Command

In Terminal preferences you can create different "profiles" under the "Settings" tab. After selecting a profile, clicking the "shell" tab will allow you to set a startup command. However, this is not ...
1
vote
1answer
66 views

How do I disable the “theme loaded” message in zsh

Im using zsh as my default shell and loving it. I have random themes enabled, and whenever I load a theme it displays a message on my terminal. How do I disable this message? Im talking about ...
0
votes
0answers
65 views

Problem with w3mimgdisplay installed with MacPorts

I have installed w3mimgdisplay using MacPorts with "+inline_image_imlib2" and see w3mimgdisplay created under "/opt/local/libexec/w3m/w3mimgdisplay". But, still not able to see images inline in w3m ...
0
votes
1answer
2k views

Mavericks Terminal - 'Command Not Found' for everything [duplicate]

About everything (even clear and open) is giving 'Command Not Found' on the Terminal. If I do and echo $PATH, it gives me this. ...
3
votes
2answers
59 views

Looking for a black/white only terminal emulator on Mac

My original question on Stack Overflow can be found here. Basically, I ssh into my linux work station from my Mac and I would like to test my program (that runs on the linux machine) if color output ...
2
votes
1answer
23 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?
3
votes
3answers
163 views

Get full path of script in PATH environment variable

I was wondering if there is a built-in command in Bash (or even something OSX-specific) that would display the fully resolved path of a script that is in the current PATH environment variable. For ...
3
votes
2answers
108 views

How can I show the full notifications in the notification center?

I cannot read the full notification (see attached). How can I?
2
votes
0answers
173 views

Typing >console in username box—nothing shows up until cancelled

When I type >console into the username box on the login screen, the computer seems to freeze for a very long time. Then I press ^C^C^C^C^D^C^D^D^D^C^D and eventually the computer unfreezes—but ...
4
votes
2answers
1k views

Time in milliseconds since epoch in the terminal

How do I get the time since the epoch, in milliseconds, in the OSX terminal? The Linux/Ubuntu equivalent is date +%s.%N: Linux $ date +%s.%N 1403377762.035521859 Which does not work in my OSX ...
0
votes
0answers
60 views

Plugins with rxvt-unicode

I've just installed urxvt using homebrew: brew install urxvt But I can't find the plugins directory. I used to have them in /usr/lib/urxvt on my Linux machine, but this doesn't seems to work for ...
2
votes
2answers
188 views

iTerm2, unicode and sympy

In my both Mac (OS X Mavericks) and Ubuntu machine, I have installed sympy that is a python library for symbolic mathematics. Part of sympy is the pretty print functionality that uses unicode ...
2
votes
0answers
80 views

How to disable “changing a repeating event” dialog in Mac calendar?

I have a number of repeating events in Calendar (formerly iCal). I often make changes to individual ones on-the-go, but every time it asks me this: Is there a way that I can make the default ...
1
vote
3answers
37 views

About 'Remote Login' how to logout that?

It's my first post and I'm not quite good in English. If I explained something not clear please let me know. For simple when you logged in Terminal.app (on Mac OSX) the prompt should be ...
0
votes
1answer
67 views

How to prevent MacVim from inherenting .profile as if it was Bash itself?

I have this guard in my .profile: if [ -n "$BASH_VERSION" ]; then if [ -f "$HOME/.bashrc" ]; then . "$HOME/.bashrc" fi if [ -f "$HOME/.bash_aliases" ]; then . ...
1
vote
2answers
51 views

How can I list only interface name and assigned IP with ifconfig in terminal

Is there a way using only ifconfig to list only network interface names and their assigned IPs? I am aware that I can do ifconfig | grep inet but this does not include the interface name (en0, en1 ...
1
vote
1answer
79 views

How do I log into another user's OS from my network OS using terminal?

To preface this: I'm sure this has been asked but I don't know exactly what I'm searching for or what terms to use, so I am going to ask here by explaining my situation. I am logged onto a network OS ...
2
votes
1answer
107 views

Changed the mod for ~/.. directory by mistake, made it 744, can't boot anymore

I ran the following command by mistake: sudo chmod 744 ~/.. and I can't boot my macbook anymore, it freezes with the brown screen and ajax-style spin. What should I do to make it work normally ...
5
votes
2answers
523 views

Command to close terminal window

When I want to close a window I type exit : mbp-thomas in ~ ○ → exit logout [Opération terminée] Then cmd + w to close the window. Is there a way to do it with a little script like if I type ...
2
votes
1answer
391 views

How to see total uptime on a mac [duplicate]

Back when I had a Windows machine I used a program called CrystalDiskInfo to see total hours of operation of my computer. I only used the numbers for fun or to like indicate how "used" my PC was.. ...
3
votes
1answer
117 views

Changing terminal colors for normal files when ls -G or within .bash_profile

So I followed this thread (Changing terminal color) and got all of the colors working for directories and such, except however, for normal files such as a Gemfile or .txt files or .java files or .rb ...
2
votes
2answers
107 views

How to keep a file hidden in Finder, but readable, writable and visible to an app?

An otherwise great app I'm using, annoys me as every time I start it, it writes to 2 files in the root of my user account which are clearly visible. Now, I have used the terminal command "sudo chflags ...
0
votes
1answer
33 views

Why do I need to type ./mysql even that I am in the folder? [duplicate]

So I am in a folder where mysql executable already is.. When I try mysql in terminal I get: -bash: mysql: command not found But this will work: Korays-MacBook-Pro:bin koraytugay$ ./mysql Welcome to ...
2
votes
2answers
479 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 ...
1
vote
0answers
88 views

When adding passwords to Keychain Access from command line NTLM is converted to MLTN

This is one of the weirdest things... I script adding passwords to Keychain Access when I log in to provide a "SSO" like experience. I use AppleScript to run some terminal commands that look like ...
2
votes
1answer
197 views

OS X Terminal window disappears on launch

I just unwrapped a MacBook Pro (OSX 10.9.3). I used the Migration Assistant to bring things over from my old mbp, and most everything seems to be working except something very important: the Terminal ...
6
votes
6answers
549 views

How to prevent the application launched in Terminal from undesirably exiting?

I launch applications from the Terminal with commands like this one : /Applications/Mail.app/Contents/MacOS/Mail & The important part is the &. For Unix / Linux / Solaris : I have ...
1
vote
1answer
148 views

Error Installing Jekyll on Mac

I'm trying to install Jekyll, a simple, blog-aware, static site generator. When I attempted to run the terminal command gem install jekyll, I got this error: I then tried to update my RubyGems, ...
2
votes
2answers
127 views

Colors by file type in terminal (running bash)

I'm new to Apple (coming from Linux) and have been stymied in every attempt to use my .bash_profile to get my terminal to color files by their extension (a process which was a single line in my .cshrc ...
1
vote
2answers
121 views

Is there a way to rename menu items in Mac?

For example, in Finder, when you CMD+C to copy a file, the Menu for pasting it is called "Paste Item". Is there a way to rename that simply to "Paste" ? I'd like to do this for quite a few programs, ...
2
votes
1answer
332 views

Command Not found upon opening Terminal

When I open a new terminal, I get the following: Last login: Sun Jun 1 16:39:07 on ttys000 -bash: Setting: command not found NAME-OF-COMPUTER-MacBook-Pro:~ name$ I am used to seeing the first and ...
1
vote
1answer
1k 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
141 views

Error during WebSocket handshake: Status line contains embedded null (using livereload, node-inspector, and karma)

Whenever I run something in my Terminal that requires a websocket to a browser (livereload, node-inspector, karma), I get the following console error "Error during WebSocket handshake: Status line ...