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
0answers
3 views

Single-user mode not allowing write access

I'm trying to copy some files from Single user mode to an external USB but I'm having trouble. I can't use the terminal in another account because it's not an administrator account and it's not in the ...
1
vote
1answer
23 views

How do you open a specific folder in Finder without applescript?

Background I've replaced Finder as the default folder-opening app by editing ~/Library/Preferences/com.apple.LaunchServices/com.apple.launchservices.secure.plist: <snip> { ...
0
votes
0answers
19 views

How to search Terminal history? [closed]

I know I can press arrow up to go back in history one by one. However, this is very time-consuming. Anyone knows a way to have a search option that by typing parts of the command, would retrieve the ...
0
votes
0answers
7 views

Am I using brew tap incorrectly? [closed]

I am still getting used to brew and have some questions. To download something from GitHub I would use the following: brew tap user/file RepoLink Here is an example I am attempting to download: brew ...
0
votes
2answers
43 views

How do I access files, copy them on an external hard drive, and see them on it?

I'm trying to recover the password of an old iMac, couldn’t boot to Recovery though. So I went into single user mode to access the files, which worked. I have an external hard drive that is formatted ...
0
votes
0answers
10 views

Switch Option Key behavior globally to match terminal “Meta” key functionality

I use/love emacs and I also love using emacs like navigation text in MacOS, e.g. "Meta-b" moves the cursor to the beginning of the last word. Most emacs navigation works by default including ...
0
votes
1answer
20 views

MacOS Catalina duplicating files on save

I'm a software developer and I constantly need to save files of course. The problem I'm experiencing right now is that intermittently my laptop creates new files of the ones I'm saving/compiling. I'll ...
0
votes
1answer
14 views

Noob struggling to tell terminal to install scikit-image 0.16.2 for Pyxelate

I'm using macOS Catalina version 10.15.7 I think this should be a very easy install, but apparently not. At first, I spotted terminal told me I don't have Cython. Ok. I installed it, then it gave me a ...
1
vote
1answer
49 views

Big Sur terminal sometimes 5-second lag when 16in macbook pro running on battery

Update 2 Looks like this is a known bug with the hybrid graphics of my MBP, as the answer below points out. Here's another thread. Interestingly, I haven't noticed any issues in other apps like Chrome ...
0
votes
1answer
20 views

Apps suddenly can't be opened?

I had Terminal and TextEdit open, a couple of Finder windows, and possibly another app or two. This was a few hours after updating to macOS 11.1 (20C69) in case that is the cause. In Terminal, I did ...
2
votes
1answer
24 views

How to debug missing libraries on macOS?

I'm trying to figure out why a binary isn't linking a shared library. On Linux the standard way to do this is LD_DEBUG=libs that shows the path of all linked libraries, but this isn't producing any ...
0
votes
0answers
26 views

When i restart terminal, brew wont work [Mac] [closed]

I installed brew without sudo git clone --depth=1 https://github.com/Homebrew/brew ~/.brew And when I close and open the terminal again, It says '-bash: brew: command not found' I tried reinstalling ...
0
votes
1answer
22 views

How do I make a command run automatically when I open a new terminal window?

How do I make a command run automatically (in my case: alias t="todo.sh") whenever I open a new terminal window? I've looked for many posts but they all have personalised commands, which ...
0
votes
0answers
13 views

Framerate in command line usage of Compressor

I use Apple compressor from the command line to generate video clips from sequences of images. Here https://support.apple.com/en-gb/guide/compressor/cpsr9be73312/mac it looks like the command line ...
0
votes
0answers
16 views

Microsoft AutoUpdate: msupdate command returns “Daemon is busy…”

I use topgrade for updating my software stack. It's calling msupdate which always fails. '/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/msupdate' ERROR: No ...
0
votes
2answers
42 views

Mac daemon not able to run bash script

Originally asked on Stack Overflow, but it may be more suited for here. Wherever it’s answered first, I’ll be sure to update the counterpart question with the same answer. I've already checked this ...
1
vote
2answers
22 views

Notification when Apple compressor is done

I'm using the Apple compressor app from the command line to generate movies from sequences of images. This works fine, but the relevant command line command just exits before the job is done (while ...
0
votes
0answers
25 views

Brew and GitHub [closed]

I know that I can use brew to install regular apps and have them added to my application folder by using something like this, brew cask install --appdir="/Applications" google-chrome b Is it ...
0
votes
2answers
40 views

