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.

491 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
0answers
2k 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 ...
6
votes
0answers
9k 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 ...
5
votes
0answers
239 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 ...
5
votes
0answers
246 views

Stop iTerm2 from using disk (disk cannot be ejected)

How can stop iTerm2 from using the mounted disk I cd'd into? Sometimes, even when i cd out, it's still blocking the disk. I have to ⌘-Q the entire program which is very irritating. It's just idling ...
5
votes
0answers
119 views

How to remove Touchbar animations?

On the 2016/2017 MacBook Pro's the Touchbar animations are slow. After a little while I've become used to the keyboard and Touchbar. But the one thing I would like to speed up is the transitions. Say ...
5
votes
1answer
306 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 ...
5
votes
1answer
379 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 ...
4
votes
0answers
121 views

Apple's online version function support-sp.apple.com/sp/product?edid= does not work for all macOS versions

I would like to get the Apple marketing name, the code name, for a given version of macOS (e.g. 10.12 is macOS Sierra) from Apple's online service at support-sp.apple.com/sp/product?edid=. This is ...
4
votes
0answers
265 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:/...
4
votes
0answers
652 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 ...
4
votes
0answers
72 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 ...
4
votes
0answers
773 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 ...
4
votes
0answers
1k 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?
4
votes
0answers
268 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 -...
4
votes
0answers
300 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 ...
4
votes
1answer
506 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 ...
3
votes
0answers
14 views

How to add a terminfo entry systemwide?

I would like to add terminfo entries systemwide for rxvt-unicode and rxvt-unicode-256color. However, when I try to run: HOST:terms alexreinking$ ls rxvt-unicode rxvt-unicode-256color HOST:...
3
votes
0answers
26 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 ...
3
votes
0answers
45 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? ...
3
votes
0answers
27 views

Can anyone explain, or speak to how I can remove, these greyed out windows when I launch a terminal group (see screenshot)

For some odd reason, when I launch a terminal group via Terminal > Window > Open Window Group > Select from list I am greeted by the terminal group AND a bunch of greyed out windows, often ...
3
votes
0answers
852 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 ...
3
votes
0answers
111 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 ...
3
votes
0answers
610 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 ...
3
votes
0answers
172 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. ...
3
votes
0answers
29 views

Can I adjust the size of the scrollback buffer of a certain terminal window?

I want to adjust the size of the scrollback buffer of a certain terminal that is already open and running a command (that produces a lot of output). Currently the size of the buffer is set to be ...
3
votes
1answer
526 views

MacBook Pro 15" 2017 runs hot while sleeping & closed lit

This problem happens to me every now and then and I still couldn't find a solution yet. Here's the console log for this night (when it happened), when running the command log show | grep 'Wake ...
3
votes
0answers
84 views

How do I create Windows-like shortcuts (with arguments) from the command line?

I've been searching and searching for a process on OS X that creates something as simple and elegant as Windows shortcuts. At the user's direction on install, I need to create a shortcut-like item ...
3
votes
0answers
307 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 ...
3
votes
0answers
39 views

Could I use a Terminal command to get last shutdown when I don't have the password?

I am looking for a Terminal Command to get the following information about a disk Last shutdown Last reboot I need to be able to specify the disk because I will be booting from a different, external,...
3
votes
0answers
30 views

How to toggle AutoShowToolbarInFullScreen via terminal?

I need help with hiding/showing the toolbar in Safari by using the terminal. I already found out that there exists a key within ~/Library/Preferences/com.apple.Safari.plist called ...
3
votes
0answers
29 views

Terminal not using the last row

I just upgraded to High Sierra and started noticing a problem. When I open a new Terminal window, everything is fine. The output starts at the top and then fills the window. Eventually all rows are ...
3
votes
0answers
82 views

Is there a way to disable the Spotlight hot keys via the terminal?

I am trying to make configuration of a new macOS system as automated as possible. I use Alfred and prefer to use Cmd-Space to trigger the Alfred window instead of the install default of calling off to ...
3
votes
0answers
1k views

