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
1answer
16 views

copy folders to user library using Terminal on OS X

I would like to copy a folder to the user library using the OS X Terminal. The command line I use is cp -r. The problem is that the command runs, but it doesn't copy the folder and it returns no ...
0
votes
0answers
9 views

To get newer man pages in OSX?

I noticed that my manuals are very old in my system although all updates done. Etc man cmp tells about the flag -l -l --verbose Output byte numbers and values of all differing bytes. ...
1
vote
1answer
18 views

Where are stored C “object” and “executable” files in Xcode?

Platform: OS X: Yosemite 10.10.4; Xcode: v6.4 (6E35b); MacbookPro 15" Retina (mid-2015). Fact: As C compiler and linker (upon standard) create .o and executable file(s) Questions: Where (please ...
1
vote
1answer
31 views

Turn Wifi off/on with a single key?

Is there a way to assign the WiFi on/off function to one of the function keys like F4 that I otherwise never use? I assume Applescript would be required. However I may want to use a BASH script ...
0
votes
0answers
9 views

Nano: how to obtain syntax highlighting?

I have a default installation of nano under /usr/bin/, and I am trying to make nano highlight the bash scripting language code. I have been searching around, but I had no success: I got always some ...
1
vote
2answers
154 views

How to resolve: files which are visible in Terminal, but invisible in the Finder?

In Yosemite v10.10.3, I am trying to reinstall Skype, as it does not sign-in at all, following this link. In order to do so, I need to move some files and folders to trash as to totally uninstall ...
1
vote
2answers
18 views

Stop prompting to unlock disk

I have two hard disks on my 2012 Mac Mini. The first disk is partitioned with Mac HD and Data HD. The second drive has OS X Public Beta and Windows partitioned. I want to prevent OS X on my main disk ...
1
vote
1answer
71 views

Terminal Command Line to find corrupted files

I do have just one corrupted photo into my Photos Library. Is there is any UNIX command line that I can use in terminal in order to scan my Photos Library Folder and find out which file is corrupted? ...
0
votes
1answer
11 views

Folder created in Photoshop not showing up in finder

This is really crazy issue i'm experiencing here: I downloaded the newest Photoshop CC 2015 and started working with it to crop some images for a client. After that, i've saved all the images for the ...
1
vote
1answer
38 views

Could not determine GDB version using command: sudo /usr/local/bin/gdb --version

Eclipse (Mars) version (C programming language): Eclipse IDE for C/C++ Developers eclipse.buildId=4.5.0.I20150603-2000 MacOS version: OS X Yosemite 10.10.3 HW: MacbookPro 15" (mid-2015) Retina ...
0
votes
0answers
15 views

can't use installer to install pkg. file

When i try to install flash pkg with installer, the installer just jump on the dock and can't open, then i try to install in the terminal installer -pkg Desktop/Install\ Adobe\ Flash\ Player.pkg ...
2
votes
2answers
28 views

To install GNU time in OSX?

BSD time gives this kind of output 9990 real 0m4.371s user 0m1.548s sys 0m2.167s GNU time gives then again this kind of output 9990 1.56s user 1.46s system 82% cpu 3.648 total Brew search ...
0
votes
1answer
14 views

How to have more than one app in desktop space?

Whenever I click on the maximize/full screen icon on any window, the app window is going to a new Desktop space. But this is kind of distracting because now I am not able to switch apps by doing the ...
0
votes
2answers
40 views

Get part of result of command line in OS X

I would like to use the following command line to get the current Wi-Fi channel. /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I I would like to use ...
0
votes
0answers
13 views

Script - Audio Files - Find, Count and Sort by type

I have a very large audio collection I have to sort. It's a mixture of M4A, FLAC, AIFF, WAV and MP3. It's the result of years of work by a now deceased person who sat in their garage ripping their own ...
0
votes
0answers
12 views

Want to copy whole data disk to ~/Backup/ and then eject, but having trouble finding the disk

I'm trying to write a script that searches for a disk in the external drive, if present have it rip the disk into a folder with the disks name and then eject, then continue searching for that disk. ...
-1
votes
1answer
32 views

Unable to delete locked file

I have a locked file on my machine that I'm unable to delete. I've tried everything (that I know of) and don't have a clue why it won't delete. Here's what I tried: Everything here sudo rm file.txt ...
2
votes
2answers
24 views

Command + fullstop VS Ctrl + C

Is there any difference between ctrl+c and cmd+. when stopping a terminal process?
0
votes
0answers
18 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
32 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
20 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
57 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
25 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
41 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
22 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
58 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
24 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
32 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
23 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
33 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
30 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
20 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
30 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
22 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
31 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
319 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
71 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
16 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
265 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
62 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
11 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
15 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
25 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 ...