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.

948 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
9 votes
0 answers
434 views

How do you change the notification duration in Apple macOS 11 / Big Sur

How do I change the time of how long a notification stays on the screen in macOS 11 Big Sur? There's no setting for this in the system preferences. I macOS Catalina the following command in Terminal ...
user avatar
  • 91
6 votes
0 answers
3k views

Run a command without opening the terminal

Is it possible to start a terminal command without opening the terminal first? I have some quick commands, and for those I open the terminal window, run the command, and close it again. I generally ...
user avatar
6 votes
0 answers
3k views

rbenv not overriding default Ruby version

I used the thoughtbot laptop script to setup a new Macbook Air (OSX 10.10.5), but when I navigate within a Rails project that contains a .ruby-version file, running commands such as rails s returns an ...
user avatar
6 votes
0 answers
10k views

Is there a way to clean up possibly invalid disks that only show up on Mac OS Recovery through ‘diskutil list’ in Terminal? Does Recovery use them?

Hopefully that question is clear enough, and hopefully this is just me being silly. When I boot into the Recovery Partition, go into Terminal, and run 'diskutil list', I get quite a few tiny and ...
user avatar
6 votes
2 answers
10k views

ss (netstat alternative) for OS X

How do I install ss on OS X? I couldn't find the iproute package in homebrew. Red Hat recommends ss over netstat in Red Hat Enterprise Linux 7. ss is provided by the iproute package. Red Hat ...
user avatar
  • 3,407
5 votes
1 answer
482 views

Separate zsh histories after restart (iTerm2)

I am running iTerm2 (v 3.2.9) and zsh (v 5.7.1). I normally have 3-4 iTerm tabs opened at the same time and each tab has its own history thanks to the following settings in my .zshrc file SAVEHIST=...
user avatar
  • 1,144
5 votes
0 answers
703 views

How do I disable autosave in TextEdit?

The old technique for disabling autosave and re-enabling traditional text editor behavior (i.e., NOTHING get saved unless one saves it EXPLICITLY) of defaults write com.apple.TextEdit ...
user avatar
5 votes
0 answers
374 views

Easiest way to definitely, positively delete a file in macOS (10.14+) as root?

I have a 1TB main drive where ~400GB seemingly got stuck in /Volumes/Time Machine Backups/ after the 10.14 update. I managed to delete most of it, but some files and folders are extremely resilient ...
user avatar
5 votes
0 answers
1k views

Why doesn't ps aux show *everything*?

I recently had a problem with sluggish computer and I live in the terminal, so for me, when something's running slow, "top -o cpu" and "ps aux" are my bread and butter. However, I recently came to ...
user avatar
5 votes
0 answers
308 views

What are the different OS X clipboards

Everybody uses the general OS X clipboard, which can programmatically accessed with pbcopy -general and pbpaste -general. However I noticed that the manpage of pbcopy and pbpaste also mention: -find ...
user avatar
  • 193
5 votes
1 answer
442 views

Open a bookmark in Safari from Terminal

I do online tutorials one at a time and in a Safari bookmark called Current I always update the address to my current tutorial. I want some terminal command which I can call to start Safari and open ...
user avatar
  • 2,375
5 votes
1 answer
411 views

Any way to write the Terminal scrollback history?

I would like to open a new tab in Terminal with custom scrollback history. The primary use-case is to "fork" an existing tab such that both tabs contain the same scrollback history, but more generally ...
user avatar
4 votes
0 answers
333 views

Opening Safari with URL from terminal also opens URL in default browser (Chrome)

My OS is Big Sur 11.1 and when I run the following in Terminal: /usr/bin/open -a /Applications/Safari.app https://www.google.com ...Chrome, my default browser, opens first, quickly followed by Safari. ...
user avatar
  • 183
4 votes
0 answers
230 views

Show menu bar icons in Catalina defaults command not working

In Catalina, allowed ZSH full disk access in preferences and ran defaults write com.apple.systemuiserver menuExtras -array "/System/Library/CoreServices/Menu Extras/Bluetooth.menu" "/System/...
user avatar
4 votes
0 answers
863 views

How to set default duration for new Calender events

When creating new calendar events in the Calendar application the duration of the event defaults to 60 min. In earlier version of macOS it apparently was possible to change this by running defaults ...
user avatar
4 votes
0 answers
197 views

updated os to mojave 10.14.5, now lsof is giving me errors with stat

I had a system update last Thursday and ever since I have been getting the errors below. I have tried reinstalling lsof via homebrew, upgrading bash, rebooting, but no luck. How do I even go about ...
user avatar
4 votes
0 answers
3k views

Unable to erase disk with Terminal and Disk Utility, error -69877 "Couldn't open device"

