Questions tagged [terminal.app]

The terminal emulator included in Mac OS X.

Filter by
Sorted by
Tagged with
0 votes
1 answer
36 views

Script to recognize file name up to "-" symbol and create folder with same name move all files into that folder

I have this /Folder1/108462-2.jpg /Folder1/108462-3.jpg /Folder1/BSR2333-1.jpg /Folder1/BSR2333-2.jpg /Folder1/DKS23108554-1.jpg /Folder1/DKS23108554-2.jpg I would like to have this: /108462/108462-2....
NicoTitan's user avatar
0 votes
0 answers
16 views

What does a question mark over a blue folder icon mean?

I use conda to manage virtual environments for my coding projects. I have a specific environment that when activate through the Terminal app will make the following icon appear on top: This is right ...
Raul Guarini Riva's user avatar
0 votes
0 answers
105 views

Running App as root using Apple Script?

I am trying to use an Apple Script to run an application as root without asking for password all the time. I used this Apple Script code: do shell script "/Applications/MyApp.app" user name &...
Codename K's user avatar
1 vote
0 answers
45 views

Why does zsh navigation behave differently in the VS Code terminal vs macOS terminal?

When I am using zsh in the inbuilt VS Code terminal, I can: a) use the up and down arrow keys to navigate through my command history when typing a command: zsh command navigation b) use all arrow keys ...
Staś Werno's user avatar
0 votes
0 answers
24 views

Skipped lines reading series of ffmpeg commands [duplicate]

I have a text file that contains these lines: ffmpeg -ss 00:00 -i TGP.mp4 -ss 00:00:00 -to 00:44:01 -c copy '01_Myles_Burnyeat_on_Plato.mp4' ffmpeg -ss 00:00 -i TGP.mp4 -ss 00:43:57 -to 01:27:26 -c ...
Scott's user avatar
  • 1
1 vote
0 answers
47 views

I installed Pyyaml before Libyaml. How do I get Pyyaml to have Libyaml support?

I'm on macOS Sonoma. I installed Pyyaml before Libyaml by accident. I installed Pyyaml with pip and Libyaml with Homebrew. How do I get Pyyaml to have Libyaml support? I tried uninstalling it, but it ...
lafunbug's user avatar
0 votes
0 answers
54 views

Can I give a directory back to superuser?

I'm on macOS Sonoma. I was installing some Python and C packages in Homebrew, and it asked me to run: sudo chown -R username /usr/local/opt And: chmod u+w /usr/local/opt Now that I've installed the ...
lafunbug's user avatar
0 votes
1 answer
67 views

How to know update size on the Mac OS?

The question I have is the same as this one. However, I'm new here and I can't comment to ask more information about the provided answer... The question is: How can you find out how big is the ...
J.K.'s user avatar
  • 1
1 vote
0 answers
271 views

Clear previous command output (not full screen)

Example This is on the terminal screen: user@host ~ % ls dir1 dir2 dir3 user@host ~ % whoami user user@host ~ % date Wed May 24 16:25:26 -03 2023 user@host ~ % [CURSOR IS HERE] I'm trying to ...
ranemirusG's user avatar
1 vote
0 answers
109 views

bindkey to Alt + Shift + p has no effect

Capital p with Alt and Shift no longer seem to register as keystroes on my Mac OS with iTerm 2 (or Terminal). Therefore this key has no effect: bindkey -s "^[P" "echo 'I cannot trigger ...
Sridhar Sarnobat's user avatar
0 votes
2 answers
424 views

Remove all characters in multiple filenames, that follow a specific character, in Mac OS

Trying to find a script, or app, that batch removes filename clutter following proper formatting. For example this Exercise [2009] previous version.png into this Exercise [2009].png I need the final ...
Major Van Bloodnok's user avatar
0 votes
0 answers
86 views

Is it possible to stop Terminal from running a specific command on MacOS?

