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
2answers
67 views

multiple terminal launchers on the dock?

I have a terminal shortcut on my dock which I use every day. Depending on my monitor setup (extra, 2 extra, etc.) to my Macbook Pro, I like to have a different launching scheme (either 4 windows or 5 ...
0
votes
1answer
18 views

Listing only Mobile Accounts in terminal

I have a way to list all the accounts in Mac via terminal using the dscacheutil command. Is there any way to get to know if a particular account is a mobile account or not from the terminal?
1
vote
1answer
142 views

Changing Info.plist values via terminal

I am making my own application and I would like to change some values in my Info.plist file using terminal. I have tried doing defaults write Info.plist CFBundleExecutable -string <Executable> ...
8
votes
3answers
939 views

How much data has been written to my SSD over its lifetime?

Is there a Terminal command which will show me how many GB has been written to my SSD through the whole lifetime of the disk? I'm asking because I want to find out how many cycles have been done. SSD ...
1
vote
1answer
25 views

Customize existing keyboard layout

I need to invert the behaviour of 2 key in my keyboard ("<" is inverted with "\"). I can do this easily with "Karabiner", but for me is a solution without an explanation. I'm linux user and ...
1
vote
0answers
60 views

How to Hide All users from fresh boot With FileVault 2

With System preferences>Users & Groups> Login options> display login window as "Name and Password" normally you need to type out the user name and password to sign in. With FileVault2, when ...
1
vote
1answer
98 views

In Terminal, how do I add a host key to the file known_hosts?

In Terminal, how do I add a host key to the file known_hosts? Also, how do I remove a given host key from the same file? I trying to ssh into a computer at my school and when I type in the command ...
1
vote
1answer
22 views

Skip first terminal beep and to display ambiguous filename expansions

Pressing TAB in the terminal (and in fact some surprise places in OS X's GUI!) either completes the only filename with the prefix provided to the immediate left of TAB, and when there are several such ...
2
votes
1answer
172 views

Delete key doesn't work in vim on iTerm2

Firstly, I typed some thing on insert mode, like Hello At this stage, if I didn't exit from insert mode, delete works and can delete the whole word if I want. If I quit insert mode, and open ...
0
votes
1answer
32 views

How can I copy a selection of files from multiple folders into multiple folders?

I am developing an Android-app in OS X, and want to use some third-party icons. I have downloaded and extracted the icons into this folder structure: drawable-mdpi ic_icon1.png ... drawable-hdpi ...
2
votes
1answer
405 views

Tilde (~) File in Macintosh Directory

Last night I discovered what looks like an unusual file named "~" (tilde) in the root of my "Macintosh HD" directory on my MacBook. Finder reports the file is 2.2MB in size, of kind "TextEdit.app ...
0
votes
1answer
54 views

How to run Unison through automator?

I like to set up unison through Automator to run in the background to sync up two of my folders in a dropbox-like manner, but Automator apparently fails to run unison through shell script. I have ...
0
votes
1answer
39 views

I get “command not found” when running a new shell, (and none of my aliases, etc. are noticed). What's wrong with my .bash_profile?

Terminal.app Here are the my preferences settings: !/Users/Parker/Desktop/0.png !/Users/Parker/Desktop/0.5.png !/Users/Parker/Desktop/1.png !/Users/Parker/Desktop/2.png Here is the contents of my ...
0
votes
0answers
186 views

How to adjust a desktop picture through the command line (terminal)?

So after some research, I came along this wonderful little gem for setting a desktop background through the command line. osascript tell application "Finder" set desktop picture to POSIX file ...
0
votes
1answer
251 views

How to repair and/or reinstall Homebrew safely?

I am trying to repair Homebrew. I recently tried to reinstall it but when I typed "brew doctor" My output was: shell-init: error retrieving current directory: getcwd: cannot access parent ...
0
votes
0answers
36 views

Can't ssh into iPhone

I used to be able to do this a while ago, but now, for some reason I can't. I have installed and later reinstalled OpenSSH on my iPhone. ssh root@10.0.1.16 Returns that the connection to 10.0.1.16 ...
3
votes
1answer
75 views

Making directories list first in terminal with `ls`

Is it possible to make the default of Terminal such that when I use the ls command it lists the directories first and then the files? I figured out that this can be done by using coreutils and the ...
2
votes
1answer
53 views

Open Terminal.app but hold open?

I have a shell script that runs on my mac (./go), it opens a ssh session on a raspberry pi then runs a script which streams video from the raspberry pi to a UDP port on the mac. I also need the mac ...
0
votes
1answer
741 views

How to find out what the Wi-Fi password is, of the network that I'm connected to, without the admin password?

I logged on to a Wi-Fi network on my friend's computer and they forgot their admin password. They want me to find out the password, but I can't get into the keychain. But I am still connected to the ...
0
votes
0answers
16 views

How to perform a find with Chinese characters?

I'm ssh'd into my iPad 2,1 running iOS 8.1. I'm trying to do a find for "PP越狱": fermat-ipad:/ root# find /var/mobile/ -iname XXX When I enter the Chinese name for XXX, I get: (arg: 1) find ...
0
votes
1answer
36 views

Use shell wildcard OR with diskutil

I have the following terminal command, which matches volumes called A001R45R, A123R45R, etc. diskutil eraseVolume HFS+ FreshMag /Volumes/*R45R But I also want it to match volumes called B001R4G5, ...
0
votes
2answers
46 views

Terminal: how to make tab notify somehow when new text received

I'm familiar with some Terminal's, like in Linux, that have an option to "flash" or "change color" the tab's title text, whenever new text is "displayed" on that screen (for instance, tailing a file). ...
0
votes
2answers
270 views

Any Pdfinfo -terminal tool in OS X?

I am trying to find any default tool in OS X by which you can see in Terminal the encodinf of a pdf file. You can do this visually by clicking info on the file. For instance, such files which have ...
0
votes
1answer
112 views

How to get the wi-fi connection status from terminal?

Sometimes, when waking up my mac, I get the message "Alert: No internet connection" on the Wi-Fi icon. I can solve it everytime by turning Wi-Fi off and on again. Is there a terminal command I can use ...
0
votes
1answer
58 views

todotxt color not working on iTerm2

Is anyone here using todotxt and iterm2? I'm having a weird issue. When using default terminal app in OSX, my todotxt color is working just fine. But when I switch to iterm2, the color is not ...
1
vote
1answer
338 views

Can I safely run command-line apps in single-user mode?

Obviously fsck is pretty safe to run in single-user mode. I'm using gtypist to learn touch typing and would like to be able to run it in single user mode so that I don't have to load the whole OS just ...
3
votes
1answer
57 views

Mount command can not contain Chinese characters

I encounter a problem, I want to mount a shared remote directory, but the url has Chinese characters. mount_smbfs //user:password@192.168.1.168/图片 /Volumes/picture 图片 are Chinese characters, ...
3
votes
2answers
1k views

How do I stop a particular service from running?

I had previously installed an app for syncing my Android phone with my Mac. I deleted the application, however, today when I checked the system logs, I found out that its running every 10 seconds. How ...
1
vote
1answer
121 views

running emacs on a terminal: problem with meta-key

I am on Mavericks and I am running emacs 24.4.1, but I have the same problem also with 22.1.1. When I open mac on a terminal on the remote host, it does not recognise option key (alt) like the meta ...
0
votes
0answers
97 views

Are copies using rsync faster than using Finder?

So - I have a question about using rsync in Terminal. I need to move a Time Machine backup off of an external drive in order to reformat it. The 'backups' folder is nearly 300 GB. At first I tried to ...
0
votes
2answers
68 views

Apple terminal no home and end key - Use cmd left or cmd right

How do I make ⌘+← and ⌘+→ move the text cursor very left and right of the terminal entry line. This keyboard shortcut works on most things on my mac book but not the Terminal. Usually I use the home ...
0
votes
1answer
278 views

How to launch an iOS Simulator with Safari open using a single command?

I am looking for a solution to launch the iOS Simulator from command line with Safari launched by default. Launching the simulator from command line is easy. So is the launching of Safari. But I want ...
0
votes
2answers
160 views

Open terminal via AppleScript

I'm tring to write a shortcut script in spark for opening the terminal. on run {input, parameters} tell application "Utilities/Terminal" // tried Utilities:Terminal and Terminal too reopen ...
1
vote
1answer
88 views

Mailto links on websites open iTerm instead of Mail

In both Chrome and Safari mailto: links open up iTerm instead of Mail. This seemed to have started happening right around the same time I added a shortcut through Settings > Keyboard > Shortcuts > ...
0
votes
0answers
98 views

Help with Unix command in Apple Remote Desktop

I'm trying to remotely run a script in ARD on multiple machines at once. The problem is the script prompts the user to type in 'y' before running. I can't figure out how to answer the prompt when ...
0
votes
1answer
117 views

Folder with Question Mark On Startup, Don't Know the Firmware Password

So my buddy's macbook one day just booted up with a folder with a question mark in it. Its an old laptop from work, which he doesn't work at anymore. I've been trying to help him out, but I've ...
2
votes
2answers
103 views

Can't delete files from Trash

I'm trying to empty my trash, and it seems that I having some problem with encoding: MacKassner:501 kassner$ rm -Rf t/t/ rm: t/t//t: Directory not empty rm: t/t/: Directory not empty Ok then, let's ...
1
vote
0answers
108 views

Problems with a simple shell script

I've faced with the problem of using simple shell commands like AWK and print within my sh scripts on my Mac ( the same script works perfect on the Linux). For instance below script which seek for the ...
0
votes
0answers
92 views

Why am I getting command not found even though path to command exists in PATH variable?

On Mac OSX 10.10.1 I get command not found for anything installed in /usr/local/bin (however command is found if I use sudo) PATH variable contains this path. for example pip. Here are some lines from ...
2
votes
1answer
162 views

Access Keychain Access password generator (password assistant) via Terminal without the user interface

Is it possible to access, the "password assistant" also known as the password generator located inside the Keychain Access via terminal or otherwise? Steps to access in UI: Launch Keychain Access ...
0
votes
1answer
202 views

accessing Keychain Access from terminal - OSX

I am on OSX and using my terminal to access my Keychain Access. So I use this command security find-internet-password -a myaccount -s myservice -g and it works correctly but before I can get the ...
0
votes
0answers
20 views

how to check last time that OD Policy or MCX Refresh was run

Is there a method to get the date and time of the last OD policy update or MCXRefresh on a 10.6 or later Apple computer from the terminal?
0
votes
0answers
45 views

How Do I Override the Addition of the folder for the Server app version of PostgreSQL?

I am currently using RVM for managing different gemsets for different versions of Ruby. RVM has made changes where the RVM folders must be listed first or else I have to manually set the gemset each ...
2
votes
0answers
32 views

Traceroute Terminal vs Network Utility different?

Why would a Terminal traceroute #.#.#.# show different results than using Network Utility.app? Here is the first 3 hops. I am connected to PIA VPN but regardless both methods should show the same ...
2
votes
1answer
50 views

List hung processes in Terminal?

Is there any way to list only those processes which are hung, i.e., "not responding", in Terminal? The only way I know to do this is look in Activity Monitor for the ones in red.
0
votes
1answer
121 views

Create custom shortcuts and assign them to F keys

I recently migrated to OS X 10.10 from Ubuntu 14.04 (Linux). In Ubuntu, I could make any key of my keyboard do anything I liked. I used to have the F1, F2, and F3 keys set to function as the red, ...
0
votes
1answer
131 views

After Installation of Yosemite some command line tools not found!

I just did a clean installation of 10.10. Now some command line tools won't work anymore. In example gshred is not found anymore (always worked on Lion) and man gpg gives "No manual entry for gpg". ...
1
vote
2answers
118 views

Why does my command line prompt now beging with “vpn”?

I was just (unsuccessfully) playing around with setting up a vpn in OS X Server, and now all my new terminal prompts begin with "vpn" followed by my user name. Anyone know why this is the case and how ...
0
votes
1answer
316 views

Using kdiff3 as default git diff viewer on Mac OS

I have kdiff3 installed on my Mac (Version 0.9.97, 64 bit). Here's my ~/.gitconfig: [filter "media"] required = true clean = git media clean %f smudge = git media smudge %f [user] ...
2
votes
3answers
181 views

Why are my command line utilities running so slowly on my Mac?

I have just noticed that command line utilities such as ls (/bin/ls), touch (/usr/bin/touch), cat (/bin/cat), etc. are very slow when I run them from Terminal or iTerm on my MacBook. For example: ...