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.

1
vote
1answer
18 views

How to ssh with public-key on an iPad?

I want to use an iPad to connect to a linux server through ssh. However, the server only accepts encrypted access using public-key authentication. Is there any way to do that? So one question is ...
0
votes
0answers
6 views

I'm trying to build melonDS for Mac and i am running into an include error

the output is this. bash-3.2$ make -- Configuring done -- Generating done -- Build files have been written to: /Users/owenwatts/melonDS/build [ 1%] Building CXX object CMakeFiles/melonDS.dir/src/...
0
votes
0answers
29 views

Right way to add paths to PATH in mojave

I'm not clear how to add permanently paths to the PATH env var. I've found several questions for this each time with a different answers. I created a .bash_profile in my home dir, but each time I ...
1
vote
0answers
9 views

launchd error “Could not find and/or execute program specified by service”

I am trying to get a script to run from launchd at regular intervals. The service loads but does not run the script. The script itself is a very simple test script as follows: echo "Hello World!" &...
0
votes
0answers
11 views

Can't access files on external HDD from Finder but Terminal works fine

So I AM using the setting in 'Get Info' - "ignore permissions" and I have told it to apply it to recursive folders but still when I try to access folders in the Users directory I'm not able to. ...
0
votes
1answer
29 views

my hostname is not my laptop name

My laptop's hostname appears to be Georges-MacBook-Pro-Mid-2145.local, $ hostname Georges-MacBook-Pro-Mid-2145.local Why is the number reported here 2145 instead of 2015? (I own a MacBook Pro Mid-...
0
votes
1answer
32 views

Trouble extracting zip file in macOS

I downloaded Signal desktop app from this URL: https://updates.signal.org/desktop/signal-desktop-mac-1.24.1.zip However, when attempting to extract the zip archive using unzip command, this is what ...
0
votes
0answers
12 views

List PIDs of processes that require high perf GPU

Macbook Pro with Radeon card is huge pain. Is there a way to list in terminal processes/PIDs that use high perf GPU so I could easily kill them? I know Activity Monitor has "Energy" tab and there you ...
1
vote
0answers
20 views

macOS Terminal.app can't split with Command + D

I installed zsh. When I press Command + D in iTerm2, it could split normally. But when I return to using Terminal.app, I use bash or zsh, it can't split with Command + D, it changed like the ...
1
vote
1answer
28 views

How to find out whether NVRAM was reset?

I was having some issues with my mac so I reset NVRAM by holding ⌘+⌥+P+R. The problem is that this laptop does not chime when NVRAM is reset, so I'm not sure if NVRAM was indeed reset. How can I ...
4
votes
3answers
840 views

Where to find documentation for `whois` command options?

macOS has whois command available. Running it without any argument shows the following: usage: whois [-aAbfgiIklmPQrRS] [-c country-code | -h hostname] [-p port] name ... Here, the -c, -h, and -p ...
4
votes
1answer
574 views

Broken Git installation on my Mac. How do I fix it?

I've had git running on my MacBook Pro (macOS High Sierra 10.13.6) for ages. I recently uninstalled Xcode because I never use it, but that seems to have broken Git and I can't figure out how to fix it....
-2
votes
0answers
38 views

How to fix 'Too many levels of symbolic links' error in virtuanenv? [on hold]

I am getting error (Too many symbolic link levels) while setting up virtual environment in Django web application framework. I tried to look the following question and answer on Stack Overflow: ...
0
votes
2answers
40 views

How to install default/stock Terminal app?

I uninstalled the default/stock Terminal app via AppCleaner. How to get the default/stock Terminal back without reinstalling Mojave?
0
votes
0answers
14 views

applications ghost [on hold]

This is the situation, the applications of my macbook pro seem to be installed but, when starting them the screen flickers and does not open, that with all, even with terminal and disk utility, what ...
-1
votes
2answers
70 views

Using mv to rename files on terminal ended up with lost files

I'm on macOS Mojave 10.14.4, on a APFS SSD. Last week some students delivered me some image files over an image processing assignment. I have an automated routine on Matlab to grade the assignments, ...
0
votes
1answer
29 views

Open a terminal on a remote computer?