I'm looking for a way to stop a specific command from being ran on MacOS's terminal, or if that's not possible lock it (either with a different password than the user password, or time lock it) before ...
Michael L's user avatar
0 votes
1 answer
61 views

In macOS, is there a keyboard shortcut to navigate panes in the Terminal.app?

Ian macOS, is there a keyboard shortcut to navigate among Terminal.app's split panes within a window?
zigmoo's user avatar
  • 21
0 votes
0 answers
108 views

Execute a program with a sequential list of files

I have a list of files with titles like the following: file_0.10_180.0degrees.txt file_0.15_180.0degrees.txt file_0.20_180.0degrees.txt file_0.25_180.0degrees.txt where the files can be passed in as ...
ConfusedStudent's user avatar
1 vote
2 answers
69 views

Ncdu is filled with ?~V~H garbled symbols after a reinstall of macOS Monterey

On my newest re-install of macOS Monterey ncdu suddenly looks really weird. A lot of the directories are shown with ?~V~H behind and next to them. This issue persists across multiple Terminal profiles....
EmilFrom's user avatar
2 votes
0 answers
39 views

How do I figure out when the fingerprint (Touch ID) and password were changed on my MacBook Air using Terminal?

I am on macOS Big Sur and trying to figure out when my TouchID and password were changed on my MacBook Air. Is there a command I can type in Terminal I can use to find this information? I am trying to ...
David's user avatar
  • 21
2 votes
1 answer
103 views

How to change mac terminal keybinding for color picker to execute the escape sequence instead?

Every time I hit command + shift + c in the terminal app it opens a color picker. I would like this keybinding to instead send the escape sequence to the terminal to cancel the execution of the ...
Derek M's user avatar
  • 21
1 vote
2 answers
1k views

Can not execute a file from terminal located in the same directory

I want to execute graldew. It is definitely in the same directory and it has all the permission. But when I try to execute it I get command not found. Also I can not even autocomplete it using TAB ...
Kosh's user avatar
  • 228
3 votes
2 answers
34k views

Any ideas on how to reset my zsh terminal to default?

I need help with my zsh environment. I am just getting into customizing my terminal and I have managed to mess up my terminal. I have lost access to the whole terminal as it no longer accepts any ...
Dauda Fahad M Garba's user avatar
4 votes
1 answer
5k views

locate command does not work on mac terminal

I'm working on Mac (Catalina, 10.15.7) and want to use the locate <...>-command. After typing locate ... it suggested me the following, which I did. WARNING: The locate database (/var/db/locate....
NilsK's user avatar
  • 145
1 vote
1 answer
197 views

How to find current point size on MacOS Catalina Terminal utility? Not how to increase or decrease point size

Is there a way to find out what point size my terminal is using? I open up a terminal and hit CMD + until it looks good, but would like to find that setting and stick that number in the profile ...
smartblonde's user avatar
1 vote
1 answer
1k views

Removing Duplicate Files on MacOS Terminal Using MD5

I found the following command that makes use of md5 file hashes to find duplicate files and list them in a text file. find ./ -type f -exec md5 {} \; | awk -F '=' '{print $2 "\t" $1}' | sort ...
Train's user avatar
  • 13
3 votes
1 answer
928 views

What is the upper limit on the size of a macOS Terminal session?

I am doing a lengthy SageMath calculation in Terminal that I plan to save the results of to disk using Shell > Export Text As... The resulting text file will be somewhere in the neighborhood of 10 ...
mathematrucker's user avatar
1 vote
1 answer
2k views

Display tilde (~) instead of home folder name when at home in macOS Terminal (zsh)

How do I have ~ $ instead of myUsername $ in zsh? My bash displays like the former and I like it because it looks cleaner. My .bash_profile export BASH_SILENCE_DEPRECATION_WARNING=1 export PS1="\...
user14728486's user avatar
2 votes
1 answer
1k views

What is the terminal for apple screen time?

Quick question. What is the terminal term for  Screen Time? I have tried to find it using 'help', but it will not show me any commands related to screen time.
Meade Oreo's user avatar
1 vote
2 answers
4k views

