Skip to main content

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
1 vote
1 answer
14 views

how to prevent alt+arrows from moving cursor to end/begin of a word

In emacs I mapped alt+<arrows> to switch windows but on macOS terminal it instead moves cursor to begin/end of a word. How to prevent this?
Necktwi's user avatar
  • 355
0 votes
0 answers
8 views

Automation via icon on desktop (or dock?) of Terminal function .. ? End goal to differently-color all open Terminal windows

Would there be a way to have a file/icon of some sort of my desktop - (or, not as ideal but in the dock) which essentially opens a terminal window via the menu Shell -> New Window -> .. one of ...
Fattie's user avatar
  • 206
0 votes
1 answer
35 views

What are resources for learning to use terminal [closed]

I’m looking for resources to learn to use terminal. I’m not a coder but a prolific Mac user who wants to go deeper. Any suggestions? Currently using an MBP M1 Max on Ventura.
Hoon's user avatar
  • 29
1 vote
0 answers
48 views

How to type tilde (~) in Spanish keyboard in Terminal

I type option+ñ and get a ~ on most applications: when I am in Terminal, I get (arg: 1) on bash, and ? on zsh. The results are the same for left and right option keys. Hardware: MacBook Pro, 15 inch, ...
simona's user avatar
  • 223
1 vote
1 answer
48 views

How to bindkey page up/page down in macOS terminal?

When I open the Terminal and press the "page up" button it simply scrolls my Terminal screen one page up, so that I can see what I typed and what the executed commands outputs were earlier. ...
a_girl's user avatar
  • 175
0 votes
0 answers
26 views

WiFi Advanced Settings replacement command for airport

