Questions tagged [terminal.app]
The terminal emulator included in Mac OS X.
412
questions
1
vote
0
answers
28
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 ...
1
vote
0
answers
34
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 ...
0
votes
2
answers
116
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 ...
0
votes
0
answers
31
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 ...
0
votes
1
answer
25
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?
0
votes
0
answers
7
views
macOS: Can I mount a folder as a Finder-searchable path within another folder?
Since Finder will not search the contents of folders via symlinks, I'm wondering if there is some other way to add a link to a folder within another folder that would make the linked folder's contents ...
0
votes
0
answers
35
views
Where does the macOS terminal "host name" come from?
On a unix terminal, I would expect to see something like
username@hostname ~ %
and the hostname should be the name of the computer I am currently working on. However, on macOS, when I open the ...
0
votes
0
answers
59
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 ...
1
vote
2
answers
63
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....
2
votes
0
answers
27
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 ...
1
vote
0
answers
67
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 ...
0
votes
2
answers
646
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 ...
3
votes
2
answers
19k
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 ...
1
vote
1
answer
3k
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....
1
vote
1
answer
147
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 ...
1
vote
1
answer
620
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 ...
3
votes
1
answer
536
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 ...
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="\...
2
votes
1
answer
994
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.
1
vote
2
answers
3k
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}"....
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 ...
0
votes
1
answer
177
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'" &...
0
votes
1
answer
274
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....
0
votes
1
answer
57
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 ...
1
vote
1
answer
603
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 ...
0
votes
1
answer
4k
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.
1
vote
0
answers
53
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 ...
9
votes
1
answer
5k
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 ...
0
votes
0
answers
639
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 ...
0
votes
1
answer
133
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 ...
3
votes
1
answer
1k
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 ...
1
vote
1
answer
622
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/...
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 ...
1
vote
0
answers
80
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....
0
votes
0
answers
286
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 ...
2
votes
1
answer
237
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-...
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 ...
3
votes
0
answers
786
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 ...
0
votes
1
answer
987
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
1
vote
0
answers
97
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 ...
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 ...
8
votes
1
answer
4k
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.
0
votes
1
answer
150
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. ...
1
vote
1
answer
714
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:
...
2
votes
1
answer
158
views
How do I keep using terminal while qlmanage is running?
I am using the command qlmanage -p (file) >/dev/null 2>/dev/null to open quicklook with a file and send both stdout and stderr to /dev/null. I would like the quicklook to stay up while I keep ...
3
votes
1
answer
1k
views
How to set up a keyboard shortcut to open Terminal on macOS FOR FREE?
Tried looking all over the internet, they all require buying third party programs that support the feature, or suggest programs that don't work for me. Like Automator.
Automator doesn't recognize ...
0
votes
1
answer
95
views
Download a video from news website
I was on the local news today and would like to download the video from their web page. I have been strugling with terminal for an hour now. What is the best way to download a video like this?
https:/...
0
votes
1
answer
66
views
Terminal (Mac) isn't behaving as it should on startup
Apologies for this rookie question, but I have no idea what to do or who to ask to try and fix this.
While following a Codecademy course and trying to set up Git, I did something that I can't for ...
0
votes
1
answer
68
views
'man airport' executable in System Library but want it to be on /usr/bin/ fir global execution (MacOS
I want the binary airport command which is in
/System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/
to be in /usr/bin using sudo cp source dest but BSD OS prevents me from ...
9
votes
1
answer
14k
views
How can I select a line in the macOS terminal with keyboard shortcuts?
I've recently just switched over to macOS from Windows and I previously used PowerShell. In PowerShell, I could type out a command and hit ctrl/command a and it would select whatever I wrote, so that ...