How can I batch convert a directory of subfolders from FLAC to ALAC?

Right now I'm converting each folder in Terminal manually using the following command, for i in *.flac; do echo $i; ffmpeg -i "$i" -y -v 0 -vcodec copy -acodec alac "${i%.flac}"....
Anthony0076's user avatar
1 vote
0 answers
2k views

“no such file or directory:” - how to remove directory from .zprofile

I recently uninstalled homebrew from my Mac (macOS 11.2) and since then my terminal opens with the following message: /Users/lukas/.zprofile:6: no such file or directory: /opt/homebrew/bin/brew I ...
Dunkwart's user avatar
0 votes
1 answer
218 views

FFmpeg multi input remux multi output...no such file or directory error

I've been trying to use this to remove the audio from multiple files in the same directory and remux them back in a different location. Hoevewer I keep getting the "'/myfolder/stuff/*.mkv'" &...
Sup Kafu's user avatar
0 votes
1 answer
503 views

Resetting the PRAM on a PowerMac G5 using Terminal 1.5.1

Need to reset the PRAM using Terminal 1.5 on a PowerMac G5 running Mac OS X 10.4.11 Tiger. However, when I enter the command in Terminal: sudo nvram -c c in not an option for that version of Terminal....
user14054961's user avatar
0 votes
1 answer
64 views

How do I go about removing a built-in application on MacOS Catalina 10.15.6?

Here are the things I've tried... I'm within /System/Application, went into Finder and was able to change permission to custom and have set both Admin/Everyone to Read/Write. Disabled SIP Became root ...
RobbyJC's user avatar
1 vote
1 answer
917 views

'Make text smaller' actually reduce the size of the window with terminal or iterm2 in mac, instead of the font size

If I am in full screen mode the shortcut cmd+ and cmd- increase or reduce the size of the text, as it should. Otherwise the shortcuts just reduce or increase the size of entire window, they don't ...
Andrea Angeletti's user avatar
0 votes
1 answer
6k views

How to uninstall iTerm form the mac?

How can I uninstall iTerm from my Mac? I searched a lot on the Internet but I didn't find any helpful Informations. I want to mention too that I installed iTerm without using Homebrew.
user avatar
1 vote
0 answers
79 views

How do I open URLs in the background of an existing Chrome window with Terminal on MacOS?

Currently I am building an iOS shortcut to open multiple links through SSH on my MacBook and I am wondering if it is possible to open URLs in the background of Google Chrome without losing focus of ...
LudwikDE's user avatar
12 votes
1 answer
8k views

Operation not permitted using Find in macOS Terminal

This is a lead-up to my main question here (Fully uninstall Norton from mac) I get "Operation not permitted" when running "sudo find" in terminal on macOS. I have given terminal ...
Tim's user avatar
  • 131
0 votes
0 answers
640 views

"other" storage in Mac is 27gbs after clean install of BigSur beta

I downloaded and installed macOS Big Sur beta. I did a clean install and in my storage I have 14gbs used by the system and the "other" is taking 27gbs and I can't seem to find out what is ...
Vibhor Sagar's user avatar
0 votes
1 answer
170 views

Automator/Terminal/Apple Script: Fetch data from macos console app

I want to use automator or terminal to fetch data from the mac console app. In particular: If you search for "sleepwake" in the console app › tab "Mac Analytics Data", you get the ...
User123456789's user avatar
3 votes
1 answer
2k views

Time Machine: tmutil compare gives always 0B as result

i had several time machine backups. The most recent drive failed. I wanted to compare an older backup to my current Mac OS internal drive. Usually, you would use sudo tmutil compare however it gives ...
User123456789's user avatar
1 vote
1 answer
846 views

new tab doesn't work as intended in zsh

I want to open a new tab in same directory but it always move home directory. e.g.(~/sample press cmd + t, then ~) These are results of commands which seems to relevant cat /etc/shells /bin/bash /bin/...
マスターヨーダー's user avatar
0 votes
0 answers
3k views

Anaconda on machine but conda command not found

I haven't used Anaconda in a while, I typed conda info into iTerm2 to read this error: zsh: command not found: conda I have copied the relevant .bashrc file information into the .zshrc file and still ...
rsky moon's user avatar
1 vote
0 answers
116 views

How do I ensure bash *never* expands paths in environment variables when tab-completing?

$ bash --version GNU bash, version 4.3.48(1)-release (x86_64-pc-linux-gnu) I normally using the above bash version on an Ubuntu 16.04 machine via MATE terminal. Currently however I am using macOS 10....
mystery's user avatar
  • 293
0 votes
0 answers
328 views

(Mac terminal) command line advice for extracting thousands of archives

I have literally thousands of archives containing Amiga adf files that I've downloaded and want to unpack them all. Can someone please tell me the command line i need to use in terminal in order to ...
Steve Garratt's user avatar
2 votes
1 answer
308 views

Why is vim swapping case on forward-delete?

Vim + Catalina I just switched to MacOS Catalina which has zsh and vim 8.1 out-of-the-box. VIM - Vi IMproved 8.1 (2018 May 18, compiled Dec 13 2019 14:45:40) Included patches: 1-503, 505-680, 682-...
coolaj86's user avatar
  • 913
1 vote
0 answers
1k views

Is there a way to recursivly set "Snap to Grid" as a folder setting in finder?

macOS Catalina I have noticed that when I create a directory it does not inherit "Snap to Grid". Is there a way to make it that a folder inherits that setting or is there a command I can run to ...
84s265x151e8c2s1s4ew's user avatar
3 votes
0 answers
814 views

macOS 10.15.3: Cannot delete peculiar file

I have just moved on to a new MacBook Pro(15 inch, 2017), and I am trying to delete a very peculiar file: /Users/tommy/Desktop/com.apple 07-11-49-482.SafariTechnologyPreview/SafariFamily rm doesn't ...
tommyaq's user avatar
  • 63
0 votes
1 answer
2k views

Chrome wont open links from Slack or Terminal on MacOS Mojave

When I click on links in Slack or run terminal commands like Jupyter Notebook, which previously have prompted Chrome to open a link, no link opens in Chrome. macOS Mojave Chrome 78.0.3904.108
Jonas Bolin's user avatar
1 vote
0 answers
106 views

Override MacOS Terminal Menu With Embedded Dash

I see a menu item in MacOS Terminal which looks like "New Tab with Profile - Homebrew". I'd like to override the Cmd-T shortcut which Terminal helpfully assigned to it because the last tab I opened ...
Kevin Kleinfelter's user avatar
0 votes
1 answer
1k views

Unable to switch to channels 12 and 13 using terminal "airport" utility on MacOS (in wireless-monitoring mode)

There is a terminal airport utility in MacOS that can be used for wireless diagnostics. Detailed here: http://osxdaily.com/2007/01/18/airport-the-little-known-command-line-wireless-utility/ It can be ...
Somy Nona's user avatar
8 votes
1 answer
6k views

Ping more than 56 bytes on macOS

I am on macOS and using terminal to ping. How would I be able to ping more than 56 bytes? I tried to search but was not able to find the answer.
Rando54's user avatar
  • 89
0 votes
1 answer
303 views

Can't Open .rtf When made in terminal 2013 MacBook Air Mojave 10.14.6

Whenever I make a .rtf in the terminal app, with the touch command: touch FileName.rtf I am only able to open the file with terminal and I am unable to open the file with any other program i.e. ...
Squanch's user avatar
1 vote
1 answer
717 views

Installing Pygame on Mac 10.11.6

As the title suggests I am having trouble installing pygame on my Mac. I've tried a lot different solutions. Such as using the steps in Python Crash Course to looking on stack overflow. I've tried: ...
MasterAshanti's user avatar

1
2 3 4 5
9