Questions tagged [terminal]

Questions about the Terminal application or its terminal emulation should use this tag. Use **command-line** for questions about shells or command-line programs that do not specifically involve Terminal.

Filter by
Sorted by
Tagged with
0 votes
0 answers
20 views

Unwanted man page widget

Since my last update, to macOS_14.3.1_23D60 on 8 Feb 2024, I frequently have an unwanted man page widget appearing in front of the Terminal.  The odd thing is, it is almost always empty, and usually ...
WGroleau's user avatar
  • 4,794
0 votes
0 answers
25 views

Surprise changing of Terminal background

I was doing various things with Terminal but at one point, without typing anything, the background behind the text changed from white to pink.  No settings windows (nor any other window) had appeared. ...
WGroleau's user avatar
  • 4,794
0 votes
0 answers
14 views

Terminal will not accept password after removing Extension Settings from touchbar

I wanted to remove Extension Settings, which I intensely dislike, from the Touch Bar, and found the excellent answer to Removing "Configure in: Extensions Settings" from Quick Actions on ...
Ken Bolland's user avatar
1 vote
1 answer
24 views

How do I disable any kind of function from the f-keys? [duplicate]

As the question implies, I need some help about the f-keys, more specifically with the f9 key. I have a program that runs in terminal, and I need the f9 key to be completely function-less in order to ...
KHeT's user avatar
  • 11
0 votes
0 answers
50 views

How did my hostname change? Where can I see this change being made/what time it changed?

today I logged into my mac and opened zsh and had a big shock! Normally my terminal prompt is something like: sidharthghoshal@macbook-pro But today I found it was : sidharthghoshal@HaeLims-Air I don't ...
Sidharth Ghoshal's user avatar
1 vote
1 answer
72 views

Does this `last` output from macOS terminal describe a remote access login to my computer?

My computer was up to some strange things. I used the "last" command to check login activity and this is the result. Not only have I never seen it before this, all of my previous logins were ...
IDoNotUnderstand's user avatar
1 vote
0 answers
38 views

How do I communicate with a host USB device through Mac's Terminal?

I have a Siglent SPD3303X-E power supply that I am attempting to interface with. I am running a Macbook Pro with OS Sonoma 14.3.1. I've read online about what SCPI commands to send to the power supply,...
JenkelandTonic's user avatar
0 votes
4 answers
80 views

Simple, free GUI application for running shell scripts

I need to teach a non-technical person how to configure and run a series of shell scripts. This person has never used the Terminal before. The shell scripts look something like this: configOption1 = &...
Wowfunhappy's user avatar
  • 7,373
0 votes
0 answers
10 views

How to switch foreground app / focus while using Terminal with "Secure Keyboard Entry"?

I am running Terminal with "Secure Keyboard Entry" enabled. This is on a MDM / managed computer where I cannot disable this option. It's been documented that the "Secure Keyboard Entry&...
Greg Sadetsky's user avatar
0 votes
0 answers
11 views

Terminal Profiles Keyboard Action

Where can I find detailed technical documentation describing what the elements of the GUI found in Terminal.app -> Settings -> Profiles -> keyboard? The documentation that pops up when the ? ...
Earnest Frankly's user avatar
0 votes
0 answers
22 views

Use iterm2 to display Chinese/Utf8

How to make iterm2 to properly display Chinese/Utf8? Say I want to execute these commands under iterm2: touch Hello世界.txt touch Hello老师我想你.mp3 touch Hello❤️🌹🎉.txt and this is what I'm getting now: ...
xpt's user avatar
  • 343
1 vote
1 answer
47 views

App and Terminal Isolation / Sandboxing

Not often I need to do something very unique and specific on my m1 (apple silicon) macbook air. Something like: I'll be interested in video game emulation, and need very specific controller support, ...
ThomasReggi's user avatar
0 votes
1 answer
27 views

Application Not Responding

Vivaldi browser gets slower over time so I need to restart it. I can't update the browser because there is no new version released for this MacOS system so I am using the last stable version of the ...
itoldusoandso's user avatar
0 votes
1 answer
59 views

Shell with mac key bindings

I want a shell where I can edit commands the same way I edit every other text on MacOs. Where shift left means "add letter to the left of cursor to selection" not "type the letter D&...
Earnest Frankly's user avatar
0 votes
1 answer
104 views

Can I tell if a hard drive is usable or fake?

I purchased a hard drive which looks like a fake (doesn’t mount when I plug it in, the label is suspicious). If there a way using terminal to know if it’s usable? Nothing mounts when I plug it in Disk ...
MicroMachine's user avatar
  • 3,854
2 votes
0 answers
101 views

How can I get `man` not to spew garbage about unsupported macros?

I just used brew to install the latest GNU Screen. Afterwards, I noticed that man screen shows a bunch of garbage lines. The man page displays as it should but once I exit I see a bunch of lines ...
Wildcard's user avatar
  • 1,172
0 votes
0 answers
52 views

Unable to kill MDCrashReportTool process via AppleScript

