Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

2
votes
0answers
7 views

Apple Remove Dock Icon with a command line

I'm trying to find the terminal command which can remove an icon from the dock, but I can't find the solution. I tried the defaults read / defaults write command but it doesn't seem to have the ...
0
votes
0answers
28 views

Mac Mojave, how to set screensaver as background?

so I updated my mac to Mojave, and using the high sierra command takes me to the login screen with the screensaver as the background. If I login the screensaver disappears. can anyone help me with ...
1
vote
1answer
72 views

Make sourced .bash_profile works immediately in current window [on hold]

I use a macOS to connect to an Ubuntu server, after defining new .bash_profile (like upgrading node.js or making new alias), I will have to exit the ssh and login again after sourcing the ....
0
votes
0answers
25 views

Running multiple versions of Chrome, how to open second Chrome directly?

I followed this guide to run multiple versions of Google Chrome. https://zhoukekestar.github.io/notes/2017/11/01/install-multi-chrome.html The guide says that i need to have a "chrome2START.app" to ...
0
votes
1answer
46 views

Recurring 'Broadcast Message' in terminal

Yesterday I updated my Macbook Air (early 2015) to macOS Mojave. Since then when I open a terminal window I am getting recurring messages. I can't run any terminal command at the moment. What can ...
3
votes
1answer
62 views

APFS partition inaccessible, container missing

I'm running macOS Mojave on a late-2015 4k 21.5" iMac. I have lost access to my internal hard drive, but I can use my iMac by running macOS from an external drive or through recovery mode. When I ...
1
vote
0answers
16 views

Is it possible to use Python while in Recovery Mode?

Is it possible to access a Python terminal while in Recovery Mode? $ /Volumes/macOS/usr/bin/python python: posix_spawn: /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python....
0
votes
0answers
42 views

Script for opening an app in through terminal, force quit it and reopen

So I have an app that needs to be open to sync files on Mac OS mojave. The problem is that after opening it syncs for couple minutes and freezes. I have to force quit it and restart the app again. Is ...
1
vote
0answers
9 views

How do I make/run a QEMU emulation of Windows8 through terminal

I'm trying to make a Windows8 emulator using QEMU (which I downloaded via homebrew commands). I've searched on the internet for how to do this, and am utterly confused. The one site that made sense to ...
1
vote
0answers
19 views

How to record audio from terminal in macOS Mojave?

Since macOS Mojave apps now need to ask for permission to record audio. I want to record it from the built-in microphone of my Macbook. This means that a lot of old tools are broken. For example, sox ...
0
votes
0answers
17 views

check the manual that corresponds to your MySQL server version for the right syntax to use near 'PASSWORD(“newpass”)'

I'm using Mysql 8.0.12 version and I am currently facing a problem and I can't solve it even with the references around the internet. I have this error on phpmyadmin . By the I'm using High Sierra 10....
0
votes
0answers
18 views

A fast question about launchd

I have made this "manifest" to launch a script,wich launch a program with the classic unix syntax "start|stop|restart" My manifest <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist ...
1
vote
1answer
21 views