How to quickly rename files on NAS

I have recently added a Qnap (Linux) NAS to my Mac OS environment, as the main file server. I realized many of the Mac OS files have / characters, that do not behave well in Linux, as they disappear ...
1
vote
1answer
63 views

Make a sound in zsh when a command is not found

How can I get zsh to play a sound when the command is not found? Ex: I have the alias vpn to open my VPN from the terminal (zsh). If sometimes by mistake I type cpn instead of vpn, I get the following ...
0
votes
1answer
38 views

Terminal can't execute files In CWD

I stated having this behaviour recently when I tried executing my sh script via sh my_script.sh. It was a simple script with some pyinstaller command. Now, the issue that I'm having is that my ...
0
votes
0answers
48 views
+50

“locate” returns relative instead of absolute paths

I have the following entry in root's crontab: 0 */4 * * * cd /private/var/root && ./locate.updatedb I have an alias for locate in ~/.zshrc: alias locate='locate -d /var/db/locate.database' ...
0
votes
1answer
23 views

Using NTFS-3G to write to an external hard drive results in error code 100102

I have an external Seagate hard drive that is recognised and works on Windows computers but not on my MacBook Air which I am currently using. I am able to mount the hard drive in read-only mode but I ...
1
vote
1answer
62 views

Python 3 Not Updating in Shell on Mac Mini M1

My Mac Mini M1 shipped with Python 3.8.5. I first installed Anaconda, then downloaded Python 3.9.1 (macOS 64-bit universal2 installer), installed that and ran Update Shell Profile.command. IDLE runs ...
1
vote
0answers
31 views

External hard drive not recognised on Mac - Problem when using diskutil command on Terminal to eject it

I have an external Seagate hard drive that is recognised and works on Windows computers but not on my MacBook Air which I am currently using. I have looked at a lot of tutorials regarding this, and I ...
0
votes
0answers
14 views

Is there a way to force changes made to speech plist take effect without rebooting?

I made changes the voice rate in com.apple.speech.voice.prefs.plist. In order for it to take effect, I have to reboot. Is there a way to get the same effect without rebooting?
1
vote
2answers
34 views

Cloning a directory in terminal, using ZSH

I'm trying to clone a directory which holds a git repo. i.e., I have /Users/me/someFolder - someFolder has ALOT of files, like over 250k. It's also a git repo, with a .git directory, and many other ...
0
votes
1answer
39 views

Devanagari font in macOS Terminal not rendering properly

[Setup] - I have a M1 Mac mini running Big Sur. I am using Devanagari-QWERTY input method for typing Marathi/Hindi. [Problem] - All is well when typing in apps like Pages, Stickies, Safari etc.. ...
3
votes
1answer
94 views

In Mac, how to do `tail -f --pid` to terminate after process exit like Linux?

tail command in current Linux has --pid option to terminate after certain process id, while tail under MAC OSX doesn't have the same option. e.g. tail -f --pid=<process_pid> can terminate tail ...
0
votes
1answer
38 views

MySQL connection via SSH tunnel

I've been trying to set up a SSH tunnel with VPN on my macbook with Big Sur 11.2, but it doesn't seem to work. On my linux machine, I can simply turn on the VPN and make a SSH-tunnel. Then I can just ...
3
votes
1answer
157 views

How can I send rendered Markdown files to the printer from the command line?

I wrote a Markdown file which I wish to print. The rendered version, not the raw version. Printing in GUI works fine. I wish to format Mardown files with mdcat and send the result/output to printer. ...
0
votes
3answers
27 views

Terminal doesn't print special characters after changing to Italian keyboard layout

I'm on a second-hand macbook pro from 2013, running catalina 10.15. It has built-in British keyboard layout but since I mostly write in Italian on an external Italian keyboard, I switched the layout ...
0
votes
0answers
15 views

Bengali font not rendering correctly in terminal

Expected rendering of bengali text: আমদানির শুল্ক কমানোর ঘোষণার প্রভাব নেই চালের দামে। উল্টো বেড়েছে। তবে ভারত রপ্তানি খুলে দেওয়ার খবরে প্রতিদিন কমছে পেঁয়াজের দাম। I use Terminal.app and zsh In ...
2
votes
1answer
35 views

When do processes run under root by default?

I know that when I use "sudo" an application can run under root, or if a window appears saying "Application wants to make changes to the system, enter your password for this", they ...
1
vote
1answer
21 views

