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
61 votes
9 answers
179k views

Wake Other Computers from Mac OSX

Is there a terminal command within Mac OSX that will allow me to use WOL (Wake On LAN) to wake up other computers? Windows has wolcmd, is there an equivalent within OSX? I am trying to wake a ...
3 votes
1 answer
2k views

Automatic log each session from Terminal

Just moved off from windows into a Mac. I used to use Putty and it has a feature of logging sessions into a folder so everything that happens (stdin/out) goes also to a folder for historic record. I ...
0 votes
0 answers
20 views

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

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 ...
0 votes
0 answers
13 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 ...
1 vote
1 answer
93 views

Installing software on a MacBook

I'm switching from PC to a MacBook and wondered the best convention for installing new software. For example, I've downloaded the Atom IDE, unzipped the 4 files and put into the /Users/userName/...
1 vote
1 answer
335 views

Is there a way to restrict a process with certain name from spawning?

Upon launching, the Reverso app spawns two processes - Reverso (the app itself) and the annoying Reverso Helper, which occupies the menu bar with its icon and remains active even after cmd+Q -ing the ...
0 votes
0 answers
29 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. ...
0 votes
0 answers
24 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 ...
1 vote
1 answer
174 views

Trash file inaccessible through Terminal?

Having come from a Linux environment, I am accustomed to using the command line, as in MacOS's "Terminal". In particular, I know about permissions, "sudo" and such. But I am unable ...
1 vote
1 answer
26 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 ...
0 votes
0 answers
15 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 ...
2 votes
3 answers
2k views

Navigate terminal scrollback using keys

On most (all?) Linux terminals (eg gnome terminal, tilda, guake etc,..) and the virtual consoles you can browse up through the terminal's scrollback buffer using the keys (ie without the mouse). Is ...
44 votes
6 answers
90k views

How do I get different colors for directories, etc. in iTerm2?

I have a new MacBookPro, and I installed the latest release of iTerm2. Even after I imported various color schemes, I notice that they just change the color of the text and background only. What I ...
0 votes
0 answers
54 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 ...
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....
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 ...
7 votes
1 answer
6k views

Protect hosts file

I am under the impression that there is no real way to protect the hosts file completely without creating a none-admin user account on my Mac and setting the password of the admin account to one that ...
0 votes
1 answer
259 views

I accidentally clicked deny on port open prompt

I'm developing an app that binds to a local address, on a random port when it runs. I used to get a prompt to allow connections but I accidentally pressed Enter key and I think I denied the terminal ...
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,...
12 votes
2 answers
9k views

Access Google Drive "drive" from terminal?

I have installed the Google Drive desktop app and it's available on Finder as a mounted drive, but I can't seem to access it from the terminal. For example, when I do cd 'Google Drive' I get a cd: ...
3 votes
3 answers
663 views

Can't block Safari sites via Terminal /etc/hosts file

I usually block Safari sites via Terminal on my Mac with sudo nano /etc/hosts command adding websites like 127.0.0.1 www.site.com. That works for like 99% of the pages, but right now I am trying to ...
0 votes
4 answers
81 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 = &...
16 votes
4 answers
13k views

How do I view inline images in w3m?

I am using a Mac (El Capitan), and trying to use w3m. But I don't see images when browsing pages. My question is: I want to view inline images in w3m, but don't find a way to do so. I have been ...
0 votes
1 answer
190 views

How to remove these message from intelliJ when I enter a new Terminal window?

It seems since I installed IDEA, every time I enter a new Terminal window, it will print these message: /Users/~ /Users/~/.jetbrains.vmoptions.sh /Users/~ /Users/~/.jetbrains.vmoptions.sh
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&...
0 votes
1 answer
361 views

MacBook Air 2015; Login and recovery mode failed

I’ve been having problems with my MacBook Air (Early 2015). Since installing an update to 10.13.6 (From 10.13.3, I believe) the computer freezes once the progress bar fills up on the login screen. ...
0 votes
1 answer
60 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&...
0 votes
0 answers
23 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: ...
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 ? ...
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, ...
3 votes
1 answer
20k views

