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
1
vote
0answers
8 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
21 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
38 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
79 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
13 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
9 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
31 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
21 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
40 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
29 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
16 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
42 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 ...
0
votes
0answers
21 views

How can I force required dependencies to build from source in Homebrew? [closed]

I frequently use the "--build-from-source command" in Homebrew. However, frequently when invoking this command it will begin the process only to install a dependency without building it from ...
2
votes
2answers
85 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
30 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
37 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
33 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 ...
3
votes
1answer
91 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
48 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
43 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
43 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
30 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
28 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
28 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
37 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
78 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
33 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
19 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
43 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
65 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) ...
2
votes
3answers
137 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 ...
0
votes
1answer
48 views

Can you monitor a folder for changes?

Let's say I have a folder that is located in "/tmp". Let's say it is called myfolder "/tmp/myfolder" and I would like to protect this folder or I would like to be notified if ...
0
votes
1answer
72 views

Tell if running process is running under Rosetta or is M1-native by Command Line

If you have an M1-based Macbook you can tell if a process running on the machine is Apple/M1 or Intel/Rosetta in Activity Monitor, but is there a way to get this information on the command line? I'd ...
0
votes
1answer
16 views

Unity: How can I run Unity builds created in High Sierra & Verify they run on Mojave without a Mojave computer?

I have Unity 2020.3.0f1 Mac apps that were created on end-of-life High Sierra computers. I recently purchased a Mac Mini M1 computer. The apps run on both computers. I have to execute a terminal ...
0
votes
1answer
40 views

macOS Catalina does not allow incoming connections from local network. Firewall is down

I starting facing this issue some days ago. Even when the firewall is down, I can't reach my mac from my local network. Ping is not responding neither. Some test I've done: From my console nrossi@~$ ...
1
vote
1answer
29 views

Open a URL with parameterized query arguments (URL-encode)

I need to invoke a custom URL for a macOS GUI app from a terminal (shell) command. I also need to be able to pass arguments to the URL's query section. It might look like this: path=/Volumes/MyDisk ...
0
votes
0answers
18 views

Delete invisible files on removable media [duplicate]

I have an external hard drive. macOS automatically saves files like ".Trash" and ".DS_Store" ".fseventsd". I was able to delete some files using the terminal. However, &...
0
votes
0answers
41 views

Syntax Error in Bash script

I'm using the following command to find certain files and delete them. #!/bin/bash files=$(mdfind -literal "kMDItemFSName == '123.test'") IFS=$'\n' files=($files) for f in ${files[*]};do ...

1
2 3 4 5
109