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
0 answers
16 views

AppleScript to move file to /Library

I need to run a simple command like this: do shell script "sudo cp -r /Users/me/file.plugin /Library/My-Plug-Ins" with administrator privileges However I get "operation not permitted&...
  • 141
3 votes
1 answer
56 views

What do these arp results mean?

Could someone explain what the following IP addresses in my network I found on Terminal via the arp -a command: 224.0.0.251 at 1:0:5e:0:0:fb on en0 ifscope permanent [ethernet] 239.255.255.250 at 1:0:...
  • 31
0 votes
0 answers
12 views

CLLocation doesn't work from CLI app on MacOS Ventura [closed]

MacOS 13.2.1, Xcode 14.2 I'm struggling to get CLLocation to work on Ventura from a command line executable. It works fine from a GUI app. I have the same experience with Swift and Objective C (using ...
  • 377
0 votes
0 answers
16 views

Download file from iCloud/GoogleDrive from Terminal or script

I use Ventura with iCloud and also GoogleDrive. I have some files in iCloud, not physically available on my MacBook, but I could right-click on it and click to "download now" (basically OS ...
  • 1
0 votes
0 answers
15 views

why the proxy in mac terminal did not work

I have configuration the proxy in macOS 13.2.1 terminal(using iterm right now) like this: ➜ retire git:(master) env|grep 'proxy' all_proxy=socks5://127.0.0.1:7890 then using curl to access google: ➜ ...
  • 453
0 votes
0 answers
39 views

How to change Mac notifications persistence

With the older versions of macOS there are two terminal commands to change the persistence of notification banner. You could've done that with some app too, like TinkerTool or Cocktail. With Big Sur ...
0 votes
0 answers
41 views

Is there a way to access the man pages on my Mac 10.13.6 in a machine-readable format like JSON?

Is there a way to access the man pages on my Mac 10.13.6 in a machine-readable format like JSON? Someone like https://qr.ae/prxY74 recommended installing and using mandoc, but unlike what he mentioned ...
0 votes
0 answers
7 views

iterm2 can't pick gpg-agent up

Thanks to the omz plugin 'gpg-agent' I can ssh passwordless to a choosen host with my ssh key. On iTerm2, I would like to have a profile with a command 'ssh somewhere'. Unfortunately session ends ...
  • 101
0 votes
0 answers
19 views

Mac Air 2015 Stuck in Recovery / Safe mode

I sometimes let my battery die (unintentionally) and then when it is plugged in again and I switch on, I am in recovery or safe mode. I've managed before to get back to normal mode, somehow. I don't ...
1 vote
0 answers
42 views

Homebrew opens everytime I open the terminal

I recently installed homebrew on my M1 Mac and it works perfectly but everytime I open the terminal it instantly executes the brew command. I hope someone can help me, thank you! This is what I see ...
  • 11
1 vote
0 answers
26 views

How can I turn on visibility of hidden files permanently? [duplicate]

Using Ventura, I can turn on hidden files using the shortcut command + shift + . How can I set this permanently?
0 votes
1 answer
44 views

How do you avoid school Wi-Fi restrictions?

I don't have the Admin Password or anything. But I want to use the Wlan at school without any restrictions. I also don't have access to the Network Settings on my Macbook. I use the MacBook Pro M1 (14&...
  • 9
0 votes
0 answers
22 views

How to replace Finder.app with any other file viewer? [duplicate]

Is it possible to replace Finder.app with any other file viewer apps such as: Marta.sh Pathfinder Forklift I'd love to use a more customizable file viewer alternative that would allow me to use Vim-...
0 votes
0 answers
15 views

Cron job keeps running unexpectedly. Works fine with current jobs, but repeats at other times

Super odd issue here. I have been using cron jobs for a few years and it has never given me any issues until now. Here is my cron job entries: #Start Kipros 54 8 * * 6 /Users/mediamac22/Desktop/...
  • 141
1 vote
1 answer
14 views

Can I enable file sharing of an admin session from another admin session using the Terminal?

For an unknown reason all the system features of my mac (macOs High Sierra, Mbp late 2012) are inaccessible and it is impossible to launch the applications. An error message shows that the application ...
  • 13
0 votes
1 answer
34 views

App to mount iPhone as disk accessible from Terminal [closed]

Is there an app which mounts my iPhone as an external drive on my Mac through wifi so that I can access its files from Terminal? It would be great if I could sync files with rsync (or maybe even ...
2 votes
0 answers
78 views

How to remove ➜ ~ from Terminal

Earlier, I had installed Anaconda and a bit after that, it showed this with (base) in front of it. I searched up how to remove base and followed those steps, but I'm still left with this. How do I ...
1 vote
1 answer
48 views

How to Implement a Dictionary Look Up Script on Mac and Save to History Log: Need Help with Syntax Errors

After several times of having my MacBook shutdown and losing the several tabs I had opened of the words I looked up, I've started to look for a solution. I'm currently trying to implement a script ...
0 votes
0 answers
33 views

How to add true color support to Terminal.app?

How can I force Terminal.app to support true color neovim color schemes? Is there a way I can configure some system settings, or hack or patch Terminal.app somehow, to add the support that it doesn't ...
  • 7,828
0 votes
1 answer
36 views

Can't figure out how to get fzf to ignore ~/Library ~/Applications and ~/Music on OSX

I've gotten fzf to work on MacOS X Ventura with the Kitty terminal, and it's great! Alt+T and Alt+C work as expected, but there's one fly in the ointment. I can't get either of them to ignore all the ...
  • 111
0 votes
0 answers
31 views

Major issues trying to copy files from one WD SSD to another: sizes inflate drastically, weird error messages?

I have two Western Digital Elements external 1 TB SSD drives. One of them has about 900GB of files that come from an older Mac that I want to back up onto the second. I have about 850GB of free ...
  • 121
1 vote
1 answer
160 views

What sets the SHELL environment variable?

I've set my default shell to be the Brew-installed Bash, and that's what I get when I run Terminal.app. However, something is still setting SHELL to /bin/zsh, which causes problems since some ...
5 votes
1 answer
111 views

M1 Mac unable to switch bash

Greeting! I followed the answers in here and got the latest version (5.2.15) of bash installed on my Mac. But when I ran bash --version it still shows: GNU bash, version 3.2.57(1)-release (arm64-apple-...
  • 153
4 votes
4 answers
621 views

Terminal calculator like concalc from Ubuntu

Is there a terminal calculator for the Mac that's similar to concalc from Ubuntu? concalc allows you to calculate an expression by prefixing it with the tool name (more on the concalc man page) ...
  • 143
1 vote
1 answer
20 views

How do I enable Proxy Configuration File for VPN on Mac Terminal?

I'm using a Mac, I have the corporate VPN turned on (Cisco AnyConnect Secure Mobility Client) In the Proxies tab of System Preferences I have "Proxy Configuration File" enabled with the URL (...
  • 11
0 votes
0 answers
14 views

Terminal stays on top even after I click on a notification of another app

I have a couple of issues with the macOS Terminal app. I'm working on the Terminal and I get a Slack notification. I click on the notification to jump to the Slack message — and Slack takes me there —...
  • 113
0 votes
0 answers
28 views

Terminal Error: .zshrc:export:8: not valid in this context: -v

I am getting this error whenever I start up Terminal on my Mac: .zshrc:export:8: not valid in this context: -v Does anyone know how to fix this? Last semester I tried to download HomeBrew on my Mac ...
2 votes
2 answers
100 views

Automator run shell script does not know my PATH?

When I use the "run shell script" in automator, and do, for example say $PATH it then tells me the PATH. But the path is incomplete. Some items I have in $PATH when using the terminal (zsh) ...
  • 291
0 votes
0 answers
32 views

Mac won't accept SSH traffic despite being set to allow remote access to all users

I am trying to ssh -v user_name@host_address from Linux to a Mac and I get this output: OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /...
0 votes
0 answers
34 views

How to Change File Permissions for directories used by Homebrew

I got this error when I tried to install Mingw-w64 C++ Compiler through Homebrew, and I can't figure out how to solve it since I tried several methods, but they weren't effective. Does anyone have any ...
  • 1
0 votes
1 answer
71 views

Typing 'ls' in iterm causing to tab to close

I have been trying to customise my iTerm terminal using the steps in the following video: https://www.youtube.com/watch?v=0MiGnwPdNGE When opening a new quick window using the Control-’ on my Mac, if ...
  • 1
2 votes
1 answer
165 views

Navigate in man intro

I was checking the man intro command in the terminal, and the section "SEE ALSO". How do I access man(1) or intro(4) for example?
  • 123
2 votes
0 answers
476 views

zsh: exec format error in Ventura when running a bin file

I still use Snapz Pro as my main screen capture app. I recently upgraded both my M1 Mac Studio and my Intel iMac to Ventura. Because Ambrosia SW is no longer in business and has no website, the only ...
  • 115
1 vote
1 answer
70 views

With oh-my-zsh, ls hides the group field instead of showing colors

I'm using Zsh on macOS Big Sur (11.7.4), and in my Terminal I am trying to look at ownership (user & group) of files in the current folder. I want to know the user as well as the group of my files ...
  • 636
1 vote
2 answers
53 views

Unable to fully uninstall Vim from Monterey

I installed Vim using Homebrew, but I need to uninstall it. I ran brew uninstall vim, but for some reason I'm still able to launch vim from the Terminal. Even after trying to uninstall, vim --version ...
4 votes
1 answer
268 views

In Terminal, 'Meta+L' is somehow shortcut for 'ls'. How to disable it?

In macOS' Terminal, the Meta L (or OptionL if you enabled "Use Option as Meta key" in settings) is somehow a shortcut for ls. How do I disable it? I want to use shell default Alt+L for ...
1 vote
1 answer
67 views

Number between brackets next to interface name

What is the number between brackets next to the interface name in ifconfig output? In the following output i.e. (17) en0 (17): inet address 192.168.4.5 EDIT As requested I add more info. I was ...
  • 13
0 votes
0 answers
101 views

.hdiutil attach unable to attach image file on Mac Mojave

I tried to attach image file (.img) as a disk in Terminal on Mojave (10.14.6) by "hdiutil attach -imagekey diskimage-class=CRawDiskImage filename.img"; "hdiutil attach filename.img -...
  • 11
1 vote
0 answers
32 views

Hide specific file extension

I have just started using Sublime Text and their workspace files have the horrible long extension ".sublime-workspace", so I want to hide that and only that extension. When I do "Cmd+I &...
1 vote
0 answers
50 views

How can I close the Terminal after I quit the last open session?

After using several Terminal sessions, I'd like the last exit I type to not only close that session but exit Terminal altogether. How can I achieve this?
  • 137
0 votes
0 answers
29 views

Limiting process memory using ulimit

I have written a program that I want to benchmark on increasingly large instances of a particular problem. I want to stop my suite once the instances become too large to be handled on my computer. I ...
  • 231
0 votes
1 answer
1k 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 ...
  • 11
0 votes
1 answer
69 views

I want to not auto-mount a partition, but I messed up: /etc/fstab asking for encryption password and does nothing (macOS Ventura)

I want to have two partitions, one for home and one for work, but do not want the partitions to “see” each other, hence not-automounting the partition came in mind. So I made two partitions, and then ...
1 vote
1 answer
72 views

Using curl to download image, and copy to the PNG to the clipboard

I'm using curl and grep to get the URL of an image, after that I'd like to download the image itself, and copy it to the clipboard directly, rather than saving it to the disk temporarily before. I'm ...
  • 297
0 votes
0 answers
26 views

How do I use launchctl to hook a shell script to a login / logout event?

I have been trying to get a shell script to fire on login / logout events on a Mac, but the method I used is very old, and it does not work. I followed this StackExchange post and used the sudo ...
0 votes
0 answers
64 views

How to disable PasswordBreachAgent

I use Mac OS Big Sure 11.7.2 I first tried this in the Terminal(Bash, not zsh): launchctl disable PasswordBreachAgent Which generates this: Unrecognized target specifier. takes a form of /. Please ...
0 votes
0 answers
47 views

How to use '@' or '&' in a network share literally

I'm trying to write a shell script for a Mac user that automatically adds the network share to their Finder. The problem is that they named the shares 'A@W' and 'F&E'. I already tried 'A@W' but ...
0 votes
0 answers
31 views

Multiplexer Button on MacOS Terminal

In the top right hand corner of the image below, you can see that there is a tiny button right above the scroll bar. It helped me multiplex the terminal, but now it's gone. I don't know how to bring ...
0 votes
0 answers
38 views

Running .pkg installer fails through Script Editor, but works in Terminal

I'm trying to use Script Editor to create a clickable app that downloads a script, runs the script (which uninstalls a piece of software that isn't working properly), downloads a new .pkg installer, ...
1 vote
0 answers
101 views

SSH forwarding not working in macOS Monterey

I am trying to get port forwarding working on my Mac with macOS Monterey. I have a script that works on multiple other machines, including older Mac and Windows machines using Ubuntu Linux subsystems. ...
  • 61

1
2 3 4 5
126