Adding symlink to /usr/bin

I'm trying to add python3 to my path by adding a symlink but it's erroring and I'm not sure why. /usr/bin $ sudo su sh-3.2# ln -s /Library/Frameworks/Python.framework/Versions/3.7/bin/python3 /usr/...
3 votes
3 answers
7k views

Making macOS bootable USB stuck on "Making disk bootable"

I've followed the instructions in "Create a bootable installer for macOS" to create a bootable macOS USB installer using the following command: sudo /Applications/Install\ macOS\ Ventura.app/...
0 votes
1 answer
110 views

Custom scripts displaying in menu bar?

I am a Linux user considering switching to a Mac. Currently I use Polybar and in it I have custom bash and python scripts that represent different information. For example In polybar I can interact ...
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 ...
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 ...
94 votes
2 answers
363k views

How to open terminal in Mac using keyboard shortcut? [duplicate]

Keyboard shortcut to open terminal in mac OSX ?
9 votes
2 answers
17k views

Installation issue "ext4fuse:Linux is required for this software." on Mac OS Mojave

When I ran brew install ext4fuse in Terminal (10.14.6), it returned ext4fuse: Linux is required for this software. libfuse@2: Linux is required for this software. Error: ext4fuse: Unsatisfied ...
1 vote
2 answers
2k views

Restoring Apple Mobile File Integrity back to default settings (nvram boot-args)

I modified Apple Mobile File Integrity by running the following commands in a Terminal: sudo nvram boot-args="amfi_get_out_of_my_way=1" How do I revert this change and restore the macOS ...
98 votes
5 answers
71k views

Is bash in OSX case-insensitive?

Are bash commands on OSX case insensitive? I type "which TR" and it shows /usr/bin/TR, though there is no such binary there. Same thing for other binaries, when capitalized. Or is Terminal.app maybe ...
5 votes
3 answers
2k views

Convert PS file to PDF using macOS Ventura?

I have created a .ps file using this command: man -t man > test.ps But what I want to do is convert the .ps file to a .pdf file. If someone could point me in the right direction I would appreciate ...
44 votes
3 answers
17k views

When pasting in Terminal.app, `00~` is pasted at the start and `01~` at the end

When pasting in Terminal.app, 00~ is pasted at the start and 01~ at the end. So when I want to paste /some/path, I actually get 00~/some/path01~. Also an audible sound is heard twice, so probably ^G (...
0 votes
1 answer
114 views

Unlock ssh-agent keychain access prior to terminal opening?

With my SSL certificate passwords stored using ssh-agent I just need to provide a master passphrase to unlock the keychain in the terminal. Generally this isn't an issue, but when the computer ...
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 ...
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, ...
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 ...
1 vote
1 answer
46 views

Decrypting with gnupg just halts and does not work

I couldn't find a solution to this: I cannot decrypt my precious files anymore (on my main computer). I am using pass which relies on gnupg. Trying to decrypt a file just halts and doesn't give any ...
22 votes
3 answers
16k views

Built-in OCR in macOS?

Recently I've found on my Mac that I can easily highlight text in an image that wasn't possible before. Is there also a built-in CLI option or an AppleScript option to address the OCR program with ...
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 ...
1 vote
1 answer
375 views

Importing macOS Caching server data from an external Mac caching server

Apple Cache Manager Utility question. We have just bought a second newer Mac mini to act as my school's Primary Apple Caching Server for our ever growing fleet of student iPads (over 500 and counting)....
1 vote
1 answer
438 views

Missing Boot Options MacOS High Sierra

I have previously 3 OS installed on my MBP 2010 13”, MacOS High Sierra, Windows 10 and Linux (Peppermint OS). So I decided to change my linux to ZorinOS and trying to flash it. However, I think the ...

1
2 3 4 5
131