Questions tagged [terminal.app]

The terminal emulator included in Mac OS X.

Filter by
Sorted by
Tagged with
0 votes
1 answer
5k views

Can't change directories in terminal

I am trying to make a hello world program work on my Mac. Every time I go to change a directory I get a message that says: -bash: cd: documents No such file or directory exists. I know the documents ...
8 votes
1 answer
6k views

Ping more than 56 bytes on macOS

I am on macOS and using terminal to ping. How would I be able to ping more than 56 bytes? I tried to search but was not able to find the answer.
5 votes
3 answers
12k views

Syntax Highlighting in Terminal for Python?

Is there a way to turn on python syntax highlighting for Terminal.app on Mac OS X?
0 votes
1 answer
304 views

Can't Open .rtf When made in terminal 2013 MacBook Air Mojave 10.14.6

Whenever I make a .rtf in the terminal app, with the touch command: touch FileName.rtf I am only able to open the file with terminal and I am unable to open the file with any other program i.e. ...
1 vote
1 answer
718 views

Installing Pygame on Mac 10.11.6

As the title suggests I am having trouble installing pygame on my Mac. I've tried a lot different solutions. Such as using the steps in Python Crash Course to looking on stack overflow. I've tried: ...
27 votes
3 answers
23k views

How can I export all my Terminal.app settings from one Mac to another?

I want to set a group of terminal windows, each one with personalized colours, etc. How can I move the whole Terminal.app setting from one computer to another? Where are they stored? Can't see them ...
2 votes
1 answer
238 views

How do I keep using terminal while qlmanage is running?

I am using the command qlmanage -p (file) >/dev/null 2>/dev/null to open quicklook with a file and send both stdout and stderr to /dev/null. I would like the quicklook to stay up while I keep ...
1 vote
2 answers
10k 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: ...
4 votes
1 answer
2k views

How to set up a keyboard shortcut to open Terminal on macOS FOR FREE?

Tried looking all over the internet, they all require buying third party programs that support the feature, or suggest programs that don't work for me. Like Automator. Automator doesn't recognize ...
16 votes
2 answers
6k views

Why does Option+Left Arrow work in Vim, but not Right Arrow on Mac OS X?

Using Vim in Terminal on Mac OS X, my Option+Left Arrow skips words as expected, but my Option+Right Arrow does nothing. How can I fix this?
0 votes
1 answer
102 views

Download a video from news website

I was on the local news today and would like to download the video from their web page. I have been strugling with terminal for an hour now. What is the best way to download a video like this? https:/...
1 vote
3 answers
2k views

What is the Intel CPU feature code for Quick Sync?

I have an Intel(R) Core(TM) i7-4980HQ CPU @ 2.80GHz, which I know supports Intel's Quick Sync. I'm running the following command in the macOS Terminal to get all the CPU features: sysctl -n machdep....
8 votes
3 answers
37k views

View Shared Folders from Terminal

How can one list the shared folders of a server from the OSX Terminal? For example, I know that on server1, there are several shared folders, but to mount them, I need to know the name of these ...
8 votes
7 answers
10k views

vim is very slow on my Mac

I use vim on Mac OS X, but this is realy slow in Terminal.app and iTerm. Progress over many lines becomes tedious. some idea of solution?
0 votes
1 answer
123 views

Terminal (Mac) isn't behaving as it should on startup

Apologies for this rookie question, but I have no idea what to do or who to ask to try and fix this. While following a Codecademy course and trying to set up Git, I did something that I can't for ...
0 votes
1 answer
100 views