I am referencing this question from another user: Unable to format / erase hard drive For some reason, this pesky Kingston drive I have does not want to erase on Disk Utility nor with the use of ...
user avatar
4 votes
0 answers
586 views

How can I use Gatekeeper to block applications on my Mac?

Is there a way for me to create a blacklist of Applications that cannot be installed, or run after they have been installed, on OS X Sierra? I have tried to follow the directions outlined here: https:/...
user avatar
4 votes
0 answers
665 views

Python process suspended despite running caffeinate

UPDATE: since updating to macOS 10.14 this issue is not occurring to me anymore. I have a long running Python process (using multiprocessing), run from Terminal, and regularly come back to it ...
user avatar
4 votes
0 answers
349 views

How to speed up window minimising in MacOS?

Minimising a window in MacOS takes too long for me. I sped up the dock autohiding by using these commands in Terminal: How can I make auto-hide/show for the dock faster? Surely there's a way to ...
user avatar
  • 61
4 votes
1 answer
926 views

how to install Open Source Samba tool 'smbget' on macOS High Sierra?

It seems smbget is not available on Homebrew. Also the Samba suite not available. This tool is part of the samba(7) suite. smbget is a simple utility with wget-like semantics, that can ...
user avatar
  • 3,407
4 votes
0 answers
855 views

How to hide user accounts when starting up my Mac?

I would like to hide that Admin user. Command: sudo dscl . create /Users/admin IsHidden 1 only hides the user when logging out. But when I restart my computer and the launch screen pops up I can still ...
user avatar
  • 141
4 votes
0 answers
84 views

Can't change permissions on new files

I have a laptop running 10.12.5. I copied a folder of photos from a DVD to the Desktop. Here's what happens next: I can open the folder on the desktop and see the files listed. I can see the ...
user avatar
  • 151
4 votes
0 answers
994 views

Difficulty finding Internet passwords on keychain using terminal security command

I am trying retrieve an internet password from the keychain but I always get back: security: SecKeychainSearchCopyNext: The specified item could not be found in the keychain. ...despite the entry ...
user avatar
4 votes
0 answers
3k views

Do cronjob run when the computer is asleep?

I have a macbook air running El Capitan. I wrote a few cronjob that appear to be running even when the computer is asleep. Is this correct, or is my computer not really in a sleep state?
user avatar
  • 376
4 votes
0 answers
342 views

Unable to start app built manually

