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

4
votes
2answers
315 views

Why doesn't my Terminal show 'last login' message?

Terminal.app on my mac used to show Last login: <date time> on ttys000 as the first line. However, when I opened it this week, I noticed that it didn't show the message. Is this normal, or did I ...
1
vote
1answer
24 views

What is the source directory?

In the website http://gfs.sourceforge.net/wiki/index.php/Mac_OSX_Installation In this line: type from the source directory ./autogen.sh ./configure --enable-osmesa --prefix=$HOME/soft make ...
2
votes
1answer
47 views

How can I give a Space a custom name?

I'd like to give my Spaces helpful names like "Graphics" and "Communications" instead of using confusing, generic names like Desktop 1 and Desktop 2. Is there a way to accomplish that through a ...
2
votes
1answer
1k views

Install gcc to mac via Terminal

I have installed Xcode and the command line tools from the Mac Developers website, which I have read a few times is a prerequisite. I also installed the MacPorts program. In terminal: sudo port ...
0
votes
1answer
379 views

TERMINAL ~/.profile does not contain source ~/.bashrc MAC OSX 10.9.1

terminal shows below on this stage on gerris installation page : http://gfs.sourceforge.net/wiki/index.php/Mac_OSX_Installation Note: make sure that the file ~/.profile contains the line source ...
1
vote
1answer
26 views

Use different profile for a specific Terminal

When logging into remote server with Terminal, I need to use different profile. Is there any way to make the Terminal displayed with different profile? Better still, is there a way to recognize the ...
4
votes
1answer
97 views

MacOS, differences between running a bundled app and running the bundle's executable

Can someone elaborate the differences in OSX between running a bundled application by doing one of the following: double-clicking on it search for it and run it from spotlight open ...
1
vote
1answer
67 views

OS X application start/stop hook

How can I have a script automatically ran when I start or stop an app without using 3rd party tools? I'm not developing the application myself, it's a general question that applies to any installed ...
1
vote
1answer
118 views

OS X won't create any symbolic links, creates aliases instead

No matter how I try to create an symbolic link OS X refuses to play along and instead creates an alias. I've tried several tools and also through the terminal using the ln command. I am on a fresh ...
0
votes
3answers
90 views

Is it possible to enable mouse right click via Terminal?

Is it possible to enable mouse right click via Terminal?
1
vote
4answers
132 views

Is there any way to save Mac OS X preferences into a shell file?

Whenever I reinstall my Mac OS and/or buy a new Mac, I have to configure manually almost all the options of mouse, dock, etc. I'd like to know if Mac OS or some software can provide some way to save ...
1
vote
1answer
42 views

How to find out which terminal app (iTerm or Terminal) is running from within bash

I need to have different color schemes for each of the two terminal types I use. I can set it in the .bash_profile as mentioned here. But how can I tell it to differ depending whether its a iTerm2 or ...
1
vote
1answer
92 views

Tail multiple log files

I have an application which generates new log files each time it is run. They all go to one folder, with filenames like this, and the next log isn't started until the current one is finished. ...
0
votes
1answer
31 views

From where do the encodings supported by Terminal come?

If one goes into the Preferences of Terminal.app, there is an "Encodings" tab. From where does this list come? How can one add further encodings?
0
votes
0answers
45 views

move a file, replacing existing (if any), ideally by putting existing in the trash

I am trying to find a way to automatically (without user intervention) move a file from A to B, replacing B if it exists, ideally by putting the existing copy of B into the appropriate Trash folder. ...
0
votes
1answer
130 views

In Terminal, when the the “cd” command is called, libwww-perl's “head” command is also executed

Currently, in Terminal, when I execute a cd command, it also executes LWP's head command. A copy of the Terminal output follows: laptop:bin user$ cd ~ Unknown option: n Usage: head [-options] ...
5
votes
2answers
439 views

Strange message in terminal when visiting a website

I have my terminal open most of the time. Today while I was searching for a software, search results took me to http://download.cnet.com. I didn't like the software, closed the page and carried on. ...
0
votes
1answer
241 views

