The terminal emulator included in Mac OS X.

learn more… | top users | synonyms

0
votes
1answer
27 views

Terminal is showing computer name as a weird number?

I have a Macbook Pro and I use the terminal quite often. So as usual, I launched terminal today and I saw: Last login: Sun May 8 13:20:40 on ttys000 172-15-43-17:~ koraytugay$ Until today, I am ...
-1
votes
1answer
24 views

Find and move QuickTime files

I have a serious number of QuickTime files in a series of deeply nested folders (by date, by provider) on a connected server. Is there an easy command that will both find the file (I know the exact ...
1
vote
1answer
23 views

can't find zsh history on OSX 10.8.5

When I log into the Terminal app on OSX my default shell is /bin/bash. Entering echo $HISTFILE points me to /Users/monkeybrain/.bash_history and head $(echo $HISTFILE) shows me that the file contains ...
0
votes
1answer
21 views

What is the right way to launch tmux in Terminal.app on OS X

I have ... if [ "$TMUX" = "" ]; then tmux; fi ... in my .zshrc which works great for ssh connections. However, I have trouble with Terminal.app. When I type exit, tmux closes, but I am left in an ...
3
votes
1answer
38 views

get url of opened tab with terminal app on OSX

I have a tab open in Google Chrome. Is it possible to get or check it's url from terminal? I am running osx. Page title will also do.
2
votes
3answers
34 views

Is there a way to copy text in htop on Mac OSX?

I wanted to copy all of the process information related to a specific program/software (Adobe in this case, other ones in the future) and so I tried holding Shift as mentioned here: Is there a way to ...
0
votes
1answer
44 views

Mouse-scrolling nano in Terminal.app

In the OS X Terminal, we can use the mouse or trackpad to scroll in programs that use the alternate screen, such as less. This used to be possible in nano as well, both for local sessions as well as ...
0
votes
0answers
24 views

Still Lost on Blocking TCP Port Connections form Terminal

I'm still not 100% understanding what to do in Terminal to block certain URLs for specific ports. And I don't want to use Little Snitch. I really want to wrap my head around this. So if someone can ...
1
vote
1answer
106 views

Script to create folder with same name as file and move file into folder

I have lots of individual files: /File 01.txt /Picture 02.png Is there a terminal command that would do this so I end up with this: /File 01/File 01.txt /Picture 02/Picture 02.png/ I'm on a Mac in ...
0
votes
0answers
28 views

OS X: `scutil --nc start` does not connect PPPT VPN

From an answer to this question I have tried the following to connect to a PPPT VPN network service: scutil --nc start 'us.justfreevpn.com' I just get this popup and no connection: scutil --nc ...
1
vote
1answer
29 views

Keyboard shortcut to scroll Terminal one line at a time

I'm using Terminal on OS X El Capitan. I want to scroll my terminal output by lines (not using page-up or down). I'm pretty sure I used to do this with Cmd-up/Cmd-down, but now that appears to just ...
0
votes
0answers
19 views

open ssh server file automatically with apple script

Hello respected persons , i am trying to build a apple script which first open terminal login in ssh with details and after login it open a python script which is on ssh server automatically . i ...
0
votes
1answer
41 views

Sign into WPA2 network that requires a username from mac terminal?

I am trying to sign into my school's network through terminal. It has WPA2 security, however it requires that I put a username along with a password. Is this possible to do from terminal? Side note: ...
0
votes
0answers
252 views

ACT!: Resolution of the dependency failed, type=“Act.UI.ActApplication”,name="

Issue Resolution of the dependency failed, type="Act.UI.ActApplication",name="".Exception message is: the current build operation (build key Build Key{Act.UI.ActApplication,null}) failed: The process ...
1
vote
1answer
83 views

Shutdown Windows 7 PC from Mac terminal

How can I shut down a Windows 7 PC remotely from a Macbook Pro, OSX El Capitan? I saw this question, where the most upvoted answer recommends using this command: net rpc shutdown -I <IP of ...
2
votes
2answers
147 views

Is there an OSX terminal command (el capitan) to disable / hide panes in System Preferences?

been Googling for the better part of an hour now and not too familiar with OSX ways of doing things via command line. If anyone has a great resource site for OSX system commands / switches that would ...
1
vote
1answer
51 views

Quit OSX Terminal on Last Window Close

I have my preferences set so that CTRL-D closes my current window, but I'd like the Terminal application to quit if I close my last/only terminal window. iTerm2 can do this. Can Terminal do it?
1
vote
2answers
172 views

OS X El Capitan 10.11 Terminal 2.6 won't open new tabs with same working directory

I am using the default settings for Terminal, but when I create a new tab my working directory is always set to my home folder instead of the current working directory of the previous tab. Here's an ...
0
votes
2answers
120 views

Find out all IP addresses of all Computers on Network

I want to list all IP addresses with their Computer's names (if my IP was 197.577.52.4: 197.577.52.4 - Luca's MacBook) through Mac Terminal or Mac Software. I tried many terminal commands, but it ...
0
votes
1answer
47 views

