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

How to edit text normally in Terminal

Is there some way to make Terminal behave like "normal users" would consider normal text editing? For example, if I select/highlight some text command words/characters (before I press enter),...
1 vote
0 answers
25 views

Icon on MacOS .command file (Terminal shell script) keeps disappearing

I've created a .command file (a Terminal shell script) in MacOS, and with Finder > Get Info, I've given it a graphical icon, by dragging a .png file onto the icon object in the top left corner of ...
  • 8,898
2 votes
1 answer
26 views

What is the format req'd for file paths in the terminal s.t. CMD + mouse click opens the file?

I have configured this in the past, and sometimes it works...or not with various linting tool printouts. For example, some file output might be: foobar/thisorthat/thing.py:123 And if it prints out ...
  • 123
-1 votes
0 answers
33 views

Can anyone help me create a terminal command to tell Mac OS to mirror the built in display to my iPad in system preferences? [closed]

I have an M1 MacBook Pro with a bad display panel, and I'm able to use it with my iPad Pro as the display with continuity settings enabled, however I have to connect to an external monitor in order to ...
1 vote
0 answers
49 views

Unable to install Homebrew on M1 MacBook Air

I am unable to install homebrew. I had homebrew installed on my previous Intel mac, and when I migrated to my new device the program remained in the Intel location. I was attempting to uninstall and ...
2 votes
0 answers
32 views

Get lockscreen preferences with Terminal

Can I check the preferences set for the lockscreen (time to lock, ...) with an command in the Terminal. I tried with defaults read /Users/username/Library/Preferences/com.apple.screensaver.plist but ...
0 votes
0 answers
40 views

“Allow full disk access for remote users” checkbox not appearing for remote login

I have been using a spare mac-mini (late 2012 model) running Catalina 10.15.7 as a general use home server, mostly for running plex, and have it plugged in and not connected to a monitor. As a result ...
1 vote
0 answers
5 views

Changing tmux "normal" mouse from fn key to ctrl key

When running tmux in a terminal window, I can get the usual terminal mouse behavior by holding down the fn key. When using an external keyboard, I do not have a fn key. How can I map this behavior to ...
0 votes
0 answers
15 views

is there any way for adding 'open in terminal' to mac context menu? [duplicate]

this is the default context menu when you right click inside a folder , and i want a way for adding Open In Terminal Button.
1 vote
1 answer
79 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&...
  • 151
3 votes
1 answer
69 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
-1 votes
0 answers
22 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 ...
  • 375
0 votes
0 answers
22 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
20 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: ➜ ...
  • 463
0 votes
0 answers
41 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
43 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
8 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
20 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
47 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
27 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
47 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
16 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
38 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
81 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
52 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
37 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,848
0 votes
1 answer
50 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
164 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
129 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
635 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
26 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
34 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
105 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
36 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
96 views

Typing 'ls' in iTerm causing the iTerm tab to close

I have been trying to customise my iTerm terminal using the steps in this video. When I open a new quick window using the Control + ’ and type ls, it causes Terminal to disappear. I've attached a ...
  • 1
2 votes
1 answer
166 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
558 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
83 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
58 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
269 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
68 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
130 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 -...
  • 21
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
31 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

1
2 3 4 5
126