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

How to enable horizontal scroll on `less` with trackpad?

I want to use my trackpad in macOS to scroll less horizontally. Is there a way to do this?
HappyFace's user avatar
  • 590
2 votes
1 answer
104 views

How do I allow Alfred.app to control Bluetooth on macOS Sonoma?

So I have Run Script actions in my Alfred workflows that uses the command blueutil -p 0 to turn bluetooth off. After upgrading to macOS Sonoma 14.0, the command stops working when invoked by Alfred ...
Teddy C's user avatar
  • 1,628
1 vote
0 answers
75 views

Run terminal in VS Code in rosetta/intel mode

A dependency of my code (pyqt5) does not run on Apple Silicon: Installing pyqt-qt5 (5.15.2): Failed RuntimeError Unable to find installation candidates for pyqt-qt5 (5.15.2) and I'm having ...
ElRudi's user avatar
  • 163
0 votes
1 answer
47 views

How to use tree without listing contents of .app file in Mac

I am using tree to list contents of a folder. I have many macOS apps with .app extension. I want tree to list them but ignore the contents inside it. How to do that? Thanks.
John Doe's user avatar
  • 125
2 votes
2 answers
110 views

Why is iTerm2 creating resource forks all of a sudden?

I have an ExFAT drive which carries my works, including codes that I'll be using between Mac and Windows. I've always used TUI GNU Emacs on this drive to ensure no resource fork is accidentally ...
DannyNiu's user avatar
  • 203
0 votes
1 answer
140 views

No $PATH file in my home folder on my Ventura 13.5.2? [duplicate]

I am using zsh and I wanted to modify the $PATH variable permanently. I can't seem to find either .zshrc or .zsh_profile on my computer -- I tried searching in Finder with enabled hidden files. I ...
dnes's user avatar
  • 99
0 votes
0 answers
16 views

Scripts menulet env issue

