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
9 views

Trying to Install WWW:Mechanize and Getting Localhost Error

Okay . . . I've been trying to install WWW::Mechanize through CPAN and it always chokes at this line: t/local/back.t ........... 1/47 Error GETing http://localhost:60603/: Can't connect to ...
1
vote
1answer
27 views

Remove .plist from /LaunchAgents

Before I go to the issue, I did find a similar thread, but it's quite outdated and I'm not sure if it suits for me. Around two years ago when I got my Mac, I decided to install Seagate Media Sync for ...
0
votes
1answer
19 views

Get terminal application name from shell

I am used to my osascript aliases. In particular, I have nx for opening new tab and closing the old one. However, my scripts use application name to send keyboard signals to it. Instead of writing it ...
0
votes
1answer
50 views

Update bash to version 4.0 on OSX

Is it possible to actually update bash to version 4.0 in OSX Yosemite? echo $BASH_VERSION 3.2.57(1)-release This article and this thread refer to the same question, but they install a new shell ...
0
votes
1answer
23 views

Paste tool for OSX

There is paste tool in Linux but have not found for OSX. Its name was probably dpaste or something in Linux. Assume you run xxd -ps r328.raw | head -n2430 and you want to paste it to your friend. ...
1
vote
1answer
37 views

Can't see hidden files with Standard user

I am using my Mac as a Standard user. Running latest OSX 10.10.3 I have used the following command from terminal: defaults write com.apple.finder AppleShowALLFiles YES But I still can't see my ...
0
votes
1answer
22 views

What is the “host name” in bash? (\h or \H)

I set PS1="[\u@\H \w] in bash. So it should print the host name. But I do not understand the meaning and nature of the host name. Basically, I would assume that it is just a name I assigned to my ...
1
vote
1answer
19 views

To use STDBUF from Homebrew's coreutils

