Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [terminal.app]

The terminal emulator included in Mac OS X.

1
vote
0answers
66 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
0answers
14 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 ...
0
votes
0answers
22 views

Use iterm2 or terminal app which can filter results, not just highlight results

Right now I am on MacOS, and I am using iterm2 as my terminal app. It's got some great features but one limitation is that when I use ctrl-f to search for something, it will highlight the results in ...
0
votes
2answers
60 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.
5
votes
1answer
197 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
0answers
7 views

Terminal.app next/prev window also changes tab?

I'm a long time Terminal user on macOS and I usually have 2-3 windows open, each with multiple tabs. I used to be able to do ⌘-Left Arrow or ⌘-Right Arrow to switch windows, and hold shift to switch ...
0
votes
1answer
61 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 ...
0
votes
0answers
21 views

byobu-launcher-install ignoring no-logout option

My Current config : MacOS High Sierra, Terminal.app, fish shell. byobu-launcher-install -n Issue: When I try to detach from byobu using 'ctrl-a, d' byobu detaches and fish shell session exits along ...
0
votes
1answer
70 views

I can't run Eclipse from the command line

I have an installed copy of Eclipse Oxygen installed on my MacBook running macOS 10.13.4 using the Oomph installer. I am trying to write a shell script that uses the Eclipse command line tools. (I ...
0
votes
0answers
143 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 ...
1
vote
2answers
231 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....
0
votes
0answers
16 views

Using profiles for terminals at the same time

I want to be able to use Terminal (I am using iTerm2 and Oh My ZSH) just like Google Chrome, where I have several profiles so I can use different extensions and all my logins and history is kept ...
0
votes
0answers
48 views

Mac ssh terminal set echo on after connection

I have a custom SSH server implemented. Where I have not handled echo, i.e. once a user connects and logins successfully using a client (let's say Putty) he will not be able to see the characters he ...
-2
votes
1answer
52 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
0answers
83 views

iTerm2 shares the same instance across all macOS workspaces

Suddenly after a computer restart, my iTerm behaves differently, as the same iTerm2 instance is shard across all macOS workspaces. If I open a new tab or open a new windows of iTerm2, these will ...
1
vote
1answer
34 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
1answer
135 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 ...
0
votes
0answers
126 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 ...
0
votes
1answer
198 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
0answers
29 views

“Open With Other…” via the Terminal on Mac

Is there a way to open the "Open With Other..." dialog via the Terminal? I.e. the dialog that is shown if you right-click the file in Finder and choose "Open With" > "Other..." Note: I'm not looking ...
0
votes
0answers
33 views

Persist terminal tab names in OSX

I use the default terminal.app with zsh on osx, and I typically have many tabs open and like to give them names so I know which tab is for what. However, when I run commands that have specific ...
1
vote
2answers
97 views

Open Terminal with predefined tabs

Is there any way to open Terminal with predefined tabs? I have 5 most common paths that I usually use and I want Terminal to open with these paths opened in different Tabs. I guess this should be ...
2
votes
1answer
437 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 ...
0
votes
1answer
2k 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 ...
0
votes
1answer
55 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 ...
0
votes
2answers
991 views

Force quit Terminal.app using Apple Script Editor

I'm trying to force quit my Terminal.app using Apple Script Editor tell application "Terminal" quit end tell tell application "System Events" key code 53 end tell It does not seem to work. ...
0
votes
1answer
44 views

How can I revert the Terminal to its keyboard defaults?

OK, so this is embarrassing. For some time I was connecting to a remote server from the OS X Terminal. On the remote server I needed to run emacs -nw. But I kept exiting the Terminal—and killing Emacs ...
3
votes
2answers
1k views

Copy the output of the last command in iTerm2

With the default Terminal.app, one can select the previous command output with Cmd + Shift + A and then copy it with Cmd + C (source). Is there a similar shortcut for iTerm2?
0
votes
0answers
115 views

How to stop and start Adobe Creative Cloud in Apple Terminal?

I've tried using osascript -e 'tell application "Creative Cloud" to quit but get the error message 17:18: syntax error: Expected expression, property or key form, etc. but found unknown token. (-...
1
vote
0answers
286 views

kernel (AppleIRController) error in os sierra console and how to remove AppleIRController kext

When I have console open for a while, I see the following recurring error (about every minute or so): error 11:54:38.442473 -0400 kernel stateNumber is On error 11:54:44.443962 -0400 kernel ...
0
votes
1answer
438 views

MacOSX : Terminal App Issue : malloc: *** error for object 0x7ff213225110: pointer being freed was not allocated

I need help with this issue shown in the picture above. I have even restored with time machine to earlier time but still the same. I think or believe related with Xcode. malloc: error for object ...
4
votes
1answer
643 views

Convert date from YYYYJJJ in OS X?

I have a bash script that takes a date string containing the day-of-year (Julian day) and converts it to another format. The %j format character isn't parsing the string as I'd expect per the docs (...
0
votes
1answer
75 views

How do we select text the Terminal way while inside Vim?

For example, when outside of Vim, I can select text then press cmd+c to copy text. But when I am inside of Vim, I can no longer do that because the mouse interacts with Vim. Is there some way to get ...
0
votes
1answer
22 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 ...
0
votes
2answers
75 views

Extra Character Display in Terminal Command Prompt

I started to see an extra bracket on my Mac Terminal I thought it is because of my .bash_profile that I might have broke when I modified it. But NO. I comment the whole file out and I still see ...
1
vote
3answers
111 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
1answer
55 views

why terminal auto duplicate letter when I type -

I just got this weird behavior, does anyone know how to stop it? When I type 'dir' then '-' terminal gives me this 'ddir-' And here is the video of that https://youtu.be/lGsFB68zVIo
0
votes
0answers
61 views

Mac os activate click on tap gesture through terminal

I want to install mac os sierra, but my trackpad doesnt work with clicks, and I cant find a way to select my hard drive as a destination for the installation during the installation setup with the ...
0
votes
0answers
197 views

OSX: rm -fr gets No such file or Directory when run from .Core API

Running the above command via a CORE API works fine for most directories but not for one. Running the command from the terminal works fine. doing a ls -l on the directory to be deleted: drwxr-xr-...
3
votes
1answer
753 views

Stop arrow keys typing letters in vim insert mode

When I hit the arrow keys in insert mode I get characters instead of navigation: I'd like to be able to use the arrow keys to navigate. Note: I recently upgraded to macOS Sierra. Maybe something ...
0
votes
0answers
99 views

Mac El Capitan Terminal Unknown OS Warning

Just upgraded to El Capitan, on opening Terminal I get the following warning: Last login: Wed Aug 10 12:17:49 on ttys000 Warning: unknown OS type Darwin.15.6.0 mdurre-mac:~ mdurre$ Otherwise ...
0
votes
2answers
104 views

How to open Mozilla Developer Edition from terminal

I wish to open Mozilla Firefox Edition app with index.html from terminal in my mac but don't know the command. firefox index.html command doesn't work.
1
vote
0answers
379 views

Is it safe to cancel hdiutil compact?

A sparse image is a type of disk image file used on Mac OS X that grows in size as the user adds data to the image, taking up only as much disk space as stored in it (quoth Wikipedia). If a sparse ...
-2
votes
2answers
49 views

What's the use of a script that is run after login? [closed]

In several different network computers (school/company/...), I noticed that a script is run in the terminal after logging in with your personal account. Why would a network administrator run a script? ...
3
votes
1answer
578 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
60 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
698 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
2answers
677 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
188 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
229 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 ...