'man airport' executable in System Library but want it to be on /usr/bin/ fir global execution (MacOS

I want the binary airport command which is in /System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/ to be in /usr/bin using sudo cp source dest but BSD OS prevents me from ...
10 votes
1 answer
18k views

How can I select a line in the macOS terminal with keyboard shortcuts?

I've recently just switched over to macOS from Windows and I previously used PowerShell. In PowerShell, I could type out a command and hit ctrl/command a and it would select whatever I wrote, so that ...
17 votes
2 answers
9k views

Resume Zsh-Terminal (OS X Lion)

OS X Lion has "Resume" feature, i. e. when you reopen an app it restores all windows and their contents. That works for Terminal as well. But if you use Zsh instead of Bash it doesn't restore opened ...
0 votes
1 answer
653 views

How do you kill a Mac Terminal process over and over?

So I am in terminal, and let's say there is a virus that reopens every time I go to terminal and kill the process (Using ps -ax) it just reopens with a new PID. So how do you use "bash -c 'while [ 0 ];...
1 vote
1 answer
1k views

Why does PID of apps change/Is there a pattern?

Long story short, I'm trying to write a program in Python that will continuously run the command kill [PID of iTunes but from some testing with the command ps aux | grep iTunes | egrep -v "grep|...
0 votes
1 answer
150 views

Can't highlight line of zoomed tmux pane if pane border behind it

TL;DR: I can't highlight/select a line on a Z pane if, on the unzoomed window, there is a pane border behind that line I am using tmux 2.6, terminal.app, and High Sierra on a macbook pro (the ...
6 votes
5 answers
13k views

Is it possible to change the transparency of an already open window in Mac OS X?

Specifically, I'd like to change the transparency of an already open Terminal.app window. I know I can change the settings and then open a new window, but I can't figure out how to make an already ...
0 votes
2 answers
159 views

OS X file system anomaly: "ghost '?' in file names and unexpected symlinks

I've never seen this before - only found it because Time Machine kept failing (on Mac OS X High Sierra 10.13.6). A similar question was asked here ~7 years go but it was not solved (and he did not ...
1 vote
0 answers
186 views

Emacs and Gnu Screen Causing Line Wrap Problems

I have gnuscreen on with multiple "tabs" open. Emacs is on tab 0. When I tab to a different screen and return to Emacs, the lines do not wrap properly anymore. They blend into each other. If I have a ...
0 votes
1 answer
282 views

Move files two directories up & delete directories afterwards, using wildcards

I have a folder structure like the below. 1/data/f4aa9d39291bc37a7cacedfab656a941/x1.jpg The first slot and the random string in the third slot vary depending on the folder. (Let's say for this ...
2 votes
2 answers
4k views

Write an email with attachment with Mail.app from terminal

I would like to start writing an email with Mail.app from Terminal, and add an attachment. Something like this: macbook:~ me$ /Applications/Mail.app/Contents/MacOS/Mail -s the_subject -to email@...
1 vote
0 answers
114 views

(On a mac) - VirtualBox not able to access the .vmdk file for a usb virtual machine

When selecting my virtual disk in virtualbox, the error reads as in the photo. I have done this successfully while "sudo -b"-ing the executable in the app, but I need the file to be under my user.
2 votes
2 answers
4k 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
0 answers
486 views

Prevent Stretching of Terminal Background on MacOS

This may seem like a silly question, but I am modifying the appearance of the terminal application using the profiles menu on MacOS 10.14. I have a nice high resolution image that I have used as a ...
0 votes
0 answers
423 views

Disabling bracketed paste mode also disables the 'p' key?

Since upgrading to 10.13 (I think that was the release), macOS has supported bracketed paste mode. This is extremely annoying, because I frequently find myself getting garbage characters in Bash that ...
3 votes
3 answers
2k views

terminal.app: how to read the terminal window title

I have seen many questions about how to set the tab (or window) name, but how to get it? I have setup terminal to open 8 tabs, each tab having its own name (dev1, dev2, ... dev8) Is there any way for ...
1 vote
3 answers
223 views

How does Terminal.app detect a change to the terminal parameters?

In an answer to another question, Chris Page said that Terminal can detect when the terminal parameters are in a state that is likely to be for password entry. For example, the terminal may be in ...
0 votes
2 answers
788 views

Why does terminal output this every time I open it?

Every time I open Terminal, it outputs: -bash: e: command not found Is that normal? If not, how could I remove this? I'm using MacOs Mojave.
0 votes
1 answer
88 views

How to remember the purpose of specific Terminal tabs?

I always have multiple Terminal tabs open, each with a different purpose. I want to remind myself what that purpose is by echoing something (stored in a variable) whenever that tab becomes idle. (By ...
8 votes
1 answer
2k views

Less seems to no longer accept mouse-scrolls in the Terminal in macOS

For a few years now, Terminal.app in macOS has supported mouse-scrolling with the less program, but today I noticed that it is no longer accepting mouse scrolls, and only works with the Up and Down ...
0 votes
0 answers
333 views

Installing NLTK via terminal (sudo: pip: command not found) (Mac)

Mac 10.13.4 Trying to install NLTK (http://www.nltk.org/install.html) Using command sudo pip install -U nltk as stated in the above resource. Returns sudo: pip: command not found What does this ...
4 votes
2 answers
5k views

How to switch to the QEMU control panel with -nographics?

It seems that the terminal does not recognise CTRL+ALT+2 when typed, so I don't know how to quit the QEMU emulation, or switch to the QEMU control panel. I am running Mac OSX Lion, and I type $ qemu-...
-2 votes
1 answer
91 views

This prompt makes terminals wrap mid screen why? [duplicate]

I've the following PS1 prompt: export PS1="\e[1m\e[38;5;198m\u\e[0m @ \e[1m\e[38;5;208m\h\e[0m : \e[1m\w\e[0m\e[38;5;226m\$(parse_git_branch)\e[0m \e[1m>>>\e[0m " what happens is that when ...
0 votes
1 answer
33 views

How to reinitialize a CLI application between some interval (Like reinitiate elinks between some interval in the same terminal window)?

I am using Elinks for specific page where I have to reload the page between every one minute. To reload it I have to press Ctrl+R shortcut to work it out. Can I automate this procedure? I tried to ...
6 votes
2 answers
2k views

Enabling mouse scrolling in OS X terminal man pages

I have been trying to find a way for the OS X Terminal to accept the mouse input to scroll in the man pages. I have installed SIMBL and MouseTerm but this does not enable scrolling in the man pages. ...
1 vote
1 answer
455 views

Disabling the small tab titles in terminal.app?

In the mac default terminal app you can set a name for each tab. However, whenever processes run there's a smaller title that shows up at the side describing what process is running: Note how next ...
0 votes
1 answer
318 views

Mac OS Terminal - Change to Recent Directory

In Mac OS Terminal, is there a way to either have the Terminal remember the directory it was on after I last quit the Terminal application or easily "cd" to a recent directory? I often "cd" every ...
26 votes
5 answers
35k views

Cannot use F10 key in Midnight commander running in OS X's terminal

I connect to my server from Terminal in Mac OS X 10.5. When I run Midnight Commander there I cannot use function keys like F10 to close MC even I cannot use mouse to control MC. Any idea why function ...
5 votes
2 answers
4k views

In OSX Terminal freezes on text select

Once in a while, if I've been using the terminal and click on it to select text, the terminal freezes, with the mouse pointer becoming the spinning wheel. Activity monitor also shows 100% CPU usage. I ...
0 votes
1 answer
1k views

How to get Admin privileges to Application Support folder to create Symlink?

I want to have all of Apple Logic’s sample and loops on an external drive with a Symbolic Link in /Library/Application Support. I’ve done this before on a different Sierra system, and had no problems, ...
0 votes
0 answers
770 views

Cannot open /private/etc/hosts file form terminal

Problem with /private/etc/hosts file I was trying some software (MAMP PRO) and it has problems writing to the /private/etc/hosts file (the software has admin rights). I thought it was the software ...
1 vote
2 answers
241 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 expected....
2 votes
1 answer
2k views

Long form command line flags in Terminal?

I hope this is the right place to ask this question. So basically, I'm currently combing through some of the more commonly used Terminal commands, and I find it really hard to remember the short form ...
2 votes
2 answers
2k views

Mac lsof command find all processes for all users

A while ago my teacher asked me to create a script that would kill Minecraft anytime it came up. It worked when the user themselves ran it, but it didn't if it was at root level. Is there a command ...
0 votes
1 answer
114 views

What does Cmd+Up/Down do on mac terminal?

I'm curious in what Cmd+Up/Down does in the default mac terminal app. When I press the combination, it shows a yellow box around the previous command but doesn't actually select it. What are some ...

1 2
3
4 5
9