For many years, I have used the Scripts menulet (enabled from the preferences in Apple's Script Editor), which provides a little drop-down menu to trigger scripts -- not just AppleScripts, but shell ...
benwiggy's user avatar
  • 33.8k
0 votes
1 answer
56 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 ...
Maths Wizzard's user avatar
0 votes
0 answers
37 views

sed "invalid command code W"

I am trying to prepend text to the begging/header of a set of .vtt text files with sed in a loop. I'm not replacing any text, only adding text. I need some line breaks in the text. The text should ...
Bleakley's user avatar
  • 249
0 votes
0 answers
14 views

MacOS vscode open dir via the right mouse button [duplicate]

There is a way to set the possibility of being able to open a dir on vs code via the right mouse button where the menu appears, as I do with the terminal in this way. code .
Paul's user avatar
  • 101
0 votes
0 answers
44 views

MacOS Warning on Terminal Startup: "Warning: No available formula with the name "pure#". Did you mean pure?"

I recently tried to install a zsh prompt called pure, where I followed the instructions listed on its Github page https://github.com/sindresorhus/pure I set my ZSH_THEME = "", ran brew ...
Om Patel's user avatar
1 vote
0 answers
37 views

How can I modify the "Date Added" of a file via the terminal? [duplicate]

Whenever I move files between folders or to an external hard drive, I lose the "Date Added" metadata of the files. I need this info for sorting purposes. How can I change that field via the ...
JStyle's user avatar
  • 11
1 vote
1 answer
68 views

Dual-Boot MacBook Pro 2015 stuck loading into GNU GRUB version 2.04

a while ago I decided to dual boot Ubuntu onto my Macbook but recently decided to remove the partition. This has caused the Mac to only boot into GNU GRUB version 2.04. While I know internet recovery ...
cb98's user avatar
  • 11
0 votes
0 answers
61 views

Bizarre Sudden Slow-Down of Specific MacOS Processes

I purchased a 2020 M1 13" MacBook Pro in March 2021 and it's been like driving a racing car. I use it for everything, and I do a lot as I'm a post-graduate researcher in Electrical Engineering. ...
Sirk's user avatar
  • 1
0 votes
1 answer
48 views

Unexpected results using info from `mdls` to search via `mdfind`

I wanted to find what program created a dot file. I ran mdls /path/to/file on the file. john@iMacEth ~ % mdls /Users/john/Library/Application\ Support/.lldb_info_3F4AF17D8C kMDItemFSContentChangeDate ...
John's user avatar
  • 989
0 votes
2 answers
84 views

MacOs list package install via curl

Is there a way to find the list of packages that have been installed via curl? For example I installed the following two packages: Bun: curl -fsSL https://bun.sh/install | bash Maestro: curl -Ls &...
Paul's user avatar
  • 101
0 votes
1 answer
69 views

Is there a way to turn on and off Color Filter on MacOS Ventura from the CLI

Setting -> Accessibility -> Display -> Color Filters -> Filter Type -> Grayscale Color Filters -> On I'm try to do this from the terminal. Anyone know of some way to do this in ...
codingCoffee's user avatar
1 vote
1 answer
179 views

Trying to read xattr values on multiple files

In trying to read all the values of the extended attributes on a single file, if I do xattr -l <filename> | while read ATTR; do xattr -p $ATTR <filename> done I get what I expect.  But ...
WGroleau's user avatar
  • 4,670
1 vote
1 answer
41 views

How do I put my public ssh key back to the correct folder on the terminal? [closed]

I can't access my login to my remote server which has my domain name stored to it. I believe because I accidentally saved the public key to my desktop instead of the file it's supposed to be in. And ...
Wyatt L Grant's user avatar
1 vote
0 answers
66 views

How can I run bash command with having Sandbox in Swift? [closed]

I made a working app which hides and shows the desktop icons using bash the terminal command for making it, easier to do this job with an UI, it works ok without sandbox and if there is sandbox it ...
bulletproof software engineer's user avatar
0 votes
1 answer
50 views

`tput setaf` inconsistency + fail (Ventura, Sonoma)

I'm attempting to customise my bash prompt, so that I get this: i.e. user-text is in bold, but stdout is not. It was working, but after upgrading my mac it's glitching. Machine A: MacBook Pro 2017 ...
P i's user avatar
  • 1,694
1 vote
1 answer
31 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 ...
stewo's user avatar
  • 131
2 votes
1 answer
551 views

How can I use an Arabic voice?

I am trying to use the say command in macOS to say something in Arabic. I have executed say -v "?" and here is the list of voices I have: Albert en_US # I have a frog in my ...
regina_fallangi's user avatar
1 vote
0 answers
55 views

C program opens terminal in VSCode of MacBook Air M1

I am running this code in VSCode on my MacBook Air M1 #include<stdio.h> int main(){ double pi=(double)355/113,r; printf("Enter the radius of the circle\n"); scanf("%...
Kartikey Doshi's user avatar
0 votes
1 answer
67 views

screen utility (terminal app) installed on my mac and I don't know where it came from. How to uninstall it?

I have homebrew installed on MacOS Big sur. However, when I type brew search screen, homebrew clearly shows that the screen terminal app is NOT installed on my Mac through homebrew. However, in MacOS ...
DanRan's user avatar
  • 660
1 vote
1 answer
69 views

iTerm2, nano and mouse

I'm using the nano editor inside iTerm2. I have configured various profiles for iTerm2. In my .nanorc, I have configured set mouse to get at least some rudimentary mouse support (since nano works ...
user1934428's user avatar
0 votes
0 answers
30 views

Grepping output from Codesign

I am trying to filter codesign command output using the following command, but it doesn't seem to work: codesign -d --entitlements - /Applications/Safari.app | grep -i "*sandbox"
Train's user avatar
  • 21
0 votes
0 answers
55 views

Sudden termination of Apple Developer account, seeking community advice

I'm facing an unfortunate issue with my Apple Developer Program membership which was suddenly terminated. I received a generic email from Apple, stating that my membership was revoked, but no specific ...
Ufuk Öncüler's user avatar
0 votes
0 answers
79 views

Command line on IOS IPad Air 4 (I’ve been hacked)

I have found multiple instances where the only possibility is that I am being remotely hacked through screen mirroring. I believe this for the following reasons: Remotely I have found open tabs/...
Sick and tired of being hacked 's user avatar
7 votes
2 answers
2k views

Why do we have 2 /usr directories

I am relatively new to MacOS, previously I used Ubuntu, so some things are quite strange for me. One of such things is that on MacOS we have 2 /usr directories. The 1st is with path /usr and the 2nd ...
user341's user avatar
  • 71
0 votes
1 answer
51 views

iTerm resize screen problem

I'm encountering an issue where the iTerm screen becomes misconfigured when my MacBook Air M2 changes the monitor or goes into sleep mode. To resolve this, I have to close the session and restart it. ...
Diego Macario's user avatar
1 vote
1 answer
108 views

Tilde expansion broken

Today tilde expansion has broken on my Mac. $ cd ~ -bash: cd: ~: No such file or directory I use vi-mode on zsh along with oh-my-zsh and thought that could be causing the issue. But switching ...
CalumMcCall's user avatar
1 vote
0 answers
42 views

Reveal app window from command line?

I'm trying to bring back up a minimized mpv window using a keyboard shortcut. I use skhd to map keyboard shortcuts to various open commands, so I can quickly launch frequently used apps. This has the ...
Harv's user avatar
  • 6,500
0 votes
0 answers
57 views

Launch New Bash Shell And Run Commands

I am attempting to launch a new shell and run a command in the new shell, and then leave the shell running interactively. I attempted the process over here [ (bash --rcfile <(echo '. ~/.bashrc; ...
Justin Goldberg's user avatar
0 votes
0 answers
19 views

How to configure the word break on Intellij terminal for Opt+Backspace

When I press Opt+Backspace within Intellij (Goland) terminal using zsh in macOS, it deletes the words until it encounters a word separator like a period, space, comma, or a dash. How do I configure it ...
overfitting's user avatar
2 votes
0 answers
103 views

Stop `open` command from opening two apps instead of one?

My default browser is DuckDuckGo, but for a particular task it doesn't work.  So in a script (zsh) I invoke Safari in a loop with: open -a /Applications/Safari.app \ $(grep ...
WGroleau's user avatar
  • 4,670
0 votes
0 answers
60 views

Custom shortcut ^ ⌘ → to switch between Spaces doesn't work from iTerm2

I bound ^+⌘+→ and ^+⌘+← as my custom shortcuts to move between Spaces (Move right a space and Move left a space respectively) in System settings > Keyboard > Keyboard Shortcuts. These shortcuts ...
gccallie's user avatar
0 votes
0 answers
26 views

Titlebar Changing on opening MacBook Air M1 terminal

On opening the terminal on my MacBook Air M1, the following happens.See link The terminal titlebar changes from login to python to zsh. i dont understand how python is getting echoed. zprofile export ...
Kartikey Doshi's user avatar
0 votes
0 answers
44 views

Java Error java.lang.UnsupportedClassVersionError

Trying to run java -Xmx4G -Xms4G -jar launch.jar but that leads to error Exception in thread "main" java.lang.UnsupportedClassVersionError: launch.jar has been compiled by a more recent ...
W. Bismarck's user avatar
0 votes
0 answers
16 views

i tried symlinking the existing package into /usr/local/bin but homebrew still keeps trying to download its own version which results in failure [duplicate]

I know from questions like Use specific local gcc and related libraries with Homebrew that this apparently isn't something easy to do, but that particular question seems to have been resolved with &...
SubtleHyperbole's user avatar
0 votes
1 answer
356 views

Can't edit hosts file on macOS 13.5 (sudo not working)

I don't have permission to edit the hosts file, even if I use sudo and turn off SIP. I use sudo vim /etc/hosts to open the hosts file. After entering :wq!, it shows: "hosts" E212: Can't open ...
SimpleMaxR's user avatar
1 vote
1 answer
198 views

How to hide system username also from title of terminal?

I know we can use: PS1="%n@ %1~ %# " to hide the username within the terminal but I see it on my title too: I want to know how can I hide this part as well?
Shivam Sahil's user avatar
1 vote
0 answers
64 views

Infinite "bin:/usr/local/bin:/usr/local:/bin" in Terminal

2 Updates: I updated bash shell to Zsh with "chsh -s /bin/zsh" which seemed to do something. I no longer get [Process Completed] or an infinite loop. Just a large block of text when typing /...
Smackanacho's user avatar
0 votes
0 answers
128 views

Is there a way to keep my Mac terminal window always on top of other windows?

When I open a new Mac terminal window using spotlight search I automatically leave the current window to the desktop with new terminal window. I am forced to change windows to use terminal with other ...
Sultan Jamalbekov's user avatar
0 votes
0 answers
44 views

Copy paste with mupdf in MacOS

I would like to copy paste with mupdf in MacOS. I can successfully highlight text by using the CTRL button and the mouse button. But I cannot copy the highlighted text. I tried the following in (found ...
ecjb's user avatar
  • 514
0 votes
0 answers
42 views

Bind backslash \ to forward delete using karabiner with DefaultKeyBinding.dict?

This is pretty beyond me but hoping someone can help. I typically change the Fn (or now Globe) modifier key to Ctrl in settings as this is my childhood on windows computers muscle memory at play. I ...
Jeremy Hall's user avatar
0 votes
1 answer
124 views

Mac Terminal and applications version installed

I have the zsh in Ventura OS. I know that I have already installed the following apps: Books.app (which came already in the system) Brackets MAMP (Package for MySQL, Apache and PHP) Adobe Photoshop ...
limakid's user avatar
0 votes
0 answers
20 views

iosnoop does not show devices

I have SIP disabled on Catalina. Running iosnoop does not show devices: sudo iosnoop -e DEVICE UID PID D BLOCK SIZE COMM PATHNAME ?? 501 5824 R 37998200 262144 com.apple....
mariano-daniel's user avatar
0 votes
2 answers
150 views

How to copy an application folder (.app) using terminal

I have an application I downloaded in a form of .app file in downloads. How can I copy it to /Applications using the terminal? Since it is actually a folder I can use cp directly so it seems. Using ...
GeorgeIrwin's user avatar
0 votes
0 answers
39 views

Mac M2 default terminal in VSCode not working as expected [duplicate]

Step by step: In VSCode I've set the default terminal (Command + Shift + P -> >Terminal: Select Default Profile) to bash (/bin/bash). Close all terminals, open a new one (Control + Shift + `) ...
JoelBonetR's user avatar