I run brew search stdbuf and get No formula found for "stdbuf". Searching pull requests... Closed pull requests: coreutils: upstream fix for stdbuf (https://github.com/Homebrew/homebrew/pull/32955) ...
0
votes
1answer
54 views

To install unbuffer in OSX

There is the terminal command unbuffer in Linux Redhat, for instance. I did not find it in homebrew. How can you install unbuffer in OSX Yosemite 10.10.3?
0
votes
1answer
18 views

Warnings when installing pip

I just installed pip and got a few warning messages. Should I be concerned? Is there a way to check that pip was installed properly? Here's what I did: [mchenja@mycomp ~]$ sudo easy_install pip ...
0
votes
0answers
11 views

How to open application through notification in terminal shell

I have the following command to run in a terminal shell script: osascript -e 'display notification "This is a Text" with title "This is a Title"' This is a shell code running in applescript to open ...
0
votes
1answer
29 views

OS X cd command in /usr/bin instead of /bin

On OS X 10.8 I was looking at my /bin folder and found that cd was not there, but rather in the /usr/bin folder. Why is that? From the FHS (Filesystem Hierarchy Standard. I know that /bin should ...
0
votes
1answer
19 views

Altering a hard linked file in one location seems to destroy it in another location

I have a file, myfile.txt, located in folder1. From the terminal I create a hard link to this file in another directory with the command ln myfile.txt ~/Documents/folder2 The new file appears as ...
0
votes
0answers
29 views

SSH configration periodically gets overwritten and lost in yosemite

On Yosemite 10.10.3 my ssh configuration "~/.ssh/config" for hosts and keys will always get lost and gets overwritten with only this one line UserKnownHostsFile="/Users/user/.ssh/known_hosts" I ...
0
votes
1answer
24 views

Switch profile of current Terminal

Is there a way to switch the profile of an already-opened Terminal window? Let's say I already have a Terminal window opened with Basic profile. Can I switch it to Grass profile? I seem to only be ...
1
vote
1answer
16 views

Is it possible to restore PATH? [duplicate]

So I accidentally run in terminal command export PATH="/usr/bin/php/bin" which override my defaults and none of the commands aren't responding. MacBook-Pro-Kil:home $ sudo -bash: sudo: command not ...
2
votes
1answer
27 views

Opening links on Mac Chrome app in Incognito Mode

Is there a way to open a certain link with Chrome app Incognito Mode using the Terminal app on my Mac? (I want to input the link in the command as well).
0
votes
0answers
20 views

rsync error: connection unexpectedly closed

I'm trying to backup some folders on an ubuntu server to an external G-Drive, connected through thunderbolt to my iMac, in this manner: $ time nohup sh -c 'rsync -avz myuser@myserver:/home/user/ ...
1
vote
1answer
27 views

Why can't I execute mysql without the full path? [duplicate]

At my terminal, I can't cd to the folder containing mysql and call it. TimsMacBookAir:/ tim$ cd /Applications/MAMP/Library/bin/ TimsMacBookAir:bin tim$ mysql -bash: mysql: command not found If I ...
2
votes
0answers
27 views

Control - C on a password prompt on the terminal

Occasionally, I request something with sudo, but change my mind after the password prompt has arisen. If the program was executing, I could press Control+C to exit, but this has no effect on the ...
0
votes
0answers
12 views

Silent installer for remote macines

I am trying to create a script to install logmein silently (or in the background) with out enduser input. I have the process to download the zip and create an admin user (for later login) however I ...
2
votes
1answer
316 views

Removing computer name from terminal

Right now, this is what my Terminal shows: MyName's-MacBookPro:location MyName$ I'd like for it to only show my name, so something like this: MyName$ When I browsed online for a solution, they ...
0
votes
3answers
69 views

I broke PATH in terminal and I can not restore it

in .bash_profile I accidentally set the path to: PATH="~/Tools/apache-maven-3.3.3/bin" and now the default path is gone. Nothing in Terminal works anymore: Korays-MacBook-Pro:~ koraytugay$ ls ...
0
votes
1answer
15 views

problems installing homebrew on mavericks

I tried to install homebrew (OSX 10.9.5) using the recommended ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" but got Illegal variable name. I do have ...
0
votes
1answer
253 views

What does `brew man` do?

I mean brew man, not man brew. It says: Fetching: hpricot-0.8.6.gem (100%) Building native extensions. This could take a while... Successfully installed hpricot-0.8.6 Fetching: ...
1
vote
2answers
52 views

Install Monokai Theme on Terminal with prompt colors, etc.?

I already have a Monokai theme installed in Terminal, as so: I was wondering how I could get the rest of the Monokai (as Sublime uses) into Terminal? Like, making the prompt (Gamma@~) colored, etc. ...
0
votes
0answers
11 views

Incompatible library version with mpicxx

I am trying to compile a c++ code to a dynamically linked library on my Mac v10.10 I am hoping the error I receive isn't specific to the c++ code, rather thatI am missing some dependencies. I run ...
0
votes
1answer
10 views

Change mail back to embedding attachments

I wanted to attach a photo and not embed it so I did the following: If you would like Mail to do this automatically with all attachments, try the following Terminal command: defaults write ...
0
votes
0answers
14 views

Making a Damaged USB Writable for Drive Genius?

Apologies for being (sort of) a repost from Unable to be Repaired & Further Problems but I had some further questions and I was worried they wouldn't be answered. I followed Froggard's advice and ...
0
votes
1answer
29 views

The disk “Vol” couldn’t be ejected because “Terminal” is using it

I have connected an External hard disk to Mac and just issued command df -h in terminal. When I tried to eject drive it shows the error. After closing terminal, I could eject it. But is that really ...
0
votes
0answers
12 views

To use XCode for Deparse converted Perl Script [migrated]

Minimum Script for Practicing conversion of terminal scripts into Perl and using them finally in Xcode use strict; use warnings; ## Conversion of one-liner into Script by perl -MO=Deparse # Original ...
0
votes
0answers
21 views

os.Popen command is not working

I'm writing a python script that is suppose to change default display settings for all users. I run the script as sudo because it needs to change every display. This line is suppose to change the ...
6
votes
2answers
83 views

Make files in `/usr/local` writable for homebrew

I've been trying to get homebrew working nicely, but it appears everything inside /usr/local isn't writable, and everything falls over. It keeps telling me to recursively chown /usr/local, and I ...
0
votes
1answer
35 views

Missing Mail.app in Finder, but exists in /Applications folder

I've not ever wanted to use the Mail app on my Mavericks machine, but recently I decided I'd give it a shot. However when I went to Applications in Finder, I couldn't see it. Nor was it in ...
1
vote
0answers
34 views

Cannot create hidden user in Yosemite

I am currently trying to make a hidden user on Yosemite. I have tried to follow tutorials from this site, however when I run the command sudo dscl . append /Groups/<real_name> GroupMembership ...
0
votes
3answers
19 views

Comfortable way to archive and log terminal input

I often want to reuse a terminal command that I already used in the past. I know two ways how to do this: Use the "up" arrow to browse through old commands. Copy a bunch of commands into a script. ...
2
votes
2answers
55 views

How to find the currently connected network service from the command line?

I would like to find out which of the available network services (e.g. Ethernet or Wi-Fi) is currently active. In this screenshot from the Network Preferences, you can see that Wi-Fi is currently ...
1
vote
1answer
38 views

Infinite scrollback in Terminal (Yosemite)

I would like to save the scrollback history in terminal basically forever. I don't mean bash history, I mean all the text that ever scrolled past in the terminal, not just the commands entered. I ...
0
votes
1answer
18 views

PC user wants Windows/Linux key mappings [duplicate]

I'm a long-time PC and Linux user. Recently, I was given a mac mini (Yosemite) for my job. I've still got my full-size PC keyboard (with number pad). There are several differences. The biggest one is ...
3
votes
1answer
78 views

bug with rsync changing modification dates even with the -a option

I have been testing rsync and found a weird bug when copying files and folders from a partition to another: If I do this: rsync -avE --delete '/Volumes/disk1/origin/' '/Volumes/disk2/destination/' ...
-1
votes
1answer
22 views

How do I configure my Terminal app with bash and iTerm2 with zshell and oh my zsh?

The Terminal app uses bash by default. And I don't want to change it. However I want to configure iTerm2 with zshell and oh my zsh. and I don't want bash on it. The instructions I checked online, make ...
-1
votes
1answer
33 views

Terminal command to delete everything I've ever created

I have so much junk installed on my work laptop I want to start with a fresh machine. However, I must keep the account I have as I do not have system permissions to create another account. How can I ...
1
vote
0answers
14 views

Airdrop between newer and older macs without clicking the “Search for an older Mac” button

I have a new MacBook Pro running Yosemite 10.10.3 and an older Mac Mini running Lion 10.7.5. Airdrop works in both directions, provided that if I am transferring from my MBP to my Mini, I click the ...
1
vote
3answers
81 views

To give STDIN for Sed?

Pseudocommand echo '1,2,3,5' | sed -n data.txt which gives sed: 1: "data.txt": extra characters at the end of d command I want to give linenumbers for search from other command. Actually awk ...
1
vote
3answers
49 views

Upgraded to Yosemite, mkdir now says “permission denied”

I upgraded from OS 10.7.3 to 10.10.3. Now I get "permission denied" when I run mkdir on folders that I own and have full permission. For example : I own a folder called ...
10
votes
2answers
1k views

How to prevent 'sudo rm -rf /'

A few times I have accidentally executed the command sudo rm -rf /. Is there a way how to prevent me from running this command? For example can I somehow disable it using the sudoers file?
5
votes
1answer
585 views

Why does OS X terminal need manually sourcing to display colour?

I have the following in my ~/.bash_profile file: export CLICOLOR=1 export PS1="$FBLU[\#]$RS--$RS{\t}$RS$FWHT\W$RS$FMAG@$RS$FRED\u$RS$FCYN\$$RS$FBLU>>>$RS" # ANSI color codes RS="\[\033[0m\]" ...
0
votes
0answers
16 views

MacPorts issue with FreeType10.10

I'm using MacPorts to run Windows executables through Wine, everything went fine until all this suddenly went kaput for this reason: Wine cannot find the FreeType font library. To enable Wine to ...
1
vote
0answers
26 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\]\$ " ...
2
votes
2answers
59 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?