Mavericks makes files synced to SMB share hidden

I have a script running by a LaunchAgent to sync a directory with a remote share. This script is fairly simple, I'll include it here just so nobody suspects the script. #!/bin/bash # Hjälpskript ...
-1
votes
1answer
28 views

Seeking shell-scripting resources for the visual learner

I'm trying to teach myself shell scripting. I understand things best when I see them in the context of a system, especially when I can visualize that system. I'm looking for a visual companion to ...
1
vote
0answers
36 views

Correct Way to Check if Spotlight Has Indexed a Folder's Contents

Okay, so I've written a script that uses mdfind to more quickly match files, however, I need to find the best way to check whether a target directory is indexed or not, so I can fall back to using ...
0
votes
0answers
23 views

Best Way to Add Metadata to a File

Okay, so I have a fairly simple script that uses mdfind to quickly find files matching certain criteria so that I can run some operations on them. However, I don't want to run these operations again ...
2
votes
1answer
358 views

How to remap tmux split pane keys?

On my linux machines, for my terminal shell I have tmux keys mapped to allow me to split windows and then switch between new panes. With or without these mappings I can't figure out how to remap the ...
1
vote
2answers
164 views

How can I list my open network ports with netstat?

I would like to list my open network ports in Terminal with built in commands. As what I know, netstat is the command to use. But I'm struggling to get any useful information out of it. How can I ...
0
votes
0answers
201 views

Setting Account Picture/JPEGPhoto with dscl in terminal

I'm working on a script based on this question: What steps are needed to create a new user from the command line on Mountain Lion? The script is packaged up in an empty installer as a postflight ...
1
vote
2answers
43 views

Forcing a script to run in english

My Mac is running Mavericks in English, but because my region is set to Portugal and my keyboard is the portuguese one, when I run some scripts they shows messages in portuguese. I generally hate to ...
9
votes
2answers
2k views

Using terminal to get current fan speed?

I would like to view the current fan speeds of my MacBook and iMac using terminal. I've found that running spindump then cat /tmp/spindump.txt | grep "Fan speed" will show it, but that's very slow and ...
0
votes
1answer
47 views

ImageMagick convert command produces a slight error

This happens when I convert a GIF into a series of PNG files. I convert a .gif animation to a series of .png using convert ex.gif my_png_files_%d.png I get a series of .png-figures but some of ...
0
votes
0answers
99 views

Why is one specific shared folder not visible in finder

Using SMB to connect to a Windows shared folder and there is a specific folder inside that share that does not show up in the Finder. A couple odd points to this: I can ls from the terminal and the ...
0
votes
1answer
31 views

Odd bug in iTerm — Why is my name wrong?

I opened up iterm and it says "jessica-s-phone" I'm not sure what the term for that is. I checked my profile and it isn't there.
1
vote
2answers
48 views

How do I change parts of my terminal prompt? [duplicate]

In Terminal it says Last login: Mon Jan 13 00:00:14 on ttys000 Logsdon:~ DomGomez$ How do I change the DomGomez part in Terminal?
1
vote
2answers
140 views

Running a bunch of commands in Terminal

I run the following commands for logkext a lot in my terminal and would like a know a way to automate the whole process. Open terminal type "sudo logKextClient" Type in administrator password ...
2
votes
1answer
373 views

Show Results of Automator-Terminal command

TL;DR If I create a .app via Automator, how can I show results of a shell script in a dialog or terminal window? I am using Automator to run a shell script adb install /Directory/$1.apk and if I ...
0
votes
2answers
47 views

Run .command with input at runtime

I need to run a .command file with input at runtime, but I want to run via double click, not from terminal. I have a file adbInstall.command file with this code adb install /Directory/$1.apk From ...
1
vote
1answer
214 views

Using bash/terminal to get number of battery recharge cycles

I would like to get the number of recharge cycles using bash (terminal commands). I understand the following command will display all of the battery data, but I want the cycle count on its own ioreg ...
1
vote
1answer
28 views