LaunchAgents zip/tar not working in plist?

I created the plist for a 'custom' backup agent (via LaunchAgent). The (zip) program is called, but I keep getting a 'zip error: Nothing to do!' in my logs. I assume it has something todo with ...
0
votes
0answers
27 views

Force the use of a modifier key in order to drag/move files in Finder

Disclaimer: I have actual clinically diagnosed OCD, so please, excuse my request if you find it silly, thank you. Sometimes I misclick while using Finder, and as a result, files are dragged and moved ...
1
vote
0answers
33 views

Terminal adds too much whitespace when there are surrogate-pair emoji in the prompt

I've set my prompt using this: PROMPT='👨🏻‍💻 %1d: ' but now terminal puts the cursor quite far behind the colon. When I type text, the text does appear where I'd expect it to, but the cursor shows ...
0
votes
1answer
15 views

What is the difference in the way PageUp/Pagedown keys are handled by Terminal.app vs iTerm2.app?

I had an SOF question about the ipython REPL handling of scrolling https://stackoverflow.com/q/65385315/1056563 Cycle through ipython “history” with one keystroke per item even when multiple lines ...
0
votes
0answers
23 views

Cannot Change/Replace Files in /System/Library/LoginPlugins/BezelServices.loginPlugin/Contents/Resources

For reference- I just updated to Big Sur on a MacBook I have owned for a matter of hours (it's my first ever as well). I want to replace the volume.aiff (the source of the volume changing noise) file ...
2
votes
1answer
326 views

Big Sur switched to zsh terminal but still uses .bash_profile

I've upgraded to Big Sur and noticed my user was still using bash shell, so I changed Users → Advanced Options → Login shell to /bin/zsh and restarted. The shell that starts appears to be zsh insofar ...
3
votes
1answer
239 views

Running sudo when user has blank password?

I have a user with a blank password, but now I can't run sudo with that account. sudo ls Password: Sorry, try again. Password: Sorry, try again. Password: sudo: 3 incorrect password attempts Is there ...
2
votes
2answers
74 views

Terminal output messed up on Big Sur

my terminal is showing output in weird way and I don't know what it is called, so couldn't find similar question on this site, so pardon me for asking again. This is the output on my terminal on MacOS ...
2
votes
1answer
59 views

Access Fast User Switching from a script in Big Sur

In macOS Mojave, I found that you could make an Automator app that allowed fast user switching by a hot key. The command run was /System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/...
1
vote
1answer
20 views

Connecting to a device console using screen shows no output

I am trying to access a network device console from my mac using a Prolific Technology USB-serial adapter to the device's console. After installing the relevant driver, the adapter is correctly shown: ...
1
vote
1answer
54 views

I can't seem to open this .jar file. Can someone make sense out of my error message?

I'm trying to set up a modded minecraft server on my Mac. I am on Mojave 10.14.6 and I have Java SE Oracle JDK 15.0.1 installed. Each time I attempt to open the file forge-1.12.2-14.23.5.2854-...
1
vote
1answer
45 views

How to mass apply No Access to all folders but one for a specific user account only?

(This is just experimenting for educational purposes.) I'm the admin of the computer and I have SIP disabled. I wish to imitate iOS restrictions on macOS by prohibiting access (to one other specific ...
1
vote
1answer
105 views

macOS: How to read the file system of a disc image

is there terminal command that shows/reads the file system(s) (and versions) of a .iso or .dmg image? E.g. Udf 2.50/Joliet/hfs+
1
vote
1answer
29 views

Sips: resize image's smallest side, not largest side

The command sips -z 2000 image.jpg will resize the biggest side of an image to 2000 if it is greater than 2000, while preserving the original aspect ratio. Is there a similar command that will resize ...
0
votes
1answer
37 views

How to move through words and break on punctuation on terminal?

I changed laptop and I cannot configure my Terminal the way it was. I had this shortcut to delete words, and when deleting ab-cd.ef_gh, it would go ab-cd.ef_ then ab-cd. then ab- then nothing. So it ...
0
votes
0answers
44 views

Cannot ssh to remote hosts on any port other than 22 from macOS

I recently switched the ssh listen port on my OpenWRT server running Dropbear from 22 to a random one to prevent the system log from being flooded by someone brute-forcing. Everything is fine and I am ...

1
2 3 4 5
107