Stack Exchange Network

Stack Exchange network consists of 175 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.

3
votes
2answers
757 views

Why is .bash_history periodically wiped?

This is the second time it's happened. I just tried grep-ing some historical commands and came up empty. a look at my bash history shows that it's practically empty. Like it's been wiped clean. I use ...
0
votes
1answer
32 views

How does MacPorts work with /Applications/MacPorts and /opt/usr/local/bin

I have installed i3 under MacPorts. Whenever I run uxterm under X11 it works as expected and I can get vertical and horizontal splits with i3. However, when I try to run kitty -- also installed under ...
1
vote
0answers
6 views

Text to Speech Custom Rate (beyond slider)

In System Preferences, under Dictation & Speech, there is a Speaking Rate setting: Is there a way to change the Speaking Rate to a value that is not on that slider bar? For example, if I want ...
0
votes
1answer
30 views

Resetting PRAM through Terminal

For some reason, my Mac won't let me reset my PRAM in the usual way (by holding the relevant keys down when restarting), simply nothing happens when I try it and my Mac just boots up normally every ...
1
vote
1answer
12 views

macOS High Sierra 10.13.6 empty trash sound playing repeatedly

I am trying to figure out how to convert a piece of sheet music to XML file for a student. I heard about Pizzicato app for macOS. I downloaded it, and then attempted to use it (couldn't figure it out)....
0
votes
1answer
27 views

How do I move a folder and contained files in an external volume to another external volume using Terminal

I have two drobos. I want to move a folder (called A) from one drobo name (Behemoth) to another drobo (Galactus) using Terminal (Mac). I have tried ditto ~/Volumes/Behemoth/A /Volumes/Galactus/ but ...
0
votes
0answers
13 views

How to remove macOS sharing extensions from the shell?

In macOS 10.14.x, I'm having trouble with some sharing Extensions (System Preferences -> Extensions) causing some kind of hang. Unfortunately it's so bad that even the preference pane has become ...
0
votes
1answer
22 views

How to get rid of bash 4.1$? [on hold]

I am trying to load abaqus through exceed on demand. The terminal is now showing bash 4.1$ which was not the case previously. I used to give the same commands as I have given here previously and could ...
0
votes
2answers
30 views

The command Line would not let me repair my disk permission on Mac (Mojave)

Im on macOS Mojave on my Mac. I deleted my admin and made my user to admin. Now, I have problems with permission of files in the system. Yosemite was able to repair disk permissions by pressing a ...
0
votes
0answers
27 views

Error while attempting to install Homebrew on Mac OS X 10.7 (Lion)

I'm attempting to update my installation of Homebrew by re-installing as prescribed by http://brew.sh: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)...
1
vote
1answer
7 views

How can I change the ownership of the unwritable directories for Homebrew?

I had admin account before and I deleted the admin and made the user as admin because it was bit of pain in neck. This is now the admin user called zuhairhallak. Before, installing Homebrew, it was ...
0
votes
0answers
26 views

Attempting to install Mac OS X from install DVD with no previous OS installed

I have been trying for weeks to install Mac OS X Snow Leopard on my iMac Late 2006. I have been having trouble lately due to the installation saying that Mac OS X cannot be installed, although I have ...
0
votes
0answers
16 views

Decrypting external HD via terminal, seems stuck

I originally started to encrypt an external drive via right clicking the image and hitting "encrypt". It got to about 4% progress when I decided to reverse the process. Running OSX Sierra. I ran a ...
1
vote
0answers
29 views

Someone has files from my Mac on their external hard drive

I have my housemate's old Mac. He still has an account on it, neither of us have each others passwords so we cannot access each others accounts, and public file sharing is turned off (and I don't keep ...
1
vote
1answer
44 views

Where in the file system is my shared folder? (AKA: Where is /Volume, and Why Can't I Open It in Finder?)

I want to run a bash script periodically to track the size of a shared drive on my network. The command that produces the data I want is du -sh. I have created a Login item to mount the shared drive ...
0
votes
0answers
9 views

Mail disable animations doesn't work

In line with my previous question in pursuit of a better Mail.app experience, I'm trying to disable Mail's reply and send animations. The terminal commands cited elsewhere on the web, however, aren't ...
0
votes
0answers
24 views

macports telnet command to use for email server check

I just installed inetutils using macports under macOS Mojave, Then I tried to use gtelnet command, to check my email server, but I get an error relative to the DNS resolution, of this type : "Server ...
0
votes
1answer
22 views

How to prevent browser from redirecting AT ALL using terminal

I have a very limited knowledge of this stuff so I hope this explanation makes sense.... My parents have somehow got on my MacBook, and made it so that they can change any setting and view/modify my ...
1
vote
1answer
41 views

Automator - Launch terminal at certain folder

Is there a way in Automator to open the terminal application at a certain folder location with 2 tabs at that location? So for example open terminal with 2 tabs that have already changed directory ...
0
votes
1answer
19 views

Problem installing IguanaTex on Mac (can't find `.dylib` file)

I'm trying to install an experimental version of IguanaTex on my Mac. I'm stuck and need some help. Here are the directions: install AppleScript (IguanaTex.scpt) mkdir -p ~/Library/Application\ ...
1
vote
0answers
9 views

In Terminal, is it possible to “dscl . list /users” and “last” from a time machine backup from a previously owned mac?

Recently purchased and setup a new Mac and sent the old mac in for a refund. I no longer have the old mac in my possession. Even though I migrated to new from old, I'm curious to see if there was ...
0
votes
1answer
23 views

How do I remove a substring from system_profiler with a posible if then?

In short, I’m writing a script that will check if a computer is a MacBook Pro or a MacBook Air and then I want to use the output as a variable. Using system_profiler SPHardwareDataType | grep “...
1
vote
1answer
16 views

How do I use terminal to change the desktop wallpaper folder and enable “change picture every minute” plus “random order”

I have wallpaper folders called Day and Night, and I am working on a script that will toggle dark mode and change the wallpaper folder accordingly. However, I can't figure out how to programatically ...
1
vote
0answers
19 views

Why exiting my terminal shows some information now?

When I entered exit on my Mac terminal, it says something like this: logout Saving session... ...copying shared history... ...saving history...truncating history files... ...completed. [Process ...
1
vote
1answer
47 views

Cannot SSH into Cisco switch or pfSense router from Mac Mini (macOS High Sierra 10.13.6)

Errors message in Terminal are (switch 1st, router 2nd): MacMini:/ MacAdmin$ ssh NetAdmin@192.168.3.2 #Switch Unable to negotiate with 192.168.3.2 port 22: no matching key exchange method ...
1
vote
1answer
26 views

How can I close the mail function in terminal?

Every time I open the Terminal.app, it shows You have new mail. I want to know, how it is caused and how can I close the mail function. I do not wish to see any mails and the above message when I ...
0
votes
0answers
24 views

Problems with ANSI codes and less

Copy the lines below to the clipboard: H4sICPDIhFwAA2xlc3MudHh0AH1UOW7DMBDs9wtqtmblIFWQp/gN/n8bx6bIuWTBhsg9Z/bQcf/6/fl+jOfTr99+2o4 s6WD5f6ohz/...
1
vote
0answers
31 views

How to block TCP connections from unidentified IP addresses mac

I started up a private minecraft server for my friend and I, and that required me to use generic TCP forwarding in order to open it up to accept his IP address. I used this program called serveo.io ...
1
vote
1answer
50 views

Deleting empty Directory with File's Ghosts?

I am trying to delete bunch of directories appearing to be empty amr@MacBook ~/folders> ls -la -R total 24 drwxrwxrwx 6 amr staff 192 Mar 9 14:37 . drwx---r-x+ 40 amr staff 1280 ...
1
vote
1answer
34 views

How to configure the colors for Terminal Profiles

I thought it might help me to color code some of my terminal windows, e.g. made my Redis terminal red. But setting the color seems to have zero effect on the actual color of the terminal window The ...
0
votes
0answers
17 views

How can I allow an unsigned Preference Pane to run at every login?

I (used to) use a Preference Pane (PP) which was developed long before Apple introduced the idea of developers signing their applications. The developer has long since retired the PP in question. I ...
-2
votes
0answers
18 views

The operation can’t be completed because the item is in use but not in process list

I want to install new version of application X (duplicati), but I keep getting the following message: "The operation can’t be completed because the item “Duplicati.app” is in use." In terminal (...
1
vote
0answers
11 views

Setting hostname of mac Remotely? [duplicate]

I would like to know how to set the hostname of another mac remotely as done locally via sudo scutil --set HostName <new host name>. I was in a cowork space in Medellin today and someone had ...
2
votes
0answers
14 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 ...
1
vote
0answers
19 views

When using Jupyter Notebook, can't read files on desktop

No matter what Python approach I take to reading a file on the MacBook Pro desktop, I get a 'path does not exist' error message. In Terminal, I find that a web of directories was created where ...
7
votes
2answers
714 views

Difference between two quite-similar Terminal commands

I have a script that I run as part of my development (it's the activation script for a Python venv environment). The way the documentation suggests that we run it is by going to the folder containing ...
2
votes
1answer
50 views

Is there any way to install homebrew on iOS (jailbroken)

I'd like to install homebrew on my iPhone running iOS 10.3.3, which is jailbroken and has Terminal and NewTerm installed. When I run /usr/bin/ruby -e "$(curl -k -fsSL https://raw.githubusercontent....
1
vote
1answer
42 views

How can I kill/launch wifi from terminal

Linked to this Is there any way to literally kill wifi (wifi process/wifi related processes?) and then launch/relaunch it, all with terminal? maybe sudo killall WiFiAgent? macOS Sierra (10.12)
2
votes
2answers
43 views

How to show current time in mac terminal prompt?

I have this: PS1+="\D{%H:%M:%S}"; But this displays the time the prompt started. I want the prompt to show the current 12 hour (not 24 hours) time live (so it keeps changing, and then when a command ...
3
votes
2answers
47 views

How to change font size and font for all profiles in terminal?

So I have many profiles in my terminal preference, as shown below I would like to be able to change the font for all of these different profiles at once 3024 Day, 3024 Night, AdventureTime... ...
2
votes
1answer
26 views

write a “macro” to launch multiple terminal windows with one icon

I have to send a sales person to a conference, and I have a mack set up with a MEAN app (running mongo and node app in browser), I don't want my sales person to have to know/worry about how to launch ...
0
votes
0answers
46 views

Create variable size columns from tab deleminated file

I would like to columnize data from excel. I need to paste the data in a simple text file. Tabs need to be replaced with blanks. What I need is to be able to select the column width.How cat ...
1
vote
1answer
36 views

Getting list of running processes on iOS Simulator

I am essentially looking for the iOS equivalent of adb shell ps On android this returns to me a list of all apps running on my emulator. For iOS things seem to be a bit more complicated as it looks ...
5
votes
1answer
69 views

Why does my Mac accumulate too many processes?

I am starting to accumulate too many processes on my Mac. No clue why this is happening, but it is causing a lot of problems such as: programs fail to start or hang on launch in the terminal I get a ...
1
vote
0answers
25 views

grep not listting obvious matches

I am trying to use vi-style key commands for the terminal and run bind -p | grep -v '^#\|self-insert\|^$' In the output from bind -p is a list of the commands and the keys they are binded to. In ...
0
votes
0answers
37 views

Configure VPN connection on Terminal

How to create a VPN connection via terminal? explains how to use Terminal to enable a VPN connection previously configured via System Preferences. I want to go one step further and configure a VPN ...
1
vote
1answer
27 views

How do I prevent nginx from auto-loading using homebrew?

I'm using Mac High Sierra. I install nginx with homebrw a while back, but I can't remember how to permanently stop it from running when my computer boots. I have this file localhost:mydir davea$ ls ...
0
votes
0answers
23 views

Problem in defaults command when adding app with blanks in name to dock

I would like to add an app to my dock via a command. I'm able to add an icon to the dock when there are no blanks in the path. I get an error message when I have a blank in the path. The command ...
0
votes
1answer
85 views

Where are folders created by “sudo mkdir” stored?

I am new to mac terminal and I have made some folder using command "sudo mkdir". Some of this folders are hidden :/, in other words I have put a period before their names when using command mkdir. Now,...
4
votes
1answer
75 views

I can't type the '%' (percentage) character in my mac terminal

Just recently, I notice that while using my mac terminal I can't type in the '%' character. I can use any other character using the same key, for example '5' and '∞' (option+5), but when I want to ...