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
2 votes
0 answers
59 views

What is an effortless way of toggling the Single Application Mode?

I normally toggle the Single Application Mode via the terminal or in the app TinkerTool. However, I wish I could toggle it with just one click and without going through the menus of TinkerTool, for ...
user avatar
  • 71
1 vote
3 answers
60 views

xargs: Operation not permitted when calling bash script from fswatch event

I'm trying to watch a certain folder and run a script if there is a change to the folder. For this, I'm using below fswatch command (OS is Monterey [12.0.1]): fswatch -o ~/Desktop/iosBuildZips | xargs ...
user avatar
  • 195
1 vote
1 answer
60 views

How to move/copy/process files based upon any extended attributes in Terminal/shell?

I need to move a number of files based on various extended attributes, but it's not clear how to test and take action based on these. For a basic example, what if I were to want to find and move all ...
user avatar
  • 4,722
1 vote
1 answer
28 views

Hot to call emacs within terminal.app from applescript when passing a file reference?

I have been trying to make the below script work in mac Catalina with emacs installed via homebrew. on open location this_URL set EC to "/usr/local/bin/emacsclient --no-wait " set ...
user avatar
  • 141
1 vote
1 answer
40 views

How to change the created/modified/access dates on a folder of files?

I took a bunch of vacation photos and didn't realize that the camera date was incorrect. The photos all start at Dec 31, 2012 11:00pm, whereas they should start at June 28, 2022 11:42am. I've looked ...
user avatar
0 votes
1 answer
25 views

Recover and deduplicate Time Machine backup files

I have an old Time Machine backup and would like to recover the latest version of the files without restoring the backup to a whole computer. For example, say that the Time Machine backup drive has ...
user avatar
0 votes
0 answers
62 views

Cannot install Powerline fonts

I want to use oh-my-zsh with agnoster theme. So that I've tried to install the required fonts: powerline fonts https://github.com/powerline/fonts. For this one I needed not just run ./install.sh but ...
user avatar
  • 157
0 votes
0 answers
20 views

Where are the overscan and underscan values stored in MacOS Monterey [duplicate]

