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

3
votes
0answers
21 views

Tmux hampers osascripts display notification

I like to show notifications from scripts using osascript -e 'display notification "Some text"'. This works fine from the plain shell but it stop working when in tmux. It just doesn't show the ...
1
vote
0answers
42 views

Print file from terminal via smb

So UI printing fails with no reason as always. I hope that I can get more details by printing from command line. Tried smbutil print //user@host/share file got: smbutil: unknown command print ...
3
votes
1answer
329 views

Need help using Homebrew 'Services' command

I installed MongoDB using homebrew recently. A few articles on the web advise to start mongo using the following command, brew services start mongo But when I use this command, I get the following ...
5
votes
1answer
918 views

View passwords of all Wi-Fi networks my Mac has connected to in the past

I have connected my Mac to lots of public Wi-Fi networks. I want to know their passwords. What should be the terminal command to list all the Wi-Fi networks whom I connected with in the past with ...
0
votes
0answers
79 views

Bash shell doesn't inherit $PATH set in /etc/launchd.conf

I am new mac OS X user and recently I am setting up my laptop as a work environment. That concerns environment variables setting in shell. After some search work I found several ways to set ...
1
vote
1answer
73 views

Home folder name changed but terminal prompt is still showing last name

I changed the name of my home folder in 2 ways. First I change it using the instructions from the official Apple website: sudo mv /Users/old_name /Users/new_name and then I also changed it going to ...
4
votes
1answer
55 views

Launchd starts event 40 seconds later?

I've created a .plist file, which should act as system daemon (global with root user). This .plist file listens to the settings directory for changes like changing network settings. When this happens ...
1
vote
1answer
92 views

How to sign in Messages app in Mac Mavericks from terminal

Is it possible to sign in Message app from terminal ? When I search for it, I only see on how to send imessage from terminal. Thus, how can I do that ?
0
votes
1answer
48 views

Why my brew does not work?

I installed brew before, but it does not work now. When I run brew, it give me the error -bash: brew: command not found So I tried to reinstall using the code ruby -e "$(curl -fsSL ...
2
votes
1answer
41 views

Mac OS X (10.9.2) Terminal: Getting Weird Characters ~$â

out of nowhere I am getting the following weird characters: $â followed by a paragraph sign. See the below image for more detail: Also note where the white cursor is: it's basically 'one-off' so ...
0
votes
2answers
31 views

To prevent Finder from showing .noindex files

I can restrict Finder searching files by adding .noindex -extension, this thread. However, I want hide those files in Finder search. How can you prevent Finder from showing .noindex -files?
2
votes
1answer
43 views

Change user name

I had to change the admin user name of a new Macbook because his sons name kept showing up, Home Folder etc, So I used, 'sudo mv /Users/oldusername /Users/newusername' and Advanced Options in User ...
1
vote
1answer
27 views

Concatenating date and cycle count to file on startup

I have the following code from here to find the cycle count of the battery on my computer: system_profiler SPPowerDataType | grep "Cycle Count" | awk '{print $3}' I will enclose it in a simple app ...
2
votes
0answers
44 views

SSH to device via USB

When I try to SSH over USB to my device running linux, I get "ssh: connect to host 10.90.1.2 port 22: Network is unreachable" Mind you, I can run the same command "ssh root@10.90.1.2" on my linux ...
1
vote
1answer
64 views

Recompiling bash to avoid shellshock seems to have messed up bash

I probably shouldn't have even messed with it, but I followed the instructions to recompile bash here: How do I recompile Bash to avoid Shellshock (the remote exploit CVE-2014-6271 and CVE-2014-7169)? ...
3
votes
2answers
45 views

Merging multiple AIFF files from the command line

Is there a way to put multiple commands in different voices into the same audio file. I know you can do this: say -v "Cellos" "la di da" -o ex.aiff But I have multiple commands in different voices ...
2
votes
1answer
31 views

How to open a new tab in iTerm in the same folder as the one that is open?