I have create an application APP-py3.app stored in /Applications. The APP-py3.app contains the following files [F] and directories [D]: Contents [D]: Info.plist [F] MacOS [D]: script [F with rights -...
user avatar
  • 334
4 votes
1 answer
363 views

Slow login and Terminal loading time in Yosemite, possibly related to open directory

I have a problem with slow login times in Yosemite. Logging in is speedy after booting, but after a while (a few days usually) it slows down and can take 20-30 seconds. The time to load a new ...
user avatar
  • 151
4 votes
0 answers
144 views

Raw binary midi stream in terminal?

I want to be able to cat the device file of a raw binary input stream from a midi controller. In Ubuntu, the process to do this was something like cat /dev/dmmidi1. However, I do not see such a file ...
user avatar
4 votes
0 answers
94 views

“l/” in shell creates a whitespace

Whenever I type l/ in terminal on OS X (Mavericks), it replaces it with a blank space. I can't seem to find any relevant problems or fixes on Google and I have no idea why this happens. For example, ...
user avatar
4 votes
0 answers
328 views

How can I revoke an applications access to keychain passwords from the command-line?

Applications can be granted permanent unprompted access to passwords. You can add and revoke these privileges using the Keychain Access utility. (See this answer) I'd like to be able to revoke from ...
user avatar
4 votes
1 answer
1k views

macOS 11 Pyenv Python 3.9.0 Install Error

I am trying to install python 3.9.0 on macOS 11.0.1. I have the latest version of brew and the latest pyenv. sids@Sids-MacBook-Pro ~ % pyenv install 3.9.0 python-build: use openssl@1.1 from homebrew ...
user avatar
  • 213
4 votes
1 answer
590 views

How to schedule run of .command file (bash)?

I have a bash script (saved as myfilename.command) and would like to schedule its run. I've tried to use Calendar event for this (which works fine with Automator scripts), but I get the following ...
user avatar
  • 364
3 votes
0 answers
184 views

Open safari tab group from terminal

I want to open a particular safari tab group through the terminal I'm aware that open -a safari would open the safari app but it creates a new blank tab group and open -a safari <url> will ...
user avatar
3 votes
0 answers
476 views

Catalina and pyenv install python versions fine, but anything needing ssl fails

I seek to use pyenv instead of manually installing an official python release. My goal is to run the included script titled “Install Certificates.command”. My assessment of the situation is pyenv is ...
user avatar
3 votes
1 answer
538 views

Removing old versions of XCode Command-Line Tools on macOS 12

I recently got a new M1 MacBook which I migrated to using Migration Assistant. As part of the migration, the old XCode command-line tools seem to have made their way over, install receipts and all; ...
user avatar
  • 802
3 votes
0 answers
83 views

Garbled Terminal output

The text displayed and the cursor on Terminal is very often garbled or 'noisy', and this is across releases for as long as I can remember. That said, it seems worse on Big Sur. Symptoms: Suppose I've ...
user avatar
  • 161
3 votes
2 answers
8k views

"/sbin/mount -uw /" not working?

I am trying to add an administrator account on my MacBook Pro using single-user mode. However, the command /sbin/mount -uw / does not seem to work. Any reason as to why? /sbin/mount -uw / ...
user avatar
3 votes
0 answers
1k views

How do I use ssh agent on MacOS Catalina like OS X El Capitan used to?

I recently upgraded from OS X El Capitan to MacOS Catalina. I am accustomed to keeping my login session open for an entire week, and I was able to use a passphrase-protected ssh key by entering the ...
user avatar
3 votes
1 answer
510 views

How to open the Apple URL protocol x-man-page:// in iTerm and not Terminal (default)

Apple has some custom URLs defined and one of them is x-man-page. If you open a particular man page with it, it displays it in a nice yellow window (a provided profile for Terminal) with black text. ...
user avatar
  • 82.2k
3 votes
0 answers
1k views

After switch to zsh history not saved

I am running Mojave have changed default shell from bash to zsh. I notice history is not saved between sessions. Following recommendations in What are the practical differences between Bash and Zsh? ...
user avatar
  • 2,772
3 votes
1 answer
850 views

Adding login items from terminal in Catalina

I've tried multiple ways but none work. A few AppleScripts and even some bash script somebody made. Which essentially just executes a different AppleScript afaik. Some of the commands I have tried: ...
user avatar
3 votes
0 answers
441 views

How to view expiration date of code signing cert?

I know pkgutil --check-signature and codesign -d -vvv but neither of them show the expiration date. Is there a way to view the expiration date of a code signing cert? Say for instance...macOS ...
user avatar
  • 131
3 votes
0 answers
218 views

Midnight Commander Exit from Working Directory doesn't return to same directory in Terminal

Upon exit from midnight commander(MC), terminal returns to default directory(users/username) instead of working directory in MC. Had tried creating alias mc='. /usr/share/mc/bin/mc-wrapper.sh but ...
user avatar
  • 91
3 votes
0 answers
988 views

Trust SSL certificate via terminal in MacOS

I'm trying to setup WPA2 with EAP-TLS authentication using certificates in pfx format. As adding the certificate to the keychain and changing the Trust settings can be difficult for some users, I ...
user avatar
  • 41
3 votes
0 answers
55 views

Use terminal to request copy of files using Finder

I can copy files using the terminal like this cp -r path/to/folder1 path/to/folder2 However, this has some limitations: Conflicts are not resolved nicely: do I want to overwrite, rename, abort? ...
user avatar
3 votes
0 answers
506 views

Can't scroll using the touch screen on iOS devices within vim

Over the past days I've started to do my day-to-day (development) work on my iPad instead of the MacBook. I have the MacBook Pro always online and available to connect to over ssh but have a problem ...
user avatar
  • 169
3 votes
0 answers
551 views

Get list of discoverable BT devices with power (RSSI) and MAC address

Is there any way to list all discoverable devices in terminal? Something like this: http://osxdaily.com/2012/02/28/find-scan-wireless-networks-from-the-command-line-in-mac-os-x/ I need to get MAC ...
user avatar
  • 317
3 votes
0 answers
962 views

When installing command line tools using Terminal, I am getting "Software currently unavailable from Software Update server" error

I have downloaded Xcode on my Mac running macOS Mojave and trying to install the command line tools using the following command: xcode-select --install But it is giving me the following error: Why ...
user avatar
3 votes
0 answers
879 views

Difference in font rendering between iTerm and Terminal.app

I've just installed iTerm 3.2.0. I'm using default settings and noticed that fonts look slightly different, compared to Terminal.app. A bit thinner, and glyph heights (or maybe distances between lines)...
user avatar
  • 693
3 votes
0 answers
714 views

Rearrange Spaces via command line from the terminal emulator

TL;DR: I need to replace the dashboard with a terminal emulator. Hi. I need to 'rearrange spaces' so a terminal emulator gets first from the left before the desktop, where the dashboard used to be. ...
user avatar

1
2 3 4 5
19