What key on a Mac corresponds to the @ symbol in Windows in the Mac Terminal

One of my users is using a mac to connect to a Windows remote terminal. When trying to enter email addresses the @ symbol on the mac is typing a " symbol. Which key on the mac will type an @ symbol ...
1
vote
1answer
39 views

How can I change the color of only the command I type, and not the output following it?

export PS1='\[\033[1;31m\]\u\[\033[0m\]:\[\033[4;31m\]\W\[\033[0m\] \[\033[0;33m\]\$' This is what my prompt looks like at the moment. However, this paints everything after the $ in yellow too. I ...
0
votes
1answer
164 views

OS X writing on NTFS filesystem: files disappeared after ls -l@

I have an NTFS hard drive that I have written files to after following the instructions here to allow for writing to NTFS. I noticed that if I write files to NTFS, after disconnecting the drive and ...
2
votes
3answers
357 views

How to run Python script in a terminal window by double clicking it?

I am running OSX, and I am making an app that has a Python program in the Resources folder, the Bash script calls the Python script to run when the app is launched. The script is in the MacOS folder ...
0
votes
0answers
42 views

Cannot remap Control-<key> to another Control-<key> using .inputrc in bash + Terminal + OS X

I'm trying to remap Control-g to Control-c for use in bash in Terminal.app in OS X. This is because Control-g in Emacs is 'abort'/'cancel', and my ingrained muscle memory leads me to hit Control-g on ...
0
votes
1answer
67 views

A script that will make a Mac join specific WiFi network and enable remote login/management

I have physical access to a Mac Pro, but it has no monitor and I want to access it remotely. I don't know what state the Mac was left in (network connection, sharing prefs, etc). I am pretty sure I ...
0
votes
0answers
40 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 > ...
2
votes
2answers
110 views

How to fix files and directories in Mac terminal from being inverted?

I recently was going through some directories and realized that my files/directories are inverted as opposed to being alphabetic from top to bottom. As the terminal is after an ls -al: Public ...
0
votes
0answers
96 views

MAC OSX Terminal (TERM)

I am using debian wheezy, I installed mysql but when I login to mysql using command mysql -u root -p and then after typing my password, I don't see any output. According to log file I am successfully ...
0
votes
2answers
70 views

understanding the -R flag and * in rm commands