File visible but “does not exist”

With macOS Sierra, a new folder has been added to the root folder: macOS_SDK Inside are a bunch of folders, each containing only one folder, till the last one, containing a single file. Here's the ...
3
votes
0answers
283 views

Are there any change or new features about Terminal.app in High Sierra?

Are there any change or new features with Terminal.app in High Sierra? There is no leak about terminal, so I want to hear from user who already use High Sierra Beta. I wish that apple support 24bit ...
3
votes
0answers
440 views

Running script after connecting to VPN

I am using MacOS 10.12. I just started working for a company that gave me a VPN connection to connect to. I'm trying to come up with a script that, upon VPN connection, will: add route to remote ...
3
votes
0answers
342 views

Open folder from terminal using Forklift

I'm often opening a folder from the terminal in Finder using open . or open ./thisfolder. I just switched from Finder to Forklift, set it as default file viewer via defaults write -g NSFileViewer -...
3
votes
0answers
753 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 ...
3
votes
0answers
51 views

Can I search for text shown in Terminal by color?

If I run commands in Terminal the output is sometimes shown in red or green depending on the command. How do I search for such text by color (e.g. "Anything red" to find the line starting with "...
3
votes
0answers
2k views

Why does the output of “last” in macOS 10.12 (Sierra) show seemingly nothing but “crash” entries?

I just upgraded my Mac mini (Late 2012) to macOS 10.12 (Sierra) and noticed something strange: When running the last command in the Terminal—which shows you a history of user logins, reboots and ...
3
votes
0answers
198 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 ...
3
votes
0answers
517 views

Ctrl+D toggles the OSX dock but I want it to be passed to the terminal

I'm new to Linux and have been playing around with manipulating files with cat ie. cat > randomNames Albert Einstein Marie Curie Isaac Newton now when I want to quit cat with control + D on my ...
3
votes
0answers
1k views

Terminal command to clear DNS cache doesn't seem to work

I do a lot of website work where I change nameservers for a domain, wait overnight for it to propagate on the host server, then go back to work on the site. Lately, what happens is that I can see the ...
3
votes
0answers
92 views

Quicklook for fullscreen terminal

I recently realized you can use quicklook from the command line. Here's the example: qlmanage -p somefile.txt >& /dev/null & When this command is invoked quicklook opens its popup *in a ...
3
votes
0answers
303 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 ...
3
votes
0answers
410 views

How can I customize the symlinks that MacPorts creates/deletes when using its `port select --set <group>` command?

I use MacPorts to manage certain *nix packages on my Mac. One such Mac has multiple Python versions installed. When I switch between Python versions, I use a command like: port select --set python ...
3
votes
0answers
2k views

Deleting and creating users with terminal in recovery mode?

would anyone know how to delete and create user accounts in recovery mode? Precise steps would be awesome because im not too experienced with UNIX. I already tried the userdel and useradd in urs\sbin ...
3
votes
0answers
1k views

SSH to device via USB

When I try to SSH over USB to my device running linux, I get "ssh: connect to host 10.90.1.2 port 22: Network is unreachable" Mind you, I can run the same command "ssh root@10.90.1.2" on my linux ...
3
votes
0answers
429 views

How to display unicode chars in emacs when running in terminal

This is not strictly a OSX question but someone in here probably has a solution. I'm running emacs from the command line and I simply can't get emacs to correctly show Unicode characters. Everything ...
3
votes
0answers
1k views

Iterm2 - Export a single profile's settings for distribution to others

I've been getting used to working with Iterm2 over the past few weeks. I have a very specific profile configuration requirement for a legacy business application. The configuration for the profile ...
3
votes
0answers
124 views

Why is the diagnostic message history not writable as normal user?

When I use normally the OS as a plain user I get frequent console messages like: 20/05/14 08:21:28,194 SubmitDiagInfo[5376]: Launched to submit Diagnostics and Usage 20/05/14 08:21:28,735 ...