I want to open a terminal and run a command on a remote computer through SSH. I don’t need to see what is happening in that terminal, but I cannot make it work. I know to open a browser, for example ...
1
vote
1answer
17 views

LSCOLORS and CLICOLOR active by default and unset

Running zsh out of the box ls -G produced a colored list with the default colored values. But when I echo, both $LSCOLORS and $CLICOLOR, I receive an empty response. Reviewing printenv or set also do ...
0
votes
1answer
39 views

What commands can I run in the Terminal, and how do I use them? [duplicate]

I just found the Terminal and I want to know which commands I can run, and what they do. Is there a command that would list me the available commands? Is there a command that tells me how to use the ...
0
votes
0answers
19 views

How to fix Automator passed arguments returning empty files?

I'm attempting to create a workflow in Automator that uses jpegtran to convert several hundred album art jpg files from progressive to baseline. I can manually run the script in terminal like so: ...
0
votes
0answers
32 views

Terminator terminal on Mac

I installed terminator using these instructions: https://jee-appy.blogspot.com/2017/10/install-terminator-mac.html Then I started it up with the terminator command from the terminal. Terminator ...
1
vote
1answer
42 views

bash $PS1 containing an emoj

This question is related to https://apple.stackexchange.com/a/357132/44531 I would like to have a space after the emoj 😱. I've tried in the script below but I'm getting two lines instead of the ...
1
vote
0answers
21 views

How to hide or deny access to Wi-Fi access points in macOS High Sierra or Mojave [duplicate]

Backstory: I work in a building with hundreds of wireless networks. I want to hide these networks from my users and only allow them to access a specific network (SSID 1). They only have the ...
-1
votes
0answers
14 views

Why is kernel_task lagging my computer, and how can I limit it? [duplicate]

Kernel_task on my computer jumps from 3-380/400 CPU usage whenever I'm playing games, and causes my computer to lag. Is there any way to safely limit it. Edit: kernel_task's CPU usage is spiking with ...
0
votes
1answer
48 views

How to delete macOS Installer boot

I tried to install a macOS High Sierra update, but I got the error "An error occurred installing macOS" and thus I decided to erase the Installer.app and dmg on my drive. Now every time I close my Mac ...
1
vote
1answer
22 views

Switching the Wi-Fi network from terminal does not succeed (DHCP fails)

I am trying to switch Wi-Fi network via the command line: networksetup -setairportnetwork en0 corpnet01 networksetup -setairportnetwork en0 Home where "Office" and "Home" are DHCP enabled networks. ...
0
votes
0answers
17 views

On Mac terminal keyboard key action macros?

I want to assign long commands in one key on Mac terminal. For example, I have assigned command php bin/magento under F13 key from "Terminal → Preference → Profiles → Basic → ...
1
vote
2answers
26 views

Finding the icon of the default application from Terminal

Say I have some files simple_doc.txt document.pdf website.html The .txt file opens with textEdit by default, the .pdf opens with Adobe Reader and the .html file will open in Google Chrome. How can ...
15
votes
6answers
2k views

How to find all the available tools in mac terminal?

I am trying to setup a bunch of development projects in my Mac. I have to run various tools like python, ruby, scala, groovy etc. To see if a tool is available I use options like ruby --version. ...
2
votes
1answer
32 views

Why is networksetup so slow compared to manually changing Wi-Fi networks?

if I run networksetup -setairportnetwork en0 myssid it takes between 10 and 15 seconds. If I manually click the Wi-Fi icon in the notification bar and select myssid, it's instant. Alternatively, I'...
0
votes
0answers
13 views

Fix slow terminal launch in mac without preventing metro builder from running

I followed the steps given in this answer It works pretty well, but when i run my react-native project, which requires metro builder, it fails to launch. Metro builder won't start with these tweaks ...
2
votes
1answer
48 views

MacOS terminal “login: illegal option — e”

