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.

0
votes
0answers
6 views

applications ghost

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 ...
0
votes
2answers
33 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
21 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
16 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
16 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
23 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
41 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
13 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
38 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
21 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
14 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
1answer
18 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. ...
1
vote
1answer
30 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
12 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
47 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
33 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
66 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
91 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
63 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
151 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
82 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
40 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
696 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
16 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 ...
2
votes
1answer
37 views

How can I make sure that the title of a Terminal tab/window is identical to the command I typed

I noticed that for aliases etc the title of a Terminal tab/window often isn't the same as the command I typed. This is sometimes confusing, especially for long-running processes with similar names. ...
26
votes
1answer
3k views

I Accidentally Deleted a Stock Terminal Theme

I accidentally deleted a stock Apple terminal theme that I'd like to get back. The one I accidentally deleted is called "Pro" (under the Profiles tab in the Terminal settings). Is there a way to get ...
1
vote
0answers
24 views

How to check if mac user uses Time Machine? [duplicate]

I want to know if a mac user uses Time Machine so I can tell him it's a good habit to do backups. So I need to detect if either: user never activated Time Machine last backup is very old so it's like ...
2
votes
1answer
23 views

macOS: The cursor in Terminal won’t blink

Is the macOS Terminal.app cursor not blinking the default macOS behavior? How can one configure it to blink?
0
votes
0answers
16 views

Enforce 2 security settings on Mojave

I would like to enforce the "require password immediately after sleep or screen saver begins" option via terminal on macOS Mojave. However, I am having trouble with finding the time setting with ...
0
votes
1answer
43 views

How can i change Terminal Settings to automatically close terminal after Execution using shell script

when i execute some command file or shell file after execution terminal remains open and its not look appropriate i want to close the terminal by script without changing settings manually in MAC ...
1
vote
0answers
31 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 ...
2
votes
1answer
45 views

How can I change the default delay time before automatic shutdown?

I don’t want to change the default delay time before shutting down all the time, but on occasion I want it to be 10 seconds and still show the dialog. The only documentation I could find was for ...
0
votes
1answer
26 views

Allow find command to access my files

I'm trying to use the find command to find a file on my Mac. However, when I used the command I accidentally denied my Mac permission to search my various folders, including documents and photos. How ...
4
votes
2answers
60 views

Hidden .DS_Store files not appearing in Finder despite enabling display of hidden files

Hidden .DS_Store files are appearing in Terminal when using ls -a command, but not in Finder. I have tried used keyboard shortcut Command + Shift + ., which toggles display of other hidden files and ...
2
votes
1answer
29 views

Automated copying of Finder comments

I have a bunch of old files in FLV format, which VLC will convert to M4V format while preserving the audio and video tracks (not re-encoding them). Many of them have Finder comments that I want to ...
0
votes
0answers
8 views

How to swap Option and Command keys in Terminal but keep Command-Tab application switching?

With Karabiner, you could swap Command_L and Command_L only in Terminal and at the same time keep Command-Tab and Command-` to cycle through open applications. Karabiner only works with macOS < ...
1
vote
1answer
64 views

How do i add icon on .sh file using terminal

I need to change .sh file icon only for the single file how can i do it with terminal
6
votes
2answers
1k views

How can I open an app using Terminal?

I want to be able to open any given app from the terminal, now I have tried osascript -e 'open app "Calendar"' I have tried for Mail, Calendar and Slack.. Slack acctually opens but it does generate ...