How do I make my list filter in Java usable in Automator as a service?

A friend of mine has written me a small Java application that is used to filter two lists of words (used for work sadly). Currently I would run the application in the terminal like so: java ...
2
votes
3answers
444 views

Find all executable files within a folder in terminal

I have a folder myfolder that contains a huge hierarchy of files/folders. How to find all executable files within this folder? On Ubuntu this works: find . -executable -type f But Mac OS X Mavericks ...
4
votes
1answer
320 views

Enable/Disable power nap from within Terminal

How can I enable and/or disable OS X's power nap feature from within Terminal? I guess I can deal with it using some command-line programs such as defaults write ... etc, but don't know what the exact ...
5
votes
1answer
119 views

How to launch TextMate (and probably other software) from the command line?

I am very new to Mac, coming from Linux. I am using TextMate, and I suddenly discovered I do not know how to launch TextMate from command line. Using completion, nothing looks like TextMate. Where ...
3
votes
1answer
105 views

What is the relationship between `launchctl limit` and `ulimit`?

There is not any ulimit configuration in system startup files/ shell startup scripts. ulimit -a shows: -u: processes 1064 -n: file descriptors 256 launchctl ...
1
vote
2answers
110 views

Terminal.app equivalent of `xterm -e 'cmd'`

With xterm (and gnome-terminal, terminator, etc), you can run the following command: $ xterm -e 'vim somefile.txt' xterm will open and run the specified program (in this case, Vim). When the ...
3
votes
1answer
65 views

How to get everything from terminal mail(1) sent to my email address?

I'd like to be notified by email whenever a message gets sent to my terminal mail, how could I achieve this? I see some information about cc'ing in this documentation, but I don't know how to use it ...
1
vote
1answer
360 views

Terminal problem with Ctrl + Arrow and Shift + Arrow keys

I am running Mavericks on a new Macbook Pro. When I use the Ctrl and Shift keys together with the arrow keys, I get some sort of key codes as output in the terminal. I am pretty sure that this problem ...
0
votes
1answer
261 views

Why can't I navigate to /.ssh folder on jailbroken iPhone 5S

I have installed OpenSSH on my jailbroken iPhone 5S, I am trying to set up ssh keys for it but I need to get to my /.ssh folder. I try to cd there while at root with cd ~/.ssh but it says "not a ...
1
vote
1answer
624 views

Purge command - Unable to purge disk buffers, error #-2?

When I attempt to run the purge command, I get the same error every time. [ERROR] <CPDevice.c:3816> Unable to create new counter client. [ERROR] <CPOSX.c:1172> Unable to get user ...
1
vote
1answer
188 views

Can I run an SQLite operation from Terminal?

When I download transactions in Quicken Essentials for Mac, my bank adds "DEBIT PURCHASE" and other junk to the Payee info. Quicken has no ability to find and replace globally. But I dug into the ...
8
votes
2answers
377 views

Shell Script for Yesterday's Date

I'm trying to execute the following shellscript with hazel app on any file in the folder. It works, but the only thing thats causing a problem is the date for yesterday. #! /bin/bash saveDir="TJ" ...
0
votes
2answers
55 views

How to view previous inputted MAC Address for WiFi network

I have a Belkin Router and accidentally changed the MAC Address for the Wireless Area Network. Is there a way to retrieve previous inputted MAC Address using Terminal? I'm looking around system and ...
2
votes
1answer
80 views

Showing wrong name in terminal

My Macbook's name is 'Suman'. But in terminal I have something different. How to solve it ?
2
votes
0answers
52 views

“l/” in shell creates a whitespace

Whenever I type l/ in terminal on OS X (Mavericks), it replaces it with a blank space. I can't seem to find any relevant problems or fixes on Google and I have no idea why this happens. For example, ...
5
votes
2answers
967 views

How can I create a symbolic link in Terminal?

I know how to delete a symbolic link/soft link by using command rm in Terminal but I was wondering what command is used to create one?