When using the rm command in OS X 10.9 I accidentally deleted an entire disk. As I understand the command I used: sudo rm -Rfv /Volumes/Disk/AppName\!\ Whatever\ X.app/Contents/Resources/* ...
0
votes
1answer
77 views

How do I remove SSHFS's Terminal library?

I installed OS X FUSE and SSHFS from the official site. Now whenever I type in ssh xxx@xxx.xx, the terminal window is different. Some folders are blue and the window is different; it's not the way it ...
1
vote
2answers
44 views

How do I to modify Automator Service ditto command?

Using and Automator Service and an AppleScript that is redly available and exists on this thread of but a "GUI" around ditto. The solution works well, however, I am not getting the behavior I ...
2
votes
0answers
135 views

OS X: let scutil use stored secret when connecting L2TP VPN

This is a follow-up question of Start configured VPN from command line (OSX). I tried the answer by @encoded, which suggests the following command: scutil --nc start ...
1
vote
0answers
82 views

OS X terminal.app selection color when window inactive

I am using a solarized color scheme in terminal.app. When I select text it looks great, and I am able to change the color of the selection in the preferences. But when I move focus to another ...
0
votes
1answer
46 views

How can I stop Drobox sync during the day and automatically start at night

I'm trying to stop the Dropbox daemon from running during the day. I'd like to start it and perform a sync around 6 pm daily. I'm running Mac OS X Yosemite 10.10 on an iMac 27'.
3
votes
1answer
133 views

How to display github emoji codes in Mac Terminal?

I want to display emoji codes from http://www.emoji-cheat-sheet.com/ (e.g. :+1: ) inside github commit messages when doing git log. I use Mac Terminal app.
1
vote
2answers
85 views

Changing the default action when clicking on links in Terminal.app

Previously I've been able to open links just by clicking them on Terminal.app. After updating my OSX, the terminal now gives Quick Look as default option for links. Is there any way to disable Quick ...
1
vote
2answers
332 views

Awk to merge two files using hash

I have two files of the same length, and I want to swap out one files 3 columns with another file's contents. I want to print the following: f1Col1 f1Col2 f1Col3 f1Col4 f1Col5 f1Col6 f2Col1 f2Col2 ...
0
votes
2answers
139 views

Redirect stderr to second terminal / tty

I've tried things like rse to differentiate standard-output and standard-error streams from a program; but I'd really like the option of viewing the two in separate terminals, without redirecting to a ...
0
votes
1answer
832 views

Mac Command Line Open PDF to Specific Page

The goal is to use command line to open a PDF file to a specific page. The more general question is how do I find out what args are available for any given app? I am able to open a pdf file in Mac OS ...
0
votes
1answer
30 views

Doubled terminal emulation sessions renders foreground and background of characters the same color from the destination

I have some no graphics card (“headless”) server that I have to operate via the serial port as the console to install Linux, VMware, and other OSes. For a terminal server I use a Linux box with a USB ...
0
votes
1answer
105 views

How to close open (20+) notification windows from terminal or disable HP Alerts?

For some strange reason an app called “HP Alerts” filled my screen overnight with notification windows telling me one of my inkjet cartridges are low on ink. I have now disabled these notifications ...
0
votes
1answer
24 views

print names of files in folder from path in terminal

I was making a program and want to see all the items in a folder by giving it the path. my program uses the terminal so the commands are the same. something along the lines of echo ...
0
votes
1answer
465 views

OS X command to make current terminal window full screen

I am trying to make a bash script to open up my working environment. I want 1) Open up Terminal.app and type a command like "time_to_work" 2) This command will: a. open up sublime text open ...
0
votes
2answers
193 views

Does closure of Terminal stop remote script execution?

I have NAS (running Linux) and Macbook. What if I start the OSX Terminal application, connect to my NAS thru telnet and execute there some script: python myscript.py > log.txt Will it continue ...
1
vote
1answer
890 views

How to mount/unmount webdav server directory using Terminal

I use OS X 10.10.1 and I want to mount a HTTPS webdav server directory as a volume on my local machine using Terminal. I found this utility -- mount_webdav -- which seems to work - I created a ...
1
vote
2answers
56 views

Make perl regex search exit with failure if not found

With grep I get a failure return code/exit status if no result is found. How can I do the same thing with perl? Basically, I would like to change the following so that it exits with status 1 if no ...
0
votes
1answer
100 views

OS X terminal eating the shift key

I'm switching from iTerm 2 to the stock OS X 10.8.5 terminal (work policy, iTerm isn't on the approved software list). In my tmux configuration, I've mapped shift-left and shift-right to change ...
6
votes
1answer
15k views

How would I restart Apache using the Terminal in Mac OS X?

This is what I’ve done but I’m really new to terminal: Jeremys-MacBook-Pro-2:~ jeremyoconnor$ apachectl restart This operation requires root.
0
votes
1answer
106 views

pstopdf mac terminal width and height options

Are there any options which set width and height of outcome document of pstopdf command in terminal? I've used a2ps command to convert my Java code files into .ps file, now I want to convert .ps file ...
1
vote
0answers
389 views

Midnight Commander function keys not working

I'm using Midnight Commander in a Mac Terminal. I'm using PC keyboard, so function keys work as F1-F12 keys, but they don't work in MC. I tested what character sequence is sent with each function key ...