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
11 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?
0
votes
4answers
534 views

Is it possible to enable mouse right click via Terminal?

Is it possible to enable mouse right click via Terminal?
1
vote
1answer
30 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> ...
1
vote
1answer
23 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
1answer
143 views

Overtype mode in Terminal.app

As a Linux/Windows user, I am used to switching temporarily to Overtype Mode when using the command prompt. As a new user to the Mac world, I do not know how to change text input mode from normal ...
1
vote
3answers
870 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 ...
1
vote
0answers
30 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
30 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 ...
15
votes
2answers
9k views

How can I find the serial number on a mac programmatically from the terminal?

What command can I use to retrieve the system's serial number from the unix command line? As uname will output some information about the software and hardware, I would like to retrieve the serial ...
1
vote
1answer
13 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 ...
0
votes
1answer
23 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
45 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 ...
2
votes
2answers
594 views

Allow the Terminal.app to pass command key based keystrokes to terminal programs

I want to allow programs running in the terminal the ability to interpret the keyboard short cut Cmd + S I have already Remapped the Terminals' default binding of Cmd + S to Ctrl + S via the ...
3
votes
2answers
2k views

Bind <Cmd-S> in Vim

Is it possible to map to save in vim in a standard terminal? I know how to set it in my vimrc but am not sure if it is possible to pass it from terminal to vim instead of attempting to save the ...
5
votes
1answer
358 views

ssh -X does not work on Yosemite

Can no longer use X11 with ssh. Have XQuartz2.7.7 installed. Logging in with X11 via ssh gives the warnings Warning: untrusted X11 forwarding setup failed: xauth key data not generated Warning: ...
0
votes
1answer
17 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
23 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
28 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 ...
10
votes
3answers
33k views

How can I mount an SMB share from the command line?

I would like to mount an SMB network share from the command line (terminal); how would I go about that? I am using Mac OS X 10.6.4.
0
votes
1answer
27 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
1answer
48 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 ...
2
votes
1answer
42 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
200 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 ...
3
votes
1answer
32 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 ...
0
votes
0answers
23 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 ...
0
votes
1answer
542 views

Shell environment variables not available in GUI apps even if app launched via Command Line

It is expected that shell environment variables won't be available in GUI apps launched via Spotlight or Finder.app. But until Mavericks - I could launch an app via Command line such as: open -a ...
1
vote
3answers
21 views

open <TAB> opening finder window

I use zsh. For some reason, with zsh, when I type open <TAB> (which should list the files to autocompletion), it opens Finder in the current folder. I don't have anything aliased for that. I ...
0
votes
0answers
9 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
2answers
29 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
1answer
50 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 ...
1
vote
1answer
1k views

How to connect to a specific BSSID via Terminal?

My internet provider has a service where I share part of my wifi connection with other subscribers and in return I can use their wifi connection when I'm close to a subscribers router. It's very ...
0
votes
2answers
30 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
14 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
51 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 ...
1
vote
1answer
177 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
44 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
345 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 ...
24
votes
5answers
7k 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
46 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 ...
38
votes
2answers
52k 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?
0
votes
1answer
62 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
35 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 ...
1
vote
1answer
2k 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 ...
19
votes
4answers
3k views

Is there a way to suppress badge counts and the dock icon bounce for Terminal.app in Lion?

With the new state saving features (which I want to keep), the dock notifications are more aggrivating to me in Lion. Can I suppress the bounce and/or the notification badge functions? While I like ...
0
votes
2answers
35 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
28 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 > ...
2
votes
2answers
65 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 ...
0
votes
0answers
33 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
48 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 ...
1
vote
0answers
58 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 ...