The overscan / underscan values for external displays have moved in MacOS Monterey (potentially earlier). They used to be editable in /var/db/.com.apple.iokit.graphics. As mentioned in this question (...
user avatar
  • 3,067
1 vote
0 answers
47 views

MacOS Monterey Keychain Issues after interrupting terminal process, user password not accepted by keychain access

Version: MacOS Monterey 12.4 I messed up while doing some keychain modifications with my terminal (I used a "resetUserPermissions" terminal command and after 3-4 hours of it running, I had ...
user avatar
0 votes
0 answers
49 views

Automatic run of shell script with screencapture

I am trying to automate a screen capturing of my machine. The issue I had is no software out there (I have found so far) cannot screen all monitors at once. I ended up with a shell script, that is ...
user avatar
  • 101
0 votes
1 answer
24 views

NFS Mount Permissions on External Drive

I use Vagrant to manage Virtualbox instances and up until a few OS versions ago was able to sync drives from an external drive. (On 12.3.1 now.) Other vagrant users are also struggling with this, and ...
user avatar
  • 465
0 votes
0 answers
66 views

How can I generate a spreadsheet of a folder structure on my computer with folder sizes included?

I'd like to make a spreadsheet of a folder structure in my filesystem. Given a parent folder or volume as the input, the output should include: Subfolders to the nth level (user-specified) A clean/...
user avatar
  • 169
2 votes
0 answers
18 views

How dangerous is 'sudo hdiutil eject -force /Volumes/path' for filesystem integrity in terms of cache flushing and open file integrity?

I find myself having some trouble sometimes with ejecting volumes normally. Usually this seems to happen with volumes that really don't (or shouldn't) have any files open that are non-negotiably being ...
user avatar
  • 4,722
0 votes
0 answers
37 views

Keyboard sequence command + [ in `terminal`

When I press ⌘+[ in the Terminal app on my 10.15.7 MBP machine, it causes the Terminal to rotate between the open Terminal windows. The sequence ⌘+] cycles in the opposite direction. However, the ...
user avatar
0 votes
1 answer
48 views

Listing nonvolatile memory devices from terminal

cat /proc/partitions lists the the SSDs and USB drives from the command line in LINUX systems. Is there a homebrew package that can be installed to enable cat /proc/partitions?
user avatar
  • 2,423
0 votes
2 answers
40 views

Fetch data from Preview.app to Terminal

I want to be able to get all the pdf files currently opened by my Preview app into Terminal. The idea is, I want to be able to feed the output to a text file for future reference. My use case may be ...
user avatar
  • 41
0 votes
0 answers
13 views

"Quick Action" service only works once by shortcut

I created a quick action with a shell script: open -n /Applications/Alacritty.app And it could open alacritty multiple times when debugging in automator. Then I assigned this service by a shortcut &...
user avatar
0 votes
1 answer
30 views

How do I add/permit "staff" to this folder? "chgrp -R staff dir_name"

For some reason, there isn't "staff" user group on a folder that I just created. I would like the to add/permit "staff" user group to read and write in this folder. How do I add/...
user avatar
1 vote
0 answers
34 views

How do I repair a Time Machine Sparsebundle that will not mount or attach?

My wife's Laptop died. Her backup was on a Synology NAS and we need to get at some files from the backup by accessing the Sparsebundle from another Mac. I made a copy of the Sparsebundle to work on ...
user avatar
1 vote
1 answer
28 views

How to poll an app / process CPU utilization levels with fine granularity in Terminal?

I have a particularly problematic process in macOS that has a CPU utilization of 50-100% rather consistently. The process seems to have a somewhat high variability depending on several variables. ...
user avatar
  • 4,722
0 votes
0 answers
13 views

List of NotChargingReason Codes from terminal command ioreg

Does anyone know the descriptions of the NotChargingReason code from the ioreg command. For example, when I type this command: ioreg -l -w0 | grep 'ChargerData' I get the following output: "...
user avatar
0 votes
0 answers
25 views

Terminal window has a weird description [duplicate]

Hello, as you can see my terminal window description is really weird. 2 days ago my terminal was still called "myname@LauentiusMacbook" or something. Do you guys know how to fix this or/ and ...
user avatar
-1 votes
1 answer
49 views

How to uninstall something from /usr/local/bin if it is installed in /opt/homebrew/bin [closed]

what the title says for example, > where dockutil /opt/homebrew/bin/dockutil /opt/homebrew/bin/dockutil /usr/local/bin/dockutil how would you remove the redundant installation(s)
user avatar
0 votes
1 answer
80 views

What is the terminal command to set menu bar items and screenshot location in Monterey?

these commands dont work anymore in mac os 12.x defaults write com.apple.screencapture location -string "$HOME/Pictures/Screenshots" defaults write com.apple.systemuiserver ...
user avatar
1 vote
0 answers
23 views

Difference between top and vm_stat commands

What's the difference in the results between these 2 commands? I was expecting top > unused to the the same as vm_stat > free $ top -l 1 -s 0 | grep PhysMem PhysMem: 4701M used (920M wired), **...
user avatar
0 votes
1 answer
40 views

How to escape mouse selection in Terminal.App

I am using a mouse enabled application in the terminal but now I want to copy some text. By this I mean, I want to select text in the terminal with the mouse and copy it with Command+C to copy it to a ...
user avatar
  • 131
0 votes
0 answers
20 views

How to store broadcast settings for iTerm2 arrangements

I moved from Ubuntu to Mac OS lately and I used terminator console with split screen and broadcast function. Terminator is not supported on Mac so i switched to iTerm2. It can do something similar, ...
user avatar
  • 101
0 votes
1 answer
20 views

How to get the ${DISPLAY} outside of the X environment

I would like to make a shell script and an Applescript script to fire an X environment command when this environment is active ( through XQuartz for example ). But not just upon starting the X ...
user avatar
  • 11.3k
0 votes
0 answers
25 views

Flashing folder with ? - what do I do if keyboard won't connect?

When I boot my computer it has a folder with a ?. It says that for me to reset it I must hit Command and R but I cannot get my keyboard to connect. What do I do now? Is there any other way for me to ...
user avatar
0 votes
1 answer
73 views

change brew installation location to /usr/local

Trying to install python3 with brew install python3. Prior to this I have added and sourced the ~/.zshrc file (created by me, it was absent by default) containing: export PATH="/usr/local/bin:/...
user avatar
  • 103
1 vote
0 answers
45 views

top: Is there a way to display the memory usage in percent and not in MB / GB

With top application, one can display the list of application sorted according to memory usage from highest so smallest with top -o MEM Is there a way to display the memory usage in percent and not ...
user avatar
  • 444
1 vote
0 answers
57 views

SSH request timeout every time AFTER Mac OS update

I previously had no trouble logging in until my Mac recently updated. Since then, the terminal always times out and can't connect. ssh -Y -p 65492 username@141.xxx.xxx.xxx I get the following: "...
user avatar
0 votes
1 answer
22 views

launchd script file access blocked by sandboxd

I've written a small shell script that downloads some server data and saves them into a restic repository. The restic repository files are on a mounted volume. The script works fine if I run it in the ...
user avatar
  • 153
1 vote
1 answer
269 views

M1 Mac (Monterey 12.4) Touch ID is not working for sudo

I followed [this set of instructions] for adding Touch ID authentication to sudo, but it's not working. Almost all the post/questions I found on the internet was more or less same and also they were ...
user avatar
  • 13
0 votes
0 answers
52 views

iTerm2 scrolling acceleration / speed

When scrolling with ⌘ + Up, is it possible to increase the scrolling speed or enable scrolling acceleration (speed goes up as the keys are held)?
user avatar
  • 101
0 votes
1 answer
31 views

Change Display Scaling mode from 'Default' to 'More Space' in terminal/script

I find myself switching between macOS scaling modes often, depending on what I'm doing. Some tasks require me to use the 'More Space' option, while I prefer regular browsing and use in the Default ...
user avatar
0 votes
0 answers
26 views

allow setugid with sandbox-exec

I have an executable (Google Chrome) that apparently "is running setugid()". I cannot find a way to make it work when called from within a /usr/bin/sandbox-exec sandbox without sudo. I'm ...
user avatar
0 votes
0 answers
96 views

Terminator won't start after installation with brew

I am new to Mac, having moved from ubuntu. I would like to use Terminator terminal so I sucessfuly install it with brew: brew install terminator: terminator -v terminator 2.1.1 At first, I cannot run ...
user avatar
  • 101
0 votes
0 answers
43 views

opt out telemetry .NET

I got this message when first launching .NET "The .NET tools collect usage data in order to help us improve your experience. It is collected by Microsoft and shared with the community. You can ...
user avatar
0 votes
1 answer
94 views

iterm2 split pane - type simultaneously in both split windows

I am using iterm2. I would like to issue a command in one of the split pane windows and get that executed in the other split pane window session as well. How can I do this?
user avatar
  • 111
0 votes
2 answers
74 views

What does sips --man option do

sips, or “scriptable image processing system” is a command-line tool shipping by default with macOS which allows basic image manipulation (think ImageMagick but not as powerful). I found something odd ...
user avatar
  • 1,443
0 votes
0 answers
34 views

Automate arranging files into folders based on part of file name?

Looking to quickly arrange multiple thousands of files on my iMac into subfolders with the folder name being based on the characters before the first dash of file name (the title of the series). Not ...
user avatar
  • 1
2 votes
1 answer
130 views

How to make a dock icon for a specific Terminal profile?

I'm running Big Sur 11.6.6 I have a number of Terminal profiles. I know how to select any of these different profiles after I have started Terminal, but I'm wondering if there is any way to set up ...
user avatar
  • 254
0 votes
0 answers
30 views

macOS: Programmatically enable/disable sharing a specific network through WiFi

I want to programmatically toggle internet sharing with these settings: I have seen the following Applescript that successfully enables the internet sharing, but it does not set the correct network ...
user avatar
  • 461
0 votes
0 answers
48 views

Is there a command to set the sensitivity and acceleration of the pointer separately?

In fact I can use SteerMouse and CursorSense to set the sensitivity and acceleration of the pointer separately. But when I try setting these two in terminal, there is only one command: defaults write ....
user avatar
0 votes
1 answer
25 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 ...
user avatar
0 votes
0 answers
33 views

What is the theme that makes MacOS terminal prompt a green greater than symbol?

I've seen many devs on YouTube use this prompt. It changes to red when there's an error which is nice. I've been searching for it but couldn't find it. I've looked at ohmyzsh themes but couldn't find ...
user avatar
  • 213
0 votes
2 answers
63 views

python shell becomes unusable after suspend (ctrl-Z) and 'fg' command

When I suspend python with ctrl+Z and try to get it back with fg, I cannot use the python interactive command prompt anymore. Pressing the Enter key produces ^M on the screen, Esc produces ^[ and even ...
user avatar
1 vote
1 answer
42 views

School Traces Leftover

Apple friends. I was provided an education MacBook Air a while ago. It's was a rent, however I have paid it off now and am almost leaving school thankfully. Because of this, I have been meddling ...
user avatar
1 vote
1 answer
552 views

Recommended way to install Java with brew (just to run Java apps without a development environment)

I saw today: brew install --cask ripme ==> Caveats ripme requires Java 8+. You can install the latest version with: brew install --cask temurin There are so many brew packages for Java, I don't ...
user avatar
  • 3,407