Whenever I open my terminal on my Mac I get this: login: illegal option -- e usage: login [-pq] [-h hostname] [username] login -f [-lpq] [-h hostname] [username [prog [arg ...]]] [...
3
votes
1answer
34 views

Is it possible to fix the spacing when using “ls” with colored output?

This is the exact same issue found here: https://unix.stackexchange.com/questions/165154/changing-the-spacing-between-files-in-ls When you run the command ls -G or CLICOLOR=1; ls the spacing in the ...
0
votes
1answer
69 views

How can I make Automator run service I made (shell script) and display the output in Terminal?

Hi I'm new to Macs and OSX, I'm using p7zip cli app to compress folders with big files inside (1; 2 GB or more). So I managed to make a Bash script to do it in batch process when I go to bed and I'm ...
3
votes
0answers
102 views

What is identityservicesd?

*Just a preface I do not have anything noticeably wrong with my computer (MacBook Pro (Retina, 15-inch, Mid 2015), Mojave 10.14.4), and I was learning as I went along. In the process of cleaning out ...
1
vote
0answers
25 views

Recover deleted file by inode

I had a crazy file named ''$\r' that I wanted to delete by inode. So I googled how to do it and found an example. Being half asleep and a few beers in, I typed in the inode in the example: find . -...
2
votes
3answers
78 views

Automate arranging files into folders based on beginning of file name?

Looking to quickly arrange a whole load (talking about multiple thousands) of files into subfolders, and the files come in sets of three (left audio, right audio, video) separate files. Not ...
1
vote
1answer
15 views

extract if_index without grep from scutil --dns

I'm using the grep command to extract active interfaces from the output of the scutil command with the --dns option. $ scutil --dns | grep 'if_index' I am suspecting if a user's machine with ...
2
votes
1answer
68 views

Terminal PATH startup message

I messed up when installing Cisco Packet Tracer for Linux and it some how changed a few bash files. After a few hours of looking around and changing my PATH, when I open a new Terminal window I get a ...
2
votes
2answers
157 views

Admin password not working for sudo?

I've been trying to run this command in the terminal: $ sudo rm -ri ~/.Trash However after being prompted to type in my password (which I believe it needs to be the admin's password) and after ...
1
vote
1answer
89 views

Error: “sudo: command not found” when trying to use XAMPP [closed]

I am trying to use XAMPP to create a server on my MacBook. I'm following the tutorial here: https://www.webucator.com/how-to/how-install-start-test-xampp-on-mac-osx.cfm and I'm stuck on the bit ...
3
votes
0answers
41 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? ...
1
vote
0answers
22 views

“open” command not working after upgrade to High Sierra

After my recent upgrade to High Sierra, the command line command "open" no longer opens much. I have tried it on PDF, PPTX, png. It does work on ascii text files. The 'Preview' app does open if I ...
0
votes
1answer
25 views

Run USAF Digital Datcom

I want to run the software Digital Datcom in my Mac, which is a Macbook Pro with macOS Mojave 10.14. For this I had to download the program Xcode form the appstore, as well as the gfortran package ...
0
votes
1answer
25 views

Restore file to previously saved version?

Hey guys so I was using Xcode as a text editor to write a C code, and without paying attention I deleted the whole code I had on the file and somehow it got saved that way. When I noticed this (the ...
3
votes
4answers
706 views

“which” command doesn't work / path of Safari?

Why can’t I locate programs like Chrome or Safari or FireFox with the which command line tool? pasocon:~ ThisUser$ which python /anaconda3/bin/python pasocon:~ ThisUser$ which firefox pasocon:~ ...
2
votes
0answers
35 views

Re-enable Mac media keys originally disabled via terminal

My Mac media keys are completely disabled. I originally disabled them far too long ago to remember how exactly I did it but I remember it was via the terminal that toggled a switch not available ...
1
vote
1answer
31 views

View EXIF/metadata found in photo?

Is it possible to view/dump metadata found in images using Terminal with built-in command line tools? I'm looking for something like exiftool, but native to macOS Mojave. Does such a command/tool ...
1
vote
0answers
8 views

How to bind Option-Delete to backward-delete-word in zsh vi mode in tmux and alacritty terminal

I use alacritty and currently, I have these key binding key_bindings: # (macOS only) - { key: N, mods: Command, action: SpawnNewInstance } - { key: F, mods: Command, ...
0
votes
0answers
17 views

I want to prevent the Touch Bar from sleeping when left inactive

I just bought a new MacBook with Touch Bar and when ever I'm watching something, or the Touch Bar is left inactive, it dims and sleeps which is really annoying to me. Is there any terminal command or ...