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

11
votes
7answers
8k views

sourcing bash profile for root users

Apologies in advance if this question is going to annoy the hell out of everyone as I appreciate, it's been asked in various ways many times before. Please be assured, I have read the archives and ...
0
votes
0answers
32 views

environment.plist adds extra characters?

OSX Yosemite 10.10.3 I used environment.plist <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" ...
0
votes
1answer
21 views

fs_usage returns a LOT of ioctl lines

I've been reading up on interesting Terminal commands (I've used it forever, but there's always more to learn) when I ran across this. I ran sudo fs_usage and got a whole lot of this: ... 13:39:09 ...
0
votes
1answer
24 views

How to minimise the terminal automatically when it is running a shell script?

I have a shell script which runs a Python Program. I created the shell script so that the users of my program may simply double click it to run my program. When the shell script is executed; the ...
7
votes
1answer
372 views

ssh key persists even after I delete the private key from ~/.ssh — why?

I generated ssh keys (public and private) and stored them in ~/.ssh/myServer/. I added the public key to the server's ~/.ssh/authorized_keys file and everything works great! In my effort to try and ...
0
votes
1answer
21 views

How do you get terminal to echo / print all key strokes?

Looking to see what the terminal gets when you press keystrokes such as alt+a or whatever. I remember there was a really simple way to do this with a one line command and without installing any extra ...
19
votes
13answers
8k views

What orthodox file manager for OS X could I use?

I'm looking for a graphical file manager fro OS X, for console Midnight Commander is ok. I need two panels, function keys operations and preferably FTP and SCP support. Also, it would be great to be ...
0
votes
0answers
39 views

Make trackpad quiet in Yosemite

In El Capitan there is a setting that allows you to make the click of force touch trackpads (2015 MB. 2015 MBP) silent. I have tried this out in El Capitan public beta and liked it, however since I ...
0
votes
1answer
71 views

How to change a directory name?

My home directory was not where it was supposed to be. I was able to fix the directory location. Then needed to fix the permission of home directory with $ cd /Users/ $ sudo chown -R hook1:staff ...
0
votes
2answers
1k views

How to access the Wi-Fi password through Terminal?

I am at my school and the computer I am currently using is connected to a Wi-Fi network. I want to know the Wi-Fi password and I am on a Mac. I know there is a way to do it through Terminal. What I ...
0
votes
0answers
14 views

users with same uid

I was reading a question about users with same UID. tried his posted command dscl . -list uid | sort -nrk 2 to see what I got. 2 of them share UID 0 root and untitled. UID -2 is named nobody. daemon ...
0
votes
0answers
24 views

How to find and delete users that only show in Password Utility?

While using disk utility to fix permissions, I kept getting a ton of different ACL found but not expected on Library/files. I searched for a fix after using disk utility multiple times. I kept coming ...
11
votes
6answers
10k views

Waking display from terminal, general waking

This is a two part question. A practical, "how to" question is first, and then I ask for configuration suggestions. First, I put my displays to sleep at night, and I would like to be able to wake ...
0
votes
1answer
25 views

osascript Expected end of line but found class name?