I'm using iTerm for my command line needs, and when I open a tab using ⌘T I want it to open the tab cd'ed to the same location as the tab that was open when I hit ⌘T (instead of opening in my ...
2
votes
2answers
1k views

brew bundle reporting “Error: unknown command: bundle”

I'm completely puzzled by this one. I have refactored my install scripts to use the new brew bundle feature. However, I'm getting "Error: unknown command: bundle" $ which brew /usr/local/bin/brew $ ...
1
vote
1answer
532 views

iSSH alternative

I'm using iSSH application on my iPhone, mainly for VNC connections. I like its usage. But as I understand, this app is not in App Store now, and the development of iSSH was ended. Could you please ...
0
votes
1answer
85 views

What is the meaning of the command lsof +L1

lsof +L1 My understanding is that the command above shows files that have been deleted but are still open. These files have a “link count” of 0, meaning that there is no directory entry (no link, ...
1
vote
1answer
105 views

Terminal colors in Mavericks

I am trying to get terminal colors working in 10.9. I have tried ls -G, I have tried exporting CLICOLOR=1, I have set a bunch of different TERM settings and none of it works. Anyone know what the ...
1
vote
0answers
21 views

No access privileges after new setup via Terminal commands OSX 10.5.8

I have an old G5 Mac running OSX 10.5.8 (leopard)and I had forgotten my admin password. I used some excellent terminal commands I found at Ask Different to Reset the initial setup. I used a different ...
0
votes
1answer
101 views

Disk Utility Showing 0 Bytes on USB

I have a 32GB USB. I recently used dd to write a Linux image to the USB. Somewhere during dd my Macbook froze. When I plugged it back into the laptop after rebooting it wouldn't show. I left it 20 ...
1
vote
1answer
170 views

External Hard-disk showing Input/Output error

I have a 1TB External Hard drive which I'm currently not able to access. When I open the External drive in Finder, It shows it's empty. When I use the option to "Get Info", I get the dialog box ...
0
votes
3answers
72 views

List of all dates+times when I used my MacBook?

I need a list of the periods of times I used my MacBook throughout the last 30 days. It would be sufficient to have a list of all lid-open and lid-close datetimes (because I close the lid whenever I ...
1
vote
3answers
84 views

bash-command not found; for every command == fear i could screwed up the path

here is the output of echo $PATH /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/bin:/usr/bin and when I gave cat /etc/paths this is the output /usr/bin /bin /usr/sbin /sbin /usr/local/bin I am ...
0
votes
1answer
24 views

difference b/w various commands for getting root access in terminal

I have used linux:Kali for a while and to get root access i just needed to type: su in terminal. But in OSX i need to type in su - what does this - mean? If i just type su in terminal than i get ...
0
votes
1answer
41 views

iTerm2 cannot be opened even after SMC and PRAM resets

I got a gray screen due to "A kext releasing a(n) AppleHDAEngineOutput has corrupted the registry." Once the computer restarted, I cannot open iTerm2 anymore. A 1-lined terminal shows up without the ...
0
votes
0answers
12 views

Is there a way to set up a public/private key login in Terminal Remote Connection?

I have to log into a few different droplets on Digital Ocean and the Terminal Remote Connection app seems like a simple way to do it but it doesn't offer (an obvious) way to save the private key with ...
3
votes
1answer
63 views

In iTerm2 Command Click on URLS does not work when inside a tmux session

When not inside a tmux session, Command-Click on URLs works flawlessly. How can I make links clickable in iTerm2 when inside a tmux session? When hitting Command the mouse pointer changes to the ...
1
vote
1answer
210 views

How can I fix this CODESIGNING error?

After having successfully compiled bash and sh for OS X Mavericks our OS X Server's System Log is flooded every 2 or 3 seconds with: ... kernel[0]: CODESIGNING: rejected new signature for ...
1
vote
2answers
325 views

Accidentally removed all commands in terminal

I was following a tutorial and put in the following line: export PATH="~/.composer/vendor/bin/" Now no commands work at all, not even things like ls. What does the command do that I copy and ...
2
votes
0answers
75 views

New users can't see Apple applications from Utilities folder in Launchpad

I felt like giving my mess of Launchpad icons a fresh start. So I did defaults write com.apple.dock ResetLaunchPad -bool true && killall Dock On checking Launchpad, it had appeared to have ...
1
vote
2answers
58 views

Remove full name from login window

In Mountain Lion, my full name is displayed at the bottom of the log in menu. As I want to sell my computer, I was wondering if there is a way to hide this? (it's the only place that you can see it as ...
2
votes
0answers
52 views

MacVim: difference in syntax highlighting in terminal and GUI

I installed MacVim with homebrew, and specified the option to override system vim. It can be confirmed by looking at the version of vim in terminal. However, I don't understand why the terminal ...
0
votes
1answer
63 views

Launching Terminal Freezes the System for 5 Minutes in Mavericks

Only recently, when I launch Terminal in Mavericks, the system becomes unresponsive temporarily: the spinning wheel appears; I can still move the mouse pointer but nothing responds; if Activity ...
3
votes
2answers
32 views

See live report of process's status

Under Linux, I can use top to see a live report of what processes are running. An important field I use is the Process Status field, which shows whether a process is running, a zombie, sleeping, etc. ...
0
votes
1answer
21 views

Option+. prints ≥ instead of being recognized as a shortcut

Within the terminal, I used to be able to press Option+. in order to insert the last argument of the last command into the current prompt. On my new setup, pressing this combination simply prints "≥" ...
0
votes
1answer
201 views

How to uninstall Git?

Anyone know how to uninstall Git? I would like to uninstall Git using the Uninstall.sh file that came in the git-2.0.1 install bundle. I am unable to find the Uninstall.sh file using Terminal. When ...
1
vote
0answers
44 views

Terminal window is now blank

A Terminal newbie here. I had downloaded and installed Git, but when I typed "Git --version" I would get illegal instruction. I tried to uninstall Git and now my Terminal window in blank. How do I ...
0
votes
3answers
43 views

In Terminal, how to erase typed command quickly?

In Terminal, let's say I type a long command, but before I press Enter, I decide that actually I don't want to run this command, and want to run another new command instead. In such case, how to ...
1
vote
0answers
26 views

Click in finder vs “open -a” on command line

I have a file type (.mxl -- compressed MusicXML) which if I double click in Finder opens properly in my .mxl reader (Finale 2014.app) but which if I call "open file.mxl" or "open -a ...
1
vote
1answer
66 views

Switching between proxy and no-proxy config in .bash_profile

I have configured proxy settings (on mavericks) within $HOME/.bash_profile (purpose: to make npm, rvm, git use the corporate proxy) and the configs are as follows: git config --global http.proxy ...
0
votes
2answers
35 views

How to access a folder which name is composed of more than 1 word via shell?

I have tried with a simple command: cd Name of the Folder but it's not working, of course. I have also been searching on the web, but the methods I found are not actually working. How can I ...
0
votes
1answer
36 views

Confusion with sudo and multiple local accounts

I am having difficulties figuring out why certain things are much more complicated on a mac terminal than a standard linux shell.. Say I have two local accounts, one administrator called "adm" and a ...
0
votes
0answers
25 views

Run kinit as AppleScript promting for network username and password

I need to develop a small app (currently using AppleScript to do it) that I can send to users to run a "kinit" shell script command. This is on machines that are not bound to the domain, but needs to ...
0
votes
0answers
5 views

Unable to Erase USB / Trying to salvage

I am trying to salvage my USB but I keep running in to errors in Terminal. I attemped: diskutil verifyVolume /dev/disk2 Started file system verification on disk2 Checking file system ** /dev/disk2 ...
0
votes
0answers
30 views

Mac Terminal can't handle utf-8 characters

I've been having some trouble getting UTF-8 characters to display properly in Terminal, so I wrote the following program to run through and print out characters from Code Page 437 (which is the page ...
0
votes
1answer
19 views

How to run a script on login whilst being hidden

I have an applescript (scpt) script that I would like to run on login of a user. I would like the script not be visible in the dock, menu bar, etc. (This would probably mean running it in the ...
0
votes
1answer
209 views

How to trigger Notification Centre notification from JavaScript? [closed]

The other question asks the same but using AppleScript. Apple introduced JavaScript as a new language for Automation in OS X 10.10.