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

Is there a config file only sourced once at login and available in all terminal sessions in Big Sur?

I found out every terminal tab is a login session on macOS. That means ~/.zprofile will be sourced at every new terminal tab. I have some heavy loading scripts. It will take some seconds to load. ...
3
votes
1answer
404 views

Why is ~/.zprofile always sourced on every interactive session?

from zsh document, ~/.zprofile should only be sourced at login shell, and should NOT be sourced at every interactive session (for example, a new tab in a terminal). I am running MacOS Big Sur 11.2.3 (...
2
votes
1answer
276 views

MacOSX Big Sur - Terminal ZSH Shell Command's Execute Sometimes With “!” Exclamation Symbol In Front

Is this normal behavior for MacOS Big Sur ZSH (Z Shell) terminal? Sometimes shell commands such as find and or launchd as just a simple example execute properly. This is with the exclamation symbol &...
1
vote
0answers
17 views

Edit lots of profiles in iTerm2

A longtime user of Terminal on the Mac, a colleague recently recommended iTerm2. I had a play around with it, and the same colleague gave me his Profiles JSON file. In vim, I was able to do a ...
0
votes
0answers
16 views

.bash_profile completely empty even after Python update [closed]

I have updated to Python3 installed via homebrew, so when I type in python3 version the correct version comes up, but I have tried to change the alias, however my bash_profile is completely empty and ...
0
votes
0answers
23 views

Copy of Terminal app is removed after each restart

I'm using a M1 Mac Mini and have created a duplicate of the Terminal app called "Rosetta Terminal" that runs Rosetta. Each time I restart/update my computer this duplicate is removed from ...
0
votes
0answers
17 views

Is there any way to access iCloud Drive folders from the terminal? [closed]

I was wondering if there is any way to access the folders in iCloud Drive through the Terminal, using commands to navigate in the filesystem?
0
votes
1answer
24 views

Is it possibile .zshrc is not available in ~?

I can’t find the file zshrc in my user home folder, is it possible it doesn’t exist and I have to create it as a new file? I use zsh as default shell on macOS 11.2.3
1
vote
0answers
12 views

Awakening of the standby mode

You can set with pmset the standby mode in the energymanagement settings. To become your mac to sleep without to stop other processes I have set the hibernatemode 25. Now I don't know why the mac do ...
0
votes
2answers
41 views

iterm2 vs xterm

I am a long time xterm user. As a Sys Admin I connect to many, many Linux systems. My practice has been to use XQuartz to connect to a central system from which I can access all the other systems. ...
0
votes
1answer
47 views

How can I export a list of files within a volume or folder?

I would like to export a list of files contained in a Volume into legible text, or a spreadsheet document that I can easily share. Things I have tried so far that didn't work: TextEdit: If I select ...
1
vote
1answer
81 views

Is there a way to get Finder to remember all my tabs and reopen them after restarting?

Just like with Terminal, I tend to have many Finder tabs open most of the time. Sometimes, I need to restart Finder and OneDrive (e.g., see https://superuser.com/questions/1546441/very-high-cpu-usage-...
0
votes
0answers
15 views

Program notifications with the style of Volume and Brightness banner

Using Applescript it is very easy to send Notifications on Mac Clients. With other Libraries you even get more functionalities. But is there a way to program the notifications/alerts such that they ...
0
votes
0answers
10 views

Terminal / Shell / Bash: Rename font-otf accordingly to a meta tag?

I have a lot of otf-files that got accidentally renamed to unusable names. Fortunately, if I click cmd+i on Mac, they still have their original name saved as "full name" in some font-meta-...
2
votes
1answer
33 views

Without realizing the time it would take to complete, I issued the command sudo /usr/libexec/locate.updatedb . What happens if I kill the process?

Will killing the process cause problems if I shutdown and reboot immediately after doing it? I am running OS 11.2.3 (Big Sur) on Mac Mini.
0
votes
1answer
20 views

Create extra dock item that runs a bash script

I currently have the Terminal in my dock. I'd like to have another Terminal shortcut in the dock but with this one it will run a bash script which will do some stuff specific to that shortcut. No, I ...
0
votes
0answers
23 views

Change remote directory after connecting via ssh

I want to make a ssh-config, that automatically changes the folder after connecting. I heart of a possibility in the linux universe with the configuration in ssh-config-file. Something like this: ...
0
votes
1answer
43 views

Why is a Rosetta-specific terminal recommended for Ruby development on M1? [closed]

In various "how to set up your Ruby development environment on an M1 Mac" tutorials (like this one), there is a repeated recommendation to run the entire terminal under Rosetta2. What is the ...
0
votes
1answer
31 views

Reviving unmountable & unformattable usb drive

I have a USB drive, which was a bootable Windows drive, which I seldom used. Recently I tried to format it, and it went corrupted (I hope). I'd like to find out if it's broken or not. I'd tried to ...
0
votes
0answers
18 views

Youtube-dl and ffmpeg - error (Javascript / shell script)

I'm using an automation platform called Soundflow, which uses custom javascript code to control various things with shortcut triggers - it's highly recommended! I have one script that makes use of ...
2
votes
2answers
47 views

How to script Network Preferences using the CLI

As the title implies for development I enable/disable Web proxies, however doing it through the UI is slow and cumbersome its also pretty inflexible. I'm looking to control the following checked ...
2
votes
2answers
86 views

How to open another Account's User folder using Terminal?

I used to be able to use one of these commands to switch to another user account (my own) to work on it. john$ login admin password: admin$ open . LSOpenURLsWithRole() failed with error -610 for the ...
1
vote
0answers
34 views

Cannot access terminal in recovery mode on M1 Mac

I am trying to follow this tutorial to temporaily disable SIP on my new M1 MacBook Air. Once I get into recovery mode, instead of seeing a Utilities menu where I can open the terminal, I see a message ...
2
votes
1answer
38 views

If i run terminal on rossetta2 then will all the processes run on rossetta 2 itself?

Reason i am asking is i want to build some docker images which are not suitable on arm right now .. so i am just wondering If i run terminal on rossetta2 and build docker images. Those images will be ...
0
votes
1answer
37 views

MacOS terminal switches computer name from “macbook-pro” to “huawei_p_smart”: should I worry? [duplicate]

When opening a terminal, I noticed that the laptop's name displayed in front of the username changed from something like "myname's_MacBookPro" to "huawei_p_smart-XXX". Why did this ...
2
votes
1answer
32 views

Is there any difference installing command line tools with xcode-select --install or through developer.apple.com

Is there any difference installing command line tools with xcode-select --install in the terminal and installing it through the graphical program from developer.apple.com ?
0
votes
1answer
13 views

macOS: saving images from the clipboard using `pngpaste` is faded and white

When I take a screenshot on macOS, and use pngpaste a1.png to save it, the image is faded: This only happens when I take a fullscreen screenshot using CMD+SHIFT+3, and not with CMD+SHIFT+4.
1
vote
1answer
46 views

Use terminal to get Mac battery manufacture date/age

How do I get the manufacture date or age like what's shown in CoconutBattery using the terminal? I tried ioreg -cr AppleSmartBattery which gave a ManufacturerData (data, not date, but it was a date ...
2
votes
1answer
92 views

What is single user mode useful for?

I don't quite understand on the Internet I couldn't really find anything useful. What is the individual user there for exactly? The terminal that is used in single user mode can also be used in the ...
0
votes
1answer
53 views

How to properly (quickly) iterate over Reminders using AppleScript/osascript?

What is the proper, efficient way to iterate over Reminders using AppleScript? The script below works as expected, but takes 18 seconds to iterate over 180 Reminders when run from the command line ...
0
votes
0answers
44 views

Cannot debug C code on vscode on macOS big Sur

Hi I have been trying to debug C code on macOS using vscode. I followed all the steps given here https://code.visualstudio.com/docs/cpp/config-clang-mac. but still when I start debugging a terminal ...
1
vote
1answer
46 views

How can I programmatically get the Terminal scrollback text?

I ran across this comment which stated that it is possible to access the text in the macOS Terminal scrollback: Finding text in scrollback is a weakness of most terminal emulators; the only ones I ...
0
votes
1answer
34 views

Help Installing Wine Mono

I installed Wine Mono from its Git page (by git clone), their README file says To build Wine Mono, use the msi or bin target. $ make msi So I go to the directory (cd) then do make msi it outputs: ...
0
votes
1answer
29 views

Mission Control Won't Open and How Do you set up control + up arrow to make it work

Hello I'm trying to use the control + up arrow to see my desktops/apps that are open but it's not working. I am on 10.13.6 High Sierra. I have spaces enabled and for some reason, the mission control ...
1
vote
1answer
30 views

13“ MacBook Air Terminal says ” (base) UNKNOWN

Usually when I open the terminal, the first part of the command line says (base) john-doe-air, but when I opened it up today, it comes up with the following. What should I do to rectify this issue? ...
1
vote
1answer
28 views

Any way to modify DISPLAY similar to how it works for X11 with the macOS display system / window manager so other users can display on active display?

I have a scenario where I need to run graphical applications from other users from shell on the currently active display. In other words, I am logged in as user "A" and in Terminal I su to ...
0
votes
1answer
23 views

WINE starting an application

I built WINE from source, following their INSTALL.UNIX file, so I start wine via Terminal, a UI appears: Microsoft Windows 6.1.7601 Z: \Users\USER\Downloads\wine-4.20> so I write start "\...
0
votes
0answers
39 views

terminal autocomplete strange behaviour

$ uname -a Darwin vk.local 20.2.0 Darwin Kernel Version 20.2.0: Wed Dec 2 20:39:59 PST 2020; root:xnu-7195.60.75~1/RELEASE_X86_64 x86_64 $ zsh --version zsh 5.8 (x86_64-apple-darwin20.0) Terminal ...
2
votes
1answer
79 views

Why I do I see these lines in Terminal and how can I remove them?

Last login: Fri Mar 26 00:39:29 on console export HOMEBREW_PREFIX="/opt/homebrew"; export HOMEBREW_CELLAR="/opt/homebrew/Cellar"; export HOMEBREW_REPOSITORY="/opt/homebrew&...
0
votes
0answers
13 views

Launchct GD Extension with Freetype support not working on php

I'm Running a .plist php file previously, I've installed phpbrew and use 7.3.11 php version. Then I've just installed GD extension with freetype support I can running my php files into Macos terminal ...
1
vote
1answer
27 views

How to change this terminal customization tutorial for usage in zsh rather than bash?

This tutorial gives instructions on how to customize the look of macOS's Terminal application. I followed the instructions but used zsh where it said bash in hopes that it would work, but it didn't. I ...
0
votes
0answers
34 views

Finder cannot see any files on NTFS mount

I installed osxfuse and ntfs-3g and it worked well till today to read NTFS partitions. Since today, after brew upgrade yesterday, Finder cannot see any file in NTFS root or folders, though they show ...
0
votes
0answers
29 views

Permission denied when trying to generate ssh key on Mac?

I've changed X11Forwarding in my sshd_config to "yes" and uncommented it. I've installed XQuartz. But when I run the following command:ssh-keygen -t rsa -f~/.ssh/my_key -C shisui I get "...
0
votes
0answers
20 views

Trying to install very old logitech software on Catalina

I realize this probably won't work, but I'm kinda obsessed at this point. I bought a Logitech Broadcaster WiFi webcam without realizing it was quite out of date (2013). I'm trying to get its companion ...
0
votes
0answers
22 views

du reports subdirectory sizes which add up to more than the total disk size

My total physical drive space is 256GB and i am not connected to any remote storage. When i run du -sxh ./* 2>/dev/null in zsh shell on macOS Big Sur 11.2.3, i get the following results: 39G ./...
0
votes
1answer
44 views

How to get execution time of an AppleScript?

I have seen some more advanced AppleScript users mention efficiency of their AppleScripts in terms of execution time. Is there an AppleScript method for getting the execution time? I know there is ...
0
votes
1answer
70 views

Why do I get this message every time I open the terminal?

Every time I open the terminal I see the following message: /etc/zshrc:7: command not found: locale This is the first 7 lines in the file /etc/zshrc: # System-wide profile for interactive zsh(1) ...
1
vote
3answers
142 views

What exactly is chflags opaque, nodump?

I've gotten to grips with the chflags man page so far, even if it's rather uncommon for man pages. Nevertheless, I find 2 parameters very peculiar. What exactly does chflags opaque and nodump do? ...
0
votes
0answers
28 views

Messed Up Permissions on Catalina

I am an on-and-off user of Sibelius, and the version I own turns out to be partially incompatible with Big Sur. Some months after upgrading to Big Sur, I decided that I wanted to use my version of ...
-1
votes
0answers
34 views

Photo protection not working on macOS?

If you look under the system settings under security and privacy, you quickly notice that the Mac requires access rights so that you can access the photos. For example, IMovie wanted access to the ...

1
2 3 4 5
109