A long-standing bug in Mac OS X causes syncing of iDevices. You have to kill the MDCrashReportTool process to continue syncing. I made an Automator app to run a short AppleScript to do this. However, ...
Richard Cosgrove's user avatar
0 votes
1 answer
33 views

Can't open multiple Finder windows from terminal

In iTerm running bash I run: open -a 'Finder' that correctly open Finder. Actually a window already existed so it just brings up that window. With this command I want to open another window even if ...
Leonardo's user avatar
  • 251
0 votes
1 answer
55 views

My terminal applications start bash, but no init files are getting sourced

This problem suddenly appeared out of nowhere and shows in both Terminal and iTerm2. When I start the apps, usually they would run my selected shell, whose path is configured as /opt/homebrew/bin/bash....
oarfish's user avatar
  • 1,970
0 votes
0 answers
84 views

Help converting .pkg to .app

My question is very similar to this post: How to convert a macOS .pkg into and .app to run it? It comes very close to giving me a solution, but in my specific instance, I’m trying to install DaVinci ...
Trinitrotoluene's user avatar
2 votes
1 answer
280 views

is there a way to split commands without using tee?

tee outputs the input to a command and stdout. i would like to split the input but without the contents sent to stdout. like command1 | tee >(command2) >(command3) i tried command1 | >(...
yarns's user avatar
  • 65
0 votes
1 answer
93 views

How can I use Terminal/defaults to set "Click wallpaper to reveal desktop" to "Only in Stage Manager"

Basically the title. How can I set the Click wallpaper to reveal desktop setting in macOS Sonoma to Only in Stage Manager using Terminal? Thanks
sobutterysosmooth's user avatar
0 votes
0 answers
26 views

Possible to access and backup a corrupted USB HDD via terminal?

TL;DR Is there any way to skip any checks on a corrupted USB disk, "raw mount" the device and create a raw image using macOS terminal tools? Details: An old Windows notebook of a friend ...
Andrei Herford's user avatar
1 vote
1 answer
117 views

iterm2 to honor /etc/paths with bash [duplicate]

I use Bash as my preferred shell, but the PATH values are different in my iterm2 and my Terminal (which honors my /etc/paths). How to have iterm2 to honor /etc/paths with the bash shell? More details: ...
xpt's user avatar
  • 343
1 vote
0 answers
44 views

Hold key and select accented characters (accented character popup) does not work in Terminal

When I'm in an application such as Firefox, Textedit, BBEdit, Pages etc. - virtually any application which provides something like a text entry field -, I find the following feature at work: When I ...
user1934428's user avatar
0 votes
0 answers
35 views

How can I change destination domain in macOS Sonoma?

for example, whenever an console command like git clone https://github.com/... or wget https://github.com/... which makes a remote call to github.com, change the actual call to an other domain like ...
chrisyue's user avatar
  • 101
1 vote
2 answers
88 views

Python subprocess.run fails with CalledProcessError on Mac but works on Windows

I have a script file subprocess-script.py as follows: import subprocess import platform command = [] exe = "path/to/myapp.app" input = "/path/to/in.ext" output = "/path/to/...
Harry McKenzie's user avatar
0 votes
1 answer
41 views

xattr: bad interpreter: No such file or directory

When I execute the xattr command, it returns the error: /usr/local/bin/xattr: /usr/local/opt/[email protected]/bin/python3.11: bad interpreter: No such file or directory file /usr/bin/xattr returns: /usr/...
RHPT's user avatar
  • 708
0 votes
0 answers
141 views

Is there any gdb-multiarch for macOS?

I'm on macOS Monterey (x64). I already have gdb installed, and by reading it's formula, seems like it only supports x86_64. What about ARM64? This is what I'm trying to do: https://mariokartwii.com/...
anta40's user avatar
  • 239
0 votes
0 answers
38 views

Possible to enable and disable wifi logging and creating diagnostic report from terminal command line?

Regarding these 3 options available from holding option key while clicking the wifi network icon: I came across post for how to find and launch the Wireless Diagnostics option. I would like to know ...
David's user avatar
  • 195
0 votes
1 answer
78 views

Can't cd in my Google Drive from MacOS with terminal or iTerm2

There is a perfect question for this but I can't comment due to reputation. I'm using MacOS Sonoma 14.1.1. If I list my home, I can see: lrwx------ 1 [myuser] staff 88 Oct 11 2021 Google ...
flower42's user avatar
0 votes
0 answers
51 views

Issues with zsh permissions on my mac m1

I am trying to install kubectl on my macOS using this link But in the final step when I go on to check 'kubectl version --client ', I get the error zsh: permission denied: kubectl I cannot understand ...
Elvis's user avatar
  • 1
0 votes
0 answers
21 views

spawn two apps in split view from terminal

I often use a local code editor and latexmk to get a UX similar to the Overleaf web-based LaTeX editor. To do this, I: navigate to the project directory in terminal. spawn a text editor in a GUI ...
japreiss's user avatar
  • 101
0 votes
1 answer
47 views

Suddenly can't boot

I was using my 13 inch Macbook Pro (mid 2012) as normal when it suddenly became really slow and it became so unresponsive I just forced it to shutdown by holding down the power button. After that I ...
onni82's user avatar
  • 111
1 vote
1 answer
46 views

Can't get shell script to talk to AppleTalk script in Automator

I'm trying to make an Automator Quick Action that will: Take a highlighted word, look it up in a database, allow the user to pick from among the hits returned by the database, and put the user's ...
Jan Steinman's user avatar
0 votes
0 answers
31 views

Using the "\s" escape sequence in terminal breaks my input

This is one of the stranger problems I've dealt with on MacOS. Configuration info: Macbook Pro - M1 MacOS 13.6.3 (Ventura) Stock Terminal with no customizations Whenever I use grep -E or in standard ...
Charlie Patton's user avatar
0 votes
0 answers
92 views

Long delays before executing shell commands

I'm using a MacBook Pro 15-inch (2017), macOS Ventura 13.6.3. When I try to run a command, any command, in a shell, there will often be a delay before the command starts, usually on the order of ...
Chad Groft's user avatar
0 votes
0 answers
33 views

MacOS to use Option as Meta Key by default for all profiles

There's an option in Terminal.app -> Preferences -> Settings -> Keyboard but it only allows me to set one profile at a time. Any easy way to toggle such option to all profiles pls?
xpt's user avatar
  • 343
0 votes
1 answer
129 views

Is there a terminal or a setting for a terminal that obeys the usual text editor key combinations like option-backspace?

I'm very surprised that this functionality or even information about it is so hard to find. With the default terminal (in December 2023), the usual editor key combinations like option-backspace to ...
Ray's user avatar
  • 241
1 vote
0 answers
62 views

“Terminal” would like to access files in your Desktop folder

I'm getting the following prompt after each reboot: “Terminal” would like to access files in your Desktop folder Is there any way to set it once for all pls? $ sw_vers ProductName: macOS ...
xpt's user avatar
  • 343
2 votes
3 answers
294 views

in macOS terminal, can I display the 'added date', the creation date, and last access timestamp of a file?

In the macOS terminal, when I do ls -l SomeFile.txt it shows most of the file's properties including its last modification timestamp. However in Finder, besides the 'Date Modified' there is also the '...
RocketNuts's user avatar
  • 1,469
0 votes
0 answers
126 views

Error installing gcc-devel on macOS Sonoma

I am facing installing gcc-devel on my MacBook macOS Sonoma with macport. I am getting following error messages: Continue? [Y/n]: Y Portfile changed since last build; discarding previous state. --->...
user6737063's user avatar
1 vote
0 answers
78 views

I erased my macOS Ventura using disk utilities and now I’m having trouble reinstalling macOS

I recently erased my Mac mini 2021 M1 chip computer using disk utilities. Now I am trying to reinstall Mac, but no matter how long I wait, the reinstallation process does not finish. I looked at the ...
displayname9818's user avatar
0 votes
0 answers
98 views

Opening multiple instances of an iOS app on macOS with M2 Macbook Pro

I'm using an M2 Macbook Pro to open iOS apps (Any Mac with Apple silicon allows this), but I'm trying to open multiple instances of the application. However, there's no way to do this in the UI. ...
ampedcheeto's user avatar
0 votes
0 answers
16 views

iTerm2 quake terminal focus lingering after pressing keyboard shortcut to toggle off

My workflow is working with one Quake-style iTerm2 terminal and more often than not works besides Chrome, googling, and whatnot. So my Quake-style terminal would be floating over Google Chrome and ...
asiraj's user avatar
  • 1
1 vote
2 answers
63 views

ctrl + w not deleting until the beginning of line in bash shell [duplicate]

the ctrl + w shortcut does not delete words until the beginning of the line, in bash shell; it gets stuck few characters before (ctrl + c would bring me to a normal new line) this is something weird I ...
jjrr's user avatar
  • 283
0 votes
0 answers
25 views

Terminal - Incorrect cyrillic characters display on vi/vim

If i open any file in vim with cyrillic characers - most of them a shown like ?~A ?~B ?~C Displaying by any other console utility like less or cat works just fine. Problem occurs in vim both locally ...
Doctor Coder's user avatar
2 votes
1 answer
400 views

How to change default notification sound (tri-tone) for *all* apps (via Terminal preferably)?

My dog does not like the default Tri-Tone notification sound that all apps adopt as a default. I've found the file itself: /System/Library/PrivateFrameworks/ToneLibrary.framework/Versions/A/Resources/...
naydichev's user avatar
  • 133
2 votes
2 answers
91 views

How to open new Terminal windows directly on active Desktop [not on Desktop with other terminal windows]

Steps to reproduce: Make sure Terminal is not running Open a first Terminal window on Desktop1 Switch to Desktop 2 Open a new Terminal window using your favorite way Observations: The new terminal ...
Myoch's user avatar
  • 394
3 votes
1 answer
154 views

Why does iTerm no longer source ~/.bash_profile, but Mac Terminal does?

This must be something very simple, but I can't figure it out. Until recently iTerm always properly sourced .bash_profile which has: Sellotape:~ mnewman$ cat .bash_profile ## .bash_profile - Make sure ...
Buadhai's user avatar
  • 469

1
2 3 4 5
131