Previously you could use the the airport prefs command to edit things like RequireAdminNetworkChange and RequireAdminPowerToggle (WiFi > Advanced > Require administrator authorisation to change ...
thatmac's user avatar
1 vote
1 answer
56 views

Copy file from terminal into clipboard and paste in Finder [duplicate]

What I can do is: open finder, copy a file, or directoy paste it in some other directory What I want is: open terminal copy a file (the name?) into my clipboard open finder paste it in some ...
Chelz's user avatar
  • 111
0 votes
1 answer
73 views

How can I clear the whole window in Terminal with one keyboard shortcut?

I want a keyboard shortcut that will clear everything from the terminal window, including the current line I know that Command-K clears the text to the very beginning, but if you have some text on ...
user avatar
1 vote
0 answers
28 views

Concerning prompt change in Mac terminal [duplicate]

Normally, my Mac's terminal prompt is home@Primarys-MacBook-Pro. When I connect to an unsecured network at my hotel, the prompt in my terminal changes to home@JUSTIN-s-Note20. My name isn't Justin, ...
David's user avatar
  • 111
3 votes
3 answers
152 views

Reset default terminal directory Mac Ventura 13.6.7

I had previous changed the default directory my terminal opens up in to a specific sub folder in Documents no matter when or how you open a new terminal. I want to reset it back to the default ...
displayname's user avatar
0 votes
2 answers
94 views

Make backslash \ in terminal (Danish keyboard)

I am using a Danish keyboard language and Danish keyboard layout. When typing in my browser or other applications on my computer, I can make a backslash. In my case I use the combination shift + ...
morten's user avatar
  • 1
0 votes
0 answers
22 views

How to prevent terminal windows from resizing after disconnecting external monitor?

My Terminal windows are 80x24. I usually use my MacBook in clamshell mode connected to my studio display. When I disconnect my Mac to work on the built-in display the windows get resized to 84x24. So ...
occamsrazor's user avatar
1 vote
0 answers
29 views

How can I apply a defaults value I have set in the terminal

I want to programmatically enable and disable the accessibility colour filters. This can be achieved manually via System Settings > Accessibility > Display > Colour Filters > Colour ...
JP D's user avatar
  • 11
1 vote
1 answer
39 views

Unable to delete old company OneDrive folder

I used to work at a company that used OneDrive. I neglected to unlink the OneDrive account. Now I can't delete the folder. I started out with: ls -lae ... drwx------@ 2 jonathan staff 64 May ...
jschmidt's user avatar
  • 349
1 vote
0 answers
31 views

Run shell script in Automator with privileges

I'm trying to run a shell script in an Automator folder action that runs with privileges strong enough to delete files within that folder. The folder action contains only a Run Shell Script action ...
Simon Troup's user avatar
2 votes
0 answers
50 views

Why does code-signing identity look revoked when using SSH, but good when using Terminal app?

Problem If I SSH to the mac remotely from another computer, then view valid code-signing identities, I get CSSMERR_TP_CERT_REVOKED, as seen below. # executing remotely in an ssh session % security ...
Christian's user avatar
  • 121
1 vote
1 answer
88 views

Automator script error -212

Im on an intel macOS Catalina and I am trying to create a automation using apple script to run a command in zsh terminal. The command is to set new defaults for my bash profile and it works perfectly ...
pleasehelpme's user avatar
1 vote
0 answers
18 views

Ho can I find "offline files" in the terminal (due to fileprovider / OneDrive)?

I've been having trouble with Microsoft OneDrive, which throws up a lot of sync errors and syncs very slowly if at all. However, despite having selected for the directory at issue "Always Keep On ...
Steve Waldman's user avatar
4 votes
4 answers
1k views

`exit` man page

MacOS 14, M3 Pro, default zsh shell I am trying to find the man page for exit corresponding to this entry on SS64. Using man -a exit loads builtin(1) twice, exit(3) once, and Tcl built-in command exit(...
shea's user avatar
  • 177
-1 votes
1 answer
53 views

Controlling the new man page pop-up

Frequently while typing comands in Terminal, a yellow window pos up which tries to display a man page. I haven't figured out what triggers it, but it's almost always empty and is trying to show man X ...
WGroleau's user avatar
  • 5,055
1 vote
2 answers
64 views

How can I add a keyboard shortcut for a nested menu item?

It used to be possible (on macOS 10.14 below at least), to set up a keyboard shortcut to open up a specific terminal profile: Unfortunately, on macOS 12 and later (at least, I never ran 10.15 or 11), ...
At0micMutex's user avatar
  • 3,583
1 vote
1 answer
146 views

Relaunch Terminal using a command

Today, to convert from Markdown to PDF using Pandoc, it was necessary to install pdflatex. I did brew install basictex and then it was necessary to relaunch Terminal. For this, I simply quitted it and ...
user avatar
0 votes
3 answers
121 views

If a hacker succeeds in using my Apple ID to log his device into my iCloud account, can he spy on my devices well enough to hack into my web accounts? [closed]

I ask, assuming the latest versions of iOS and MacOS. Can he capture keystrokes created on my devices? Can he access my Google, Yahoo, etc website accounts if I'm logged into those sites, assuming he ...
NotAnAccountant's user avatar
0 votes
0 answers
17 views

Segregate or identify each command interaction in Terminal.app?

The IntelliJ IDE by JetBrains will have a new Terminal window with the nifty feature of segregating each command-and-response. This feature makes visual scanning and re-reading much easier. Is there ...
Basil Bourque's user avatar
0 votes
0 answers
17 views

How to use dark background support with lesspipe?

I got lesspipe installed and enabled with export LESSOPEN=|/opt/homebrew/bin/lesspipe.sh %s and it works well. The problem I'm facing is that my iTerm2 has a dark background, and I don't see a way to ...
Capt. Crunch's user avatar
3 votes
0 answers
331 views

How to permanently disable "Secure Keyboard Entry" for terminal

Related to Touch ID window for sudo doesn't get focus when opened from iTerm Every time I restart Terminal I have to remember to turn off "Secure keyboard entry". I did try adding ...
Max's user avatar
  • 31
0 votes
0 answers
23 views

ARM Mac Recovery Mode - Show available HD space in Terminal

I'm trying to get familiar with showing specific HW information from the Recovery Mode terminal for audit purposes. I'm not too savvy with recovery mode commands for terminal. I'm unable to show ...
data_rock_'s user avatar
2 votes
0 answers
21 views

How to disable Smart Copy/Paste everywhere and/or in an individual app with Terminal? [duplicate]

Does anyone know how I can disable Smart Copy/Paste globally (or within an individual app's settings) using Terminal? I know I can do this in the GUI for apps that support it (e.g. Safari, TextEdit) ...
sobutterysosmooth's user avatar
3 votes
1 answer
162 views

Undeleteable (dataless?) folder in MacOS: Permission denied, compressed chflag

I'm having a problem deleting a folder that was previously managed by Microsoft OneDrive. The folder is called "WP". I already tried: sudo, disabling SIP, removing chflags. ❯ csrutil status ...
tholu's user avatar
  • 331
0 votes
0 answers
29 views

How can I replace the button in Mission Control that adds a new virtual desktop (+) when the dock is positioned on the right side?

I use MacBook Pro M3 with macOS Sonoma 14.4. The button in Mission Control that adds a new virtual desktop (+) generally located аt right side, when the dock orientation down or left. That is more ...
Grigoriy Kadetov's user avatar
0 votes
0 answers
77 views

macOS number pad dot / comma

I am using a keyboard with a numpad that displayed a comma when pressing the dot button (German input settings in macOS). When pressing option + the key I got a dot. I changed the output with the ...
doctus's user avatar
  • 11
0 votes
1 answer
88 views

Can somebody explain why two users are logged in?

Apparently in my terminal a new "user" appeared. (Sorry for my language but I'm not really familiar with terminals and this stuffs). What I mean is that in the upper part of my terminal, ...
Andrea's user avatar
  • 3
1 vote
0 answers
54 views

Terminal: To copy a line of text to general macOS clipboard [duplicate]

In Terminal, to copy a line of text so that it can be pasted back later, one can use the kill-ring way: Type the text you want to paste later Press Control-U to delete the line ... Press Control-Y to ...
user avatar
0 votes
0 answers
15 views

Terminal user@location is using AppleTV and not computer [duplicate]

I opened terminal this morning after I turned on my computer from a shut down. Normally the terminal starts with username@computerName. This time it's username@appleTVname. I can't figure out how to ...
christine's user avatar
0 votes
0 answers
34 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
  • 5,055
0 votes
0 answers
34 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
  • 5,055
0 votes
0 answers
39 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
35 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
1 vote
2 answers
153 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
134 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
190 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,476
0 votes
0 answers
32 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
14 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
77 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
  • 405
1 vote
1 answer
83 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
1 vote
2 answers
109 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
163 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,914
2 votes
0 answers
185 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
86 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
51 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

1
2 3 4 5
130