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.

Filter by
Sorted by
Tagged with
0
votes
0answers
6 views

caffeinate command keeps terminating

I'm trying to use the caffeinate command to prevent sleep on a Macbook. It keeps running into the error "Terminated: 15". Does anyone know how I can troubleshoot this? Usually it works, it happens ...
1
vote
1answer
23 views

Running FFmpeg in Automator/AppleScript

I have written an apple script previously to automate a task I do in my work many times. With Apple updating to Catalina I will lose the use of Quicktime 7 (which is part of my Image sequencing ...
0
votes
1answer
50 views

How do you update the default version of Nano on MacOS X without using the homebrew package manager?

I did do some research to check for installation methods but I primarily came across the homebrew method, and I didn't actually see any information about a binary download for Mac. The binary on the ...
0
votes
1answer
16 views

No Prompt & Password Fill Install for Homebrew

I'm trying to create a script to deploy macOS and the last piece that isn't automated is installing Homebrew. Because of the unique scenario where Homebrew shouldn't be installed with sudo, and it ...
1
vote
0answers
17 views

diff command says file exists, but I cannot find said file

I am using rsync to make a duplicate of an ExFAT-formatted external HD to another external HD. At the end of the copy, I got a message saying some files had vanished during the copy. So I used diff to ...
0
votes
1answer
23 views

Give assistive access to a single applescript

I have this script: #!/usr/bin/env osascript activate application "SystemUIServer" tell application "System Events" tell process "SystemUIServer" to keystroke "q" using {command down, control down} ...
0
votes
0answers
13 views

.command The file could not be executed because you do not have appropriate access privileges

I am trying to execute a terminal command by just double clicking a .command file. But I am getting this error. The file “myfile.command” could not be executed because you do not have appropriate ...
0
votes
3answers
27 views

macOS Catalina still uses bash as the default shell

I'm on the latest public beta of macOS Catalina and it's supposed to use zsh as the default shell and it even shows that it is pointing to zsh in the users settings but whenever I open a new terminal ...
0
votes
1answer
15 views

Ctrl + Up/Down to scroll through Terminal.app window

In the Ubuntu terminal, Shift + PgUp/PgDn scrolls the window up or down a page, and Ctrl + Shift + Up/Down scrolls the window up or down a line. On my Mac, Shift + PgUp/PgDn works the same as on ...
0
votes
0answers
16 views

name of my macbook air changed automatically [duplicate]

i noticed that the name of my macbook air in terminal changed automatically to "homepc" This is the log of the console with the exact timeline it happened: NetworkServiceProxy.framework/Versions/A/...
1
vote
1answer
14 views

Adding smb printer through terminal

Goal: Add a domain printer just through the terminal without using its IP address. Following the instructions here: https://dae.me/blog/1826/add-a-printer-via-command-line-in-os-x/#comment-256587 I ...
0
votes
1answer
47 views

Changing date created of bulk files to 9 hours before

I have 3000 files which all have different dates in which they were created. For example a file has a date created timestamp of: 1 August 11:05. How can I use the terminal to change the timestamp to 9 ...
1
vote
0answers
26 views

curl-config --ca returns a blank line, and other cert problems

This is a repost/update of this question on stackoverflow, which didn't get any attention so I'm trying a more specific stackexchange. My problem was originally that Cargo (Rust's dependency manager) ...
1
vote
2answers
24 views

Command Line for Final Cut Pro Import?

Is there a command that I can use for importation of files into Final Cut Pro? I tried this next command but Command-O is not the way to import files. open -g -a "/Applications/Final Cut Pro.app" /...
0
votes
1answer
50 views

Is it possible to execute the package (located in FTP) from terminal of Mac

I have a scenario where I don't want to allow end-user to download the file but I want for them to install the required tool on their Mac machine using the package of FTP. Is there any way that allows ...
1
vote
0answers
20 views

Search multiple documents for undefined word strings [closed]

I am looking for a way to search at least 2 documents at a time for sets of words that are common to both documents. I do not want to search for any specific phrases just phrases that the documents ...
2
votes
1answer
41 views

My MacBook Pro keeps disconnecting from a working wifi network. Genius can't figure it out. Any ideas?

The wifi is fine. My MacBook just disconnects. As soon as I click back on the network, it immediately connects again. It is just disconnecting from the network. I have disconnected every peripheral, ...
3
votes
1answer
41 views

Passing alt/opt key sequence over ssh to remote host with iTerm

Just learning the ropes of my new MacBook Pro. I have a linux workstation at the office that I use to host a number of tmux sessions, which represent whatever Im working on at a given time. If out ...
1
vote
1answer
25 views

How to view Terminal keybindings in macOS?

How can I view a complete list of keybindings in macOS for the Terminal app? E.g. Cmd+T to open a new Terminal tab. I can only find incomplete tutorials on the web, but I'd like to know where to ...
2
votes
1answer
20 views

Help formatting a file path

I'm trying to create a shortcut in Terminal and I need to provide the file path to the folder I want to jump into. To find out the file path, I dragged the folder into terminal and the output was: /...
1
vote
0answers
17 views

How do I make a new terminal window that is a child process of another one?

How do I make a new terminal window that is a child process of another one? for example, If I am in one terminal and I do export zzz=123 then a child process should have $zzz . If I do cmd-n ...
1
vote
2answers
244 views

How to execute python script by terminal?

I wanted to learn Python, I installed some software. I created a little execution files and none of them will execute. So I've checked my terminal and type basic things like Is, cd etc. None of them ...
1
vote
0answers
44 views

Apple Script with Terminal Commands

I'm trying to create an application that would automate a couple of Terminal commands. I need the application to open once I drop a file on top of it, run the commands, and close. The sequence of ...
1
vote
0answers
36 views

How to delete the word in front of the cursor in terminal on Mac OS

I've read fn + option + delete will delete the word in front of cursor. This works for me in any of the editors i use, or any other text fields (chrome, textedit etc). However in terminal, the key ...
0
votes
1answer
14 views

Mac Terminal: Get list of Chinese fonts from a given folder

I have a personal folder with many fonts, and a small percentage are Chinese fonts. How can I list them with a terminal command in order to isolate them into another folder ? I know fc-list but it ...
0
votes
1answer
22 views

What do these marks indicate exactly on these tray icons when I run Python from a terminal?

I ran an Anaconda Python installation from iTerm using python -i myscript.py. It made a plot using Matplotlib. After I closed the plot, the two icons remain. Each has a dot under it, and a little ...
1
vote
2answers
61 views

Using command line how to open a specific section of GUI System Preferences?

It is possible to open a specific section (sub section) of the GUI System Preferences via command line terminal? Example: If I want to open just the main System Preferences window, I just run open /...
0
votes
1answer
20 views

How to clear “bell” flag (icon, sound) in Terminal tab?

The Terminal tabs in OS X can sometimes trigger a persistent "bell" condition where a bell icon appears in the title tab, and every time I navigate to that tab using cmd-tab, the alert sound occurs, ...
2
votes
1answer
55 views

Can I tell Terminal that it is allowed to kill processes if asked?

Mojave on my iMac routinely applies its own updates and reboots itself, with most running programs returning to a reasonable copy of their pre-reboot state. That's fine, especially since these updates ...
3
votes
1answer
63 views

Mac Terminal Padding

Is it possible to add window padding to Terminal.app? Here's how it looks currently ... and here's how I would like it to look ... iTerm2 with padding
2
votes
1answer
34 views

Why doesn't defaults read` work for obtaining ShadowHashData key user's plist?

I've read how to obtain the user's password hash on OSX using sudo defaults read /var/db/dslocal/nodes/Default/users/user.plist ShadowHashData. However, after giving Terminal "Full Disk Access" on ...
3
votes
1answer
41 views

How to configure Ctrl+backspace Linux behavior in macOS terminal?

I was using Windows and Ubuntu previously and in their terminal, when I used to press Ctrl + Backspace it used to delete the last word till any punctuation. For example, if I had typed: ls -l /usr/...
2
votes
1answer
46 views

How to start automatically issue a command in one tab of terminal console

When I use terminal on OSX, I normally have console terminal open with a number of different tabs. In one of those tabs I have a localhost server and in another tab I have a different localhost server....
0
votes
1answer
42 views

dsconfigad returns error “authentication server could not be contacted. (5200)”, but GUI domain join works without a problem

So I've built a "script", to deploy using JAMF. It is pretty much a single command. It looks like this: dsconfigad -add "SERVERNAME" -force -computer "COMPUTERNAME" -domain "SELECTED_OU" -username "...
2
votes
2answers
36 views

How can I bulk-change the folder permissions on macOS?

I've been using an app called JDisk report which pinpoints the biggest space hogs on my drive. I've been trying to run it on the family iMac but the results are quite inaccurate because the only thing ...
1
vote
1answer
43 views

How do I create a directory structure?

I ran these commands to make the directory: mkdir webpack-demo cd webpack-demo npm init -y npm install webpack --save-dev npm install webpack-cli --save-dev and then type cd webpack-demo, then if I ...
1
vote
0answers
36 views

Applescript to set terminal window to specific size

I found this question Is it possible to define the width/height of a Terminal window with this command: osascript -e \'tell application "Terminal" to do script and tried setting my ...
1
vote
2answers
59 views

How to enable/disable Adobe host port in terminal?

I disabled some ports (below) to be able to install Adobe Photoshop/Illustrator applications. The challenge is to re-enable them through terminal, otherwise I could not install Photoshop( see below ...
2
votes
1answer
42 views

Bash doesn't support `show-mode-in-prompt` readline option for `vi` editing-mode on macOS?

I've played with vi command-line editing in Bash on Linux, and wanted to enable in macOS too, but while vi editing seems to be supported, I cannot get Bash to display vi's mode on the command-line ...
0
votes
1answer
30 views

How do I find location of executable file?

I was not able to use Illuminated Cloud on Mac since it required to enter Salesforce DX executable path which I don't know. When I installed SFDX by downloading and executing installer https://...
0
votes
0answers
23 views

Accidentally removed quicklook - Mojave

I accidentally removed the original quicklook.app, because i had installed a helper that did not work, which i then wanted to remove. I removed both the helper and the the original quicklook.app Any ...
1
vote
1answer
13 views

How to use `tmutil compare snapshot_path`?

man tmutil shows compare [-@acdefglmnstuEUX] [-D depth] [-I name] [snapshot_path | path1 path2] If a snapshot path is provided as the sole argument, tmutil will compare the computer to the ...
8
votes
2answers
210 views

Pipe to mv command

I'm trying to move files from Terminal but only those from the results of a grep query. ls -l | grep -i s02 | mv What is the best way to complete the command above?
0
votes
1answer
28 views

Cannot `brew install` from a `bash` script

I want to create a script to setup an environment on a Mac. Here's a simple sample... #!/bin/bash brew install gcovr || exit 1 gcovr --version NOTE: Script assumes brew was previously installed . ...
3
votes
3answers
102 views

Mac OS X - Bash script if statement based on system status

Creating a bash script and using the if statement, how do I execute a command based on a system status? if a specific system status is enabled do something, else do something different? I give you a ...
2
votes
0answers
52 views

Re-install MacOS (High Sierra) with terminal

This may be a bit of an open-ended question: I am would like to do an OS reinstall of High Sierra, but block it from converting the disk to the APFS format. This would necessitate the use of terminal ...
3
votes
0answers
22 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 ...
7
votes
4answers
2k views

Accidentally deleted everything from a directory on my Macbook using terminal

I accidentally did a rm -rf * on a wrong directory on my macbook terminal. It appears that the rm command operates just like on a Linux system, where it's irreversible. But I did back up my Mac to ...
2
votes
1answer
38 views

What are the command line options for afconvert?

macOS includes a tool called afconvert which describes itself this way in the man page. Audio File Convert will convert a source audio file to a new audio file with the specified file and data ...
2
votes
1answer
24 views

Locked file that I can't remove

Long story short, I downloaded a file as a replacement for an app that no longer works on Catalina (macOS 10.15). This file is locked, and I cannot chmod it to let me unlock it. Even sudo fails. I ...