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
13 views

Cliclick error: "The command terminated due to receipt of a signal."

I've been using Cliclick for years. Recently, I bought a new Mac, but now any applescripts using Cliclick return this error: "The command terminated due to receipt of a signal." number 1009 ...
  • 867
0 votes
0 answers
16 views

How to stop command-W from closing iTerm2 when it's active instead of the Python plots I'm intending to close? [duplicate]

I regularly run Python scripts from an iTerm2 command window, and the scripts usually generate several plots. I have an IDE open as well. From time to time I end up accidentally closing the iTerm ...
  • 1,350
1 vote
2 answers
44 views

Delete all duplicate files

I have accidentally imported images from an app twice, resulting in list which repeats this pattern: filename1.ext filename1 2.ext filename2.ext filename2 2.ext about 5,000 times. All details (...
  • 329
0 votes
0 answers
30 views

Customize drop-down menu items of programs in macOS via Terminal [closed]

I would like to remove or grey-out a few menu items in a program via Terminal in MacOS. Problem is, I've been searching Google and also DuckDuckGo for quite some time and I keep getting redirected to ...
  • 1
2 votes
2 answers
92 views

How to remove all Mach-O executables in a directory via Terminal?

Let's say I put all my C codes and the executables in ~/anta40/Codes/C. Removing all the C codes via Terminal is easy: rm *.c My question is how to remove all Mach-O executables (from compiling the C ...
  • 171
0 votes
0 answers
18 views

How do I ssh into my Mac? [closed]

To be honest, I thought such a basic question would be easy to find here, but I don't see a reference, so I'm asking! In brief, what are the canonical ways to ssh into my Mac securely? Don't be afraid ...
  • 101
0 votes
0 answers
6 views

Avoiding duplicate entries in bash_history using ignoreboth:erasedups not working

I'm on Catalina using iterm but I know I've been facing this issue for years. I won't be surprised if this is related to Why is .bash_history periodically wiped? which answer explained why my bash ...
0 votes
0 answers
21 views

Issues with Plist Daemon not running on start-up or for other users

wondering if any of you could kindly provide some insight. I'm writing some scripts in order to automate the connection to VLC which is being hosted by one of our servers this is so that our customer ...
  • 1
2 votes
1 answer
30 views

SSL errors everytime I fetch or push from/to Github

I've been having this issue the past few days and I don't know where the issue is coming from. When I try to brew update, or pull anything from git, I get this error: ➜ brew update fatal: unable to ...
  • 131
1 vote
0 answers
16 views

I'm trying to download gcc via homebrew on a mac newest system update can anyone help with this Please? Here is my brew config [closed]

HOMEBREW_VERSION: 3.6.3 ORIGIN: https://github.com/Homebrew/brew HEAD: d5b6b068c15a8df60f0f5e34a4ca80dcf82c48e3 Last commit: 2 days ago Core tap ORIGIN: https://github.com/Homebrew/homebrew-core Core ...
1 vote
0 answers
44 views

How do I install a command line tool?

I downloaded a tool from GitHub (libfsapfs) to help with an issue I’m having with an external HDD formatted in APFS. I have some familiarity with the terminal and know some basic Unix commands but ...
  • 111
1 vote
1 answer
18 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
2 votes
1 answer
78 views

Installing Java 19 on macOS 12.01 Monterey manually (without Homebrew)

I would like to install Java 19 from Arm 64 Compressed Archive on my Mac running macOS 12.01 Monterey and Chip Apple M1 Pro without using Homebrew. I unzipped the file in the folder jdk-19.jdk to /usr/...
0 votes
0 answers
21 views

Allowing many (unverified) apps to run [duplicate]

I downloaded a package that contains a bunch of executables. When I try to run any of them from the terminal, I get the "cannot be opened because the developer cannot be verified" thing, so ...
  • 121
4 votes
7 answers
2k views

How to rename a file that contains spaces in terminal?

I have a file with the name: this is my app.ipa I'd like to rename this file: mv $(path)/this is my app.ipa $(path)/this_is_my_app.ipa Does not seem right... Thanks in advance.
0 votes
2 answers
53 views

How to remove list of Homebrew commands on every terminal start-up?

This is more of an annoyance than something that actually affects my code, but I figured I'd ask about it in case someone else has found a solution. Every time I start up my terminal, this long list ...
0 votes
0 answers
17 views

How to run an R script from the terminal

I've spent over a week on this problem, been down so many rabbit holes, and I'm about to pull my hair out. All I want to to is be able able to navigate to my folder in the terminal, run the command ./...
0 votes
0 answers
32 views

Not able to delete /usr/bin/javac in Mac OS monterey [closed]

I am trying to delete /usr/bin/javac in Mac OS Monterey and it fails with the following error: as operations not permitted Some blogs suggested that it could be crsutil which could be making it not ...
0 votes
0 answers
7 views

iTerm2 - Split and connect to same host

When splitting with Cmd+D, is it possible to have iTerm2 SSH to the same host as the previous pane? I'm looking for an option like is mentioned in the post iTerm2 - Split vertically with current ...
0 votes
0 answers
34 views

How high is the risk of losing data when unplugging a MacOS Extended (Journaled) formatted external drive without ejecting it first? [closed]

I know, you should always eject before unplugging a drive. But as seen in these questions, and their absence of conclusive answers, sometimes MacOS refuses to eject a drive because Finder (understand &...
  • 3,377
0 votes
0 answers
15 views

Disable special characters on long press (ApplePressAndHoldEnabled) ONLY within Terminal Version 2.12.7 (445)

macOS version 12.6 Terminal Version 2.12.7 (445) Before my last macOS update today, I was able to speed page in less by holding J or K. While outside the terminal I was able to use the suggested ...
  • 101
0 votes
1 answer
32 views

How to fix Mac terminal being incredibly slow after brew install tmux

I've installed tmux using brew ( arch -x86_64 brew install tmux ) on M1 Mac and since then my terminal is super slow. on lunch, after running commands and it's just incredibly slow. I tried deleting ...
1 vote
0 answers
23 views

Using AppleScript to run a script command specifically in a Rosetta terminal (currently getting execution error on "do script")

I have a scenario where I'd like to use AppleScript from the command line (I'm currently doing this from iTerm) to launch a Rosetta-based terminal and run a command in that terminal (while leaving the ...
15 votes
2 answers
2k 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 (...
  • 457
1 vote
0 answers
20 views

Network utilization data (DataReceived/sec, DataSent/sec) using "nettop" differs from Activity Monitor information

I want to get network utilization data as shown by Activity Monitor > Network from command line. I used nettop -P -x -J bytes_in,bytes_out, get data by 1 sec, and sum the total in and out. But this ...
0 votes
0 answers
31 views

iterm2 make option behave like alt *everywhere*

I'm trying to switch to iTerm2 so that I can get window splits in my terminals. However, I have a bunch of keybindings in zsh that use the alt-key which don't work with iterm. This question gives a ...
  • 274
0 votes
0 answers
31 views

Problem with Apple Shortcuts with operation not permitted on script

I'm new to macOS and Linux-based systems (and I'm also not an IT guy, just having fun learning basic stuff from many fields), and I wanted to make a shortcut with the Apple Shortcut application to ...
  • 1
1 vote
0 answers
18 views

How to move all old files from Downloads to the trash with one or more terminal commands?

I already found the command with which I can select all the files and directories that I do not want to send to trash. That command looks like this: find ~/Downloads -newerat "2 months ago" -...
  • 111
0 votes
0 answers
11 views

How to open a application in a new space via a terminal command

I have the below command: open -na "Firefox" --args --new-window "https://google.com" which opens a new Firefox window in the current space. How can I open this in a new space? ...
  • 101
0 votes
1 answer
36 views

Question mark box instead of my Mac name in Terminal

I'm normally using iTerm2, but lately I wanted to restore its settings because of a style that I didn't like, so what I did, was run the command which I've found in Re-setting iTerm on MacOS X rm ~/...
  • 1
4 votes
1 answer
210 views

How would I put an end to unexpected output in the terminal window header?

When I run a script in a terminal window there is a flickerfest of commands being run. While this novelty item is cute for a day or two (or a year or two) it grows old on ya, eventually. How would I ...
0 votes
0 answers
19 views

How to change the key § to key ` on macOS? [duplicate]

I would like to change the key § to key ```` on MacOS 12.6. Not a Mac GURU, but when I type, I'm using the ` apostrophe and is much easier for me if possible. Can someone please provide step-by-step ...
0 votes
1 answer
25 views

Alternative to iconv encoding utf-8-mac

There used to be support for an encoding option called utf-8-mac with iconv in the Terminal. It's mentioned in this forum several times. I used to use it a lot. Now with the following command (that ...
0 votes
1 answer
34 views

Icon above scroll bar area in terminal

I recently noticed this strange icon on my terminal. Its placed at top right corner where scroll bar starts. Hovering it, it says split pane in tool tip description. When it is clicked, it actually ...
  • 101
0 votes
0 answers
11 views

Missing Surname after remote User Creation

Context We have multiple macs in our office and our employees are free to use every mac that is currently unused. So every mac needs an user for every employee and every time we hire a new employee I ...
0 votes
1 answer
18 views

Fishy value "GJThinkPad" in terminal command prompt [duplicate]

I've tried printenv, whoami, and uname to see if the "GJThinkPad" string is located in any of them. It is not. I've also checked to see if there is a ~/.bash_profile file which might have ...
  • 172
0 votes
0 answers
28 views

Terminal Help - Reverting a Standard Mac user account back to an admin account?

I've been doing a Jamf now roll out, but have mucked up the user account by using this terminal command: sudo dseditgroup -o edit -d UserName -t user admin Which basically made the admin account ...
0 votes
0 answers
29 views

Cannot view or manipulate one of MacOS's "special" folders in Terminal

I've somehow managed to cut myself (and the superuser???) off from my ~/Downloads directory in the Terminal. I did not purposefully enter any Unix commands to change permissions or access. I did ...
  • 101
0 votes
0 answers
25 views

Why would download history appear blank even though I save a file?

I ran this command in Terminal on Monterey 12.5.1: sqlite3 ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV* 'select LSQuarantineDataURLString from LSQuarantineEvent' > ~/Downloads/...
2 votes
2 answers
29 views

How can I see the bind event key ID for remapping keys with zsh in real time?

I thought there used to be a way with Zsh on the OSX where you could view a live print out of keys to bind event ids. Something like showkey -a where it'll print out the bind key combo you just ...
  • 121
0 votes
0 answers
17 views

Make Command act as Control in macOS Terminal without 3rd-party apps?

Is it at all possible to make Command behave as Control in macOS Terminal, without use of 3rd-party apps (f.e. without Karabiner, maybe with terminal commands like defaults)?
  • 1,321
0 votes
1 answer
29 views

error message and [Process completed] as soon as I open the terminal MAC OS Monterrey 12.5.1

After restarting my computer, I got an error message on the console, I don't know what might have caused it, but I can't use the terminal at all now. Whenever I start it, I get an error and a [Process ...
2 votes
1 answer
76 views

In macOS 11.6.8, how do I change the background in Terminal to be a picture file?

Suppose I head to Terminal -> Preferences -> Window. I see no option enabling the setting of my Terminal background to be an arbitrary jpg. Further, if I go to such, then type Command+ I, once ...
0 votes
0 answers
35 views

Why are the Emacs bindings to move around words (such as M-f (option-f) and M-b (option-b)) not working on bash terminal?

I am using macOS Monterey 12.5 on M1 hardware. In case this can be relevant, I am using an American keyboard with Brazilian Portuguese (ABNT2) as input. Also, I am using a cool software Karabiner ...
0 votes
0 answers
21 views

GTK installation on Mac doesn't seem to be working

I have been trying to get started on GTK for Mac. I followed the installation steps and ran the hello-world program. I keep getting this error with gcc, though. Running gcc $(pkg-config --cflags gtk4) ...
0 votes
1 answer
15 views

Code with open cv in python in macos: process is launched in terminal but nothing happens

I am trying to display an image using open cv and used the following code (from geeksforgeeks). However, when I run from the terminal (with zsh in MacOS 11.6.1 using Python 3.7.5 and opencv-python==4....
  • 444
2 votes
1 answer
33 views

Mac ZSH option to open file via index?

Working on zsh on MacOS... I was wondering if there was a way to query files via an index # of the current directory. For example, if ls outputs: folder1 folder2 file1.txt file2.txt I was wondering ...
0 votes
1 answer
48 views

Can't paste whole copied text in terminal

When I try to paste a long text/code in any editor in Terminal or Iterm2, only part of the text is pasted. For example, as you can see below, I just generated a wall of text with 3000 words and copied ...
  • 1
0 votes
0 answers
28 views

Why can't I open a jpg via the Terminal but can with Finder

I'm running OSX 10.15.7. I have a jpg file that I can open when double clicking on Finder, but if I run open test.jpg in the iTerm2 (also in Terminal.app) I get the following error If I look at the ...
0 votes
1 answer
55 views

Commands run in the terminal seem unable to access SSL issuer certificates

A few weeks ago, I suddenly became unable to download PNPM packages, receiving the following warning for all the packages I attempted to download: GET https://registry.npmjs.org/<package> error (...

1
2 3 4 5
123