How can I change my Python 2.7 to 3.5? (I've already changed my bash_profile)

I downloaded Python 3.7, and then I deleted and changed Python 3.7 to 2.7 (using bash_profile, I changed the content in bash profile, just like the image below), and it worked. But I found that ...
3
votes
1answer
46 views

Removed Atom from Applications. How to remove `atom` command from terminal?

Recently I started using Microsoft Visual Studio Code instead of Atom. So I deleted Atom from the Applications folder. However, I can still autocomplete the atom command in terminal. And searching for ...
2
votes
1answer
14 views

Change default fullscreen new window behavior

I keep many apps open full-screen to maximize screen real estate on my laptop. If I have some full-screen app open and create a new window, I more often than not want that window to not go fullscreen. ...
1
vote
1answer
49 views

Error: unable to open database in macOS Mojave

sqlite3 ~/Library/Mail/V6/MailData/Envelope\ Index vacuum; Error: unable to open database "/Users/Me/Library/Mail/V6/MailData/Envelope Index": unable to open database file This happened after ...
9
votes
0answers
29 views

Open and focus file browsing dialog from command line

I'd like to open the native file browsing dialog from the command line, focus the dialog, and then get the full path of the selected file. The following works nicely, but the dialog is not focused ...
5
votes
0answers
74 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 ...
0
votes
0answers
20 views

How to change icon of terminal default on mac os? [duplicate]

How can I change icon terminal on mac os? I can change icon another app but I can't change icon terminal mac. I tried any way to change icon terminal, but I not success. It requires authorization ...
2
votes
1answer
36 views
+50

My mac's hostname keeps getting reset to default

My mac's default hostname is Scott-Johnson.local. In the sharing system preferences, I set the hostname to felucia.local, which takes as expected. However, at some point in the future (usually due to ...
1
vote
0answers
20 views

How to open multiple iTerm2 tab with admin privilege

So I have an executable program in my /usr/local/bin/ called myApp. I need to run multiple myApp processes in new iTerm2 tabs with sudo. The file structure is like this: --myFolder ----v1 ----v2 ---...
2
votes
1answer
37 views

Install wget on Mac

I downloaded wget-1.19.tar.gz from this site http://ftp.gnu.org/gnu/wget/ and then i exctract the tar file and run ./configure The output is that: checking for ftello... yes checking for sigblock......
1
vote
1answer
53 views

How do I copy multiple files to macOS's clipboard programmatically?

I ultimately want to have a bash function to-clipboard which gets file paths and copies the files to the clipboard. Using other scripting languages as helpers is okay. I currently have this for ...
1
vote
0answers
18 views

How to delete GameCenter and iCloud from Internet Accounts using the Terminal?

Running Sierra 10.12.6 without administrator privileges, the system has some problem with my iCloud profile. Whenever accessing anything remotely related to it, the respective app beachballs ...
1
vote
0answers
11 views

Change Text to Speech Speed on the command line

I want to change the speed of my text to speech. I know I can do this via preferences like this: However, I want to configure this setting via the command line. How can I set the speaking rate via ...
4
votes
1answer
52 views

List of all AppleScript commands for Terminal application

In AppleScript we can write things like: tell application "Terminal" activate set currentTab to do script (someScript) end tell I mean we are using commands like activate and set currentTab.....
0
votes
0answers
8 views

Tmux shortcuts not working in Terminal application

I've got the following shortcuts setup in Tmux: bind-key -r C-Up select-pane -U bind-key -r C-Down select-pane -D bind-key -r C-Left select-pane -L bind-key -r C-Right select-pane -R Basically ...
0
votes
0answers
13 views

Is there a way to tab-complete Google Drive File Stream top-level folders in Bash?

I'm using Google Drive File Stream on High Sierra. It creates its own folder /Volumes/GoogleDrive with two folders inside this: My Drive and Team Drives. When in terminal and I want to CD to ...
3
votes
1answer
29 views

Alias in bash to Change Directory

When I am typing in a typical alias with my .bash_profile, my change directory is not working. I currently have the following: alias cdicloud="/Users/<username>/Library/Mobile Documents/com~...
1
vote
0answers
30 views

Problem removing APFS partition

A few months ago I tried to install Windows 10 on my Mac (High Sierra). This was unsuccessful and left me with a APFS partition of 49.5 GB called "BC1". When I try to delete this partition it ...
1
vote
1answer
408 views

Disk full; Terminal in Recovery mode won’t delete files; boot kernel panics

I’m in a pickle here. macOS Mojave, just updated the other day. I managed to fill my disk up while creating a .dmg, and the system froze. I rebooted. Kernel panic. Boot to Recovery mode. Mount the ...
0
votes
2answers
48 views

How can I change the Messages notification sound

I'm trying to change notification sounds for apps like messages. I've tried to copy the .caf files using terminal, but it gives me "Operation not permitted" Does anyone know a way around this? I'm ...
3
votes
1answer
31 views

Is it safe to `rm` folders from the .Trashes folder on an external drive?

I trashed some folders from an external drive using the finder. They are now in that drives .Trashes folder. When I right click them in the trash (aka Finder) and select "Delete Immediately..." it ...
0
votes
0answers
45 views

Are these terminal commands and temporarily disable SIP safe?

Im trying to installed Sophos anti virus on a mac running 10.10.5, but it keeps failing to install, Sophos support have advised i should do the following work flow, which involves running the ...
0
votes
0answers
11 views

Converting .accdb to sqlite on a mac - open to using terminal or homebrew

How would you convert a Microsoft Access database .accdb to SQLite on a Mac? (High Sierra)
1
vote
0answers
24 views

Lost disk space after execute diskutil eraseVolume in terminal

I have a MacBook Pro (Retina, 15-inch, Mid 2014), and i upgrade it to Mojave (10.14) the day before yesterday. After i execute the command "sudo diskutil eraseVolume apfs none disk0s8", the problem ...
0
votes
0answers
91 views

PHP incredibly slow since upgrading macOS to 10.14 Mojave?

Since I upgraded my Mac to Mojave 10.14, I noticed PHP is incredibly slow. When I do this from the terminal: php -v It takes about 4-5 seconds before showing the version number, which is: PHP 7.1....
0
votes
0answers
15 views

Connect iOS Git Interface to Mac Using SSH

I recently installed an iOS app, called Working Copy, to manage my GitHub repositories offline or on my iPad (With connection). However, this only allows me to edit my projects, not run them. I ...
0
votes
0answers
15 views

How to install Cocoapods from rubygems.org

When trying the command in the terminal: gem install cocoapods The following error shows: "Unable to resolve dependencies: cocoapods requires activesupport (< 5, >= 4.0.2), ruby-macho (~> 1.1);...
1
vote
2answers
61 views

How to decompress and run .app?

I'm trying to execute an AppleScript .app thats compressed. unzip -p file.app.zip | open - or open < $(unzip -p file.app.zip) Is this possible?
1
vote
0answers
18 views

Can you script adding/removing of iCloud accounts on your machine?

I have a case where the GUI of the operating system is not letting me log out of iCloud. Wondering if there's a terminal command/script I can run, or if there are preferences I can delete that will ...
1
vote
0answers
25 views

How can I reset position and size of a application window in macOS High Sierra or higher?

I was wondering if there is a way to reset the window size and position of an application via Terminal or plist, that will reset above properties like you have a new Mac. Is this possible? I already ...
1
vote
1answer
14 views

Install SublimeHighlight plugin on Sublime Text 3

I'm trying to copy my code from Sublime Text 3 into my Word document in RTF format with colors in tact by using this plugin: https://github.com/n1k0/SublimeHighlight The instructions say: Sublime ...
3
votes
1answer
430 views

macOS Mojave - Get “Segmentation fault: 11” when trying to run airport

As the title suggests, when I run the command /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport en0 sniff 6 in Terminal where en0 is my Wi-Fi interface and 6 is ...
0
votes
0answers
71 views

How to Delete a Time Machine .inProgress file using Terminal

Last week my late 2012 Mac mini running Mac OS High Sierra locked up so badly that I had to power it off to shut it down. Since that time I have installed Mac OS Mojave. I now have a file named 2018-...
1
vote
0answers
22 views

How to open any program from the terminal [duplicate]

Often in the terminal I want to open a specific file (since I've already browsed to the right directory). A few programs I have come with their own links ready, like subl index.html will open ...
0
votes
0answers
8 views

Passing non-http URI to Google Chrome

I'm using Bwana to read manpages using Google Chrome 69.0.3497.100 (64Bit). Now I want to define a zsh command that opens a man page in Chrome. I think of something like % bwana ls that opens Google ...
1
vote
0answers
69 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)...
0
votes
0answers
38 views

How to Activate 'remote management' without observe using terminal

I was wondering if it was possible to activate the remote management via the command line but without activating the OBSERVE option. (I don't want to do it with the GUI since I will push this ...
0
votes
0answers
13 views

Why does maximizing my terminal window overlaps it with the dock

This is really frustrating me, when I maximize any app, it sits right next to the dock. Except for the terminal app, when I maximize, it sits behind the dock Here's a screenshot: Did I screw up some ...