Not really sure what its expecting here, I assume its around click button though. This used to work on 10.10.3, but seems to have stopped on 10.10.4? Script function AcceptSecurity () { osascript ...
0
votes
1answer
16 views

Time Machine: Is it possible to exclude 5000+ files via TMUTIL?

Is there a limit to the number of files which can be excluded in TimeMachine? I have 5000+ photos on an external drive along with their associated sidecar files. The photos are large and never ...
0
votes
1answer
37 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 ...
0
votes
1answer
42 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. ...
5
votes
5answers
12k views

How to rename multiple files at once?

I want to rename multiple files at once. For example: Picture1.jpg Picture2.jpg Picture3.jpg Picture4.jpg into Vacation-Picture1.jpg Vacation-Picture2.jpg Vacation-Picture3.jpg ...
0
votes
0answers
37 views

Mac doesn't recognise simple commands like 'ls'

I installed Apache and tried to change the permissions for one of Apache's working directories. After that my machine keeps changing the default path. I can't access the simple commands unless I set ...
1
vote
3answers
110 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 ...
22
votes
3answers
18k views
4
votes
5answers
16k views

What's a good terminal manager for OS X?

The Terminal.app application from OS X is quite good but it lack some functionality that I find really important like: ability to setup SSH profiles for connecting to different servers and ability to ...
2
votes
2answers
2k views

“xcode-select --install” versus retrieving the dmg from Apple's developer website

I would to ask a question closely related to already existing posts (How to install command line tools without error that is not currently available on Software Update server? and ...
1
vote
2answers
182 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
0answers
18 views

Close Boot2docker terminal window without killing it

I use the Boot2docker application to initialize a virtualbox development environment. I have to leave this window open or it dies. Is there any way I can close the terminal window and have it ...
13
votes
4answers
6k views

How can I install the Command Line Tools completely from the command line?

I'd like to script the installation of the the Xcode Command Line Tools. On Mavericks, xcode-select --install will open a dialog prompting the user to install, but I'd like to trigger the install ...
28
votes
12answers
49k views

Password dialog appears when SSH private key permissions are set to 0600

I installed my SSH private key in ~/.ssh/id_rsa and set its permissions to 0600. When I connect to an SSH server which uses my private key in Terminal.app via ssh, a dialog pops up and asks me to ...
0
votes
0answers
20 views

using FISH shell — set default folder for multiple tabs?

I'm using fish shell in OS X. Using the standard bash shell, you can open multiple tabs in Terminal, cd to a different directory in each, and then save the setup as a Window Group (via Window > ...
0
votes
1answer
5k views

My Finder is not responding and there are no documents on Desktop after downloading OS X Yosemite

I've just upgraded my Macbook Pro (15 inch, mid 2009) to OS X Yosemite and it is running slowly and my Finder is not responding at all and none of my documents are on my Desktop. I have tried taking ...
-2
votes
1answer
16 views

Stop powerline hovering above bottom of full-screen terminal

When in full-screen mode ("full-full", not just maximised with menu bar still showing) Powerline inside Terminal.app hovers slightly (about it's own height) above the bottom of the screen. Does ...
0
votes
3answers
3k views

Git: command not found during Git installation (Mac OSX 10.6)

I am trying to install Git on my Mac (OSX 10.6) following the official Git tutorial. I had no problem until I had to set my username and my email. Every time I tried I got -bash: git: command not ...
11
votes
4answers
7k views

How can I dim the screen from Terminal?

Is it possible to dim the screen from Terminal, in a Mac with OS X Lion? Is there any command to do control brightness and volume?
0
votes
1answer
31 views

Why isn't this alias in terminal working?

The alias's objective is to launch a pdf in my chrome browser. The pdf is entitled "Intro to Java.pdf"; the browser is "Google Chrome" alias x='open -a "Google Chrome" ...
1
vote
1answer
36 views

How can I change 'history' command output?

So by default .bash_history stores 500 last used commands. I changed that to 5000 by setting HISTFILESIZE=5000 in .bash_profile It seems to work. Now when I do history it still prints 500 commands, ...
0
votes
0answers
25 views

File name autocompletion stopped working in Terminal

I just noticed this. Previously, when I typed cd Doc<tab> I would get cd Documents. Now I get cd Doc. If I hit tab again it just appends more tabs. I only have one Doc* directory: $ ls -d ...
1
vote
1answer
1k views

Enable right click Magic Mouse in Terminal

I am trying to enable the right click on a Magic Mouse connected to an iMac running 10.6.8, but due to parental controls, I am unable to gain access to the Mouse System Preferences. I know you can ...
31
votes
8answers
9k views

How do I speed up new Terminal tab loading time?

How can i speed up the terminal startup in Lion? I'm not referring to the startup of the Terminal application, but to the startup terminal windows, like when i open a new tab. I don't have anything ...
0
votes
0answers
14 views

launchctl error “nothing found to load” when run via cron

On OS X 10.9, I'm running a script via my user crontab (added using crontab -e) which, under some specific conditions (not related to this question), will run the following command to launch a menubar ...
0
votes
0answers
10 views

View output from script running in background

While messing around with some Ruby programming (Using OS X 10.9.x), i have constructed a script which is forked to the background, and constitutes a loop which only exits after another process is ...
0
votes
1answer
29 views

Applescript - Get information from terminal command

I'm creating a little script to allow quick changes to the network settings of my Mac. I have got it all working, but I wanted to be able to see what the settings are before I change them in the first ...
0
votes
1answer
1k views

Mac stuck in safe boot

I accidentally did a hard reset on my mac by doing contorl+c when my mac was booting up. I typed /sbin/fsck -fy because it was supposed to fix my Mac so that it is no longer stuck in safe boot. It ...
1
vote
0answers
21 views

In bash script, how to have a script that runs in the background and starts when an application is opened

I'm making a script which should run when I open Safari. I want it to open when the user logs in and run in the background, then have part of the script to run when Safari opens. Is this possible in ...
0
votes
1answer
1k views

how to use terminal to remove item from dock

Hi I have a shell script in my login item , which runs whenever i log in to my system . It does work completely but once it exits the terminal , it leaves the terminal shortcut on my dock and I don't ...
-5
votes
2answers
54 views

How to display standard Linux libraries of OS X in terminal?

Platform: OS X: Yosemite 10.10.4; MacbookPro 15" Retina (mid-2015). I am new to OS X, I want to explore the underlying operating system and it's Linux components especially. Linux has standard ...
5
votes
2answers
281 views

How to zip from terminal without creating folder structure of path to folder?

It is possible to zip a target folder with encryption by the terminal command zip -er ~/Desktop/myzippedfolder.zip ~/Documents/myfolder/ However, the contents of myzippedfolder will be a folder ...
3
votes
1answer
15k views

Full privileges on .command file, but it says I don't have appropriate privileges

I have a command that I regularly need to run in the Terminal (for application code signing). Normally I launch the Terminal, press the up arrow until I reach the command I want, and then hit enter. ...
0
votes
1answer
40 views

Is there a way to access the “Recent Items” list from the terminal?

The Apple menu "Recent Items" entry is handy, but at times I would like to be able to access it via command line, e.g. to change to a directory I was just working in with a GUI app. Is there a way to ...
1
vote
2answers
63 views

OS X Terminal: 'ls' with 'grep !'

I would like to list all files in folder without one. I created this command ls /Users/MartinBengsch/Library/Safari | grep ! "Extensions". The problem is that the Terminal doesn't understand the not ...
2
votes
2answers
28 views

Is there a way to preserve terminal tab history across computer restarts?

I'm using Mac 10.9.5. When I run a terminal with multiple tabs (using bash shell), I've noticed that when my computer restarts, the terminal will open up with the same number of tabs that were open ...
1
vote
2answers
61 views

Remove all files in folder apart from one using OS X Terminal

I would like to remove the whole content of a folder, apart from one file. The problem is can't copy the file to another folder and then back to the first folder, because then the application doesn't ...