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
4 views

Serial terminal not taking keyboard input

Not sure when this started, but I can't seem to get any keyboard input in my serial terminal window. No issues however in binding the tty.usbserial interface to the terminal program and getting output ...
0
votes
1answer
4 views

How to select a tab in iTerm2 via AppleScript

I am quite a startet with iTerm2 and AppleScript, and can not find a way to let one of my 3 opened tabs get selected via an AppleScript. I have no problem to create a new tab and to select it, but I ...
0
votes
2answers
21 views

How to set Xcode as core.editor in git?

My current git config core.editor returns dreamweaver which I set up two years ago from inside the app(IIRC), and now I don't use it. I am receiving error while amending the author of the last commit. ...
1
vote
1answer
26 views

Has Unix Parameter Name SystemAudioVolume Been Changed to SystemAudioVolume DB in El Capitan?

I am trying to change the startup sound. When I checked the setting using: sudo nvram -p it returns a setting for SystemAudioVolume DB %ee I entered: sudo nvram SystemAudioVolume=%00 When I ...
0
votes
0answers
15 views

Getting the Java jar file could not be launched even though it runs normally from terminal, any help?

I exported my Java project but when i try to double-click on it and open it normally I get that it could not be launched and I should check my console for possible error, found nothing there. Tried ...
0
votes
0answers
15 views

How do I find which IP address softwareupdated daemon is downloading Mojave from?

I have started downloading macOS Mojave and went to Activity Monitor to check the download speed and it is disappointingly low. Activity Monitor shows me that a process called softwareupdated is ...
2
votes
0answers
12 views

Not Admin | Firmware password error | Recovery Mode wont boot

This probably sounds pretty sketchy, so I’ll preface my question with a brief run down of how I got here... Pretty sure I was hacked... It’s a mid-2012 running High Sierra on a SSD harrdrive. ...
0
votes
0answers
7 views

Is scutil d.add different from the defaults write ?Plist only have number, so what is the role of int and float?

I saw an article on the Apple official website when debugging smb, which used such a complicated bunch of commands. Is it different from the defaults wirte I use below? Plist only have number, so what ...
1
vote
1answer
31 views

Including virtual environment in bash prompt

I am using bash on MacBook Air running macOS Mojave and wanted to change the color of terminal prompt. I was helped on this question on SO and this IBM blog after which I used export PS1="\[\e[...
1
vote
1answer
48 views

What version of OpenSSH is included with macOS Catalina (10.15) beta?

I'm interested to know which version of OpenSSH ships today on Catalina beta Can someone running the beta version of Catalina run the following command in Terminal for me and provide the output? /...
0
votes
0answers
25 views

Applescript to set environment variable before opening terminal

I have the following Applescript in a workflow assigned to a service hotkey that opens a terminal in a given Finder window: tell application "Finder" set myWin to window 1 set thePath to (...
3
votes
1answer
191 views

Sending message from Terminal does not work when the Mac is sleeping

I have a script that LaunchControl runs in the middle of the night to back up my database and send a message that it has been done. The message is sent as follows: osascript -e 'tell application "...
1
vote
1answer
42 views

Lock Screen using terminal? Osascript is preventing keystrokes

I want to lock my Mac's screen remotely. I don't want to sleep my Mac. Only the screen. I don't want to require a password every time I put my monitor to sleep (system prefs/require password). And ...
1
vote
1answer
86 views

Large .bash_profile increasing time for terminal to do things. Able to fix?

I've got an almost 100 line .bash_profile which does things like check the git branch and colour certain text. This makes things like even starting a new line significantly slower compared to the ...
3
votes
2answers
81 views

How to write a text in Terminal using AppleScript?

How can I insert a text into Terminal.app using AppleScript? I don't mean to execute it (press Enter). Only to insert it. My current script almost works: tell application "Terminal" activate ...
1
vote
1answer
54 views

Show window dimensions in titlebar in iTerm2

In the default Terminal app the current width and height of the window are always displayed in the title bar, whereas in iTerm2 they're only displayed for a few moments when resizing. How can I ...
0
votes
0answers
23 views

Getting “No such file or directory found” while using wine, any help? [closed]

I tried Installing wine from the official website and I had the same error Currently using it by installing it and xQuartz in Homebrew still getting same error -bash: /Applications/Wine Stable.app/...
0
votes
0answers
12 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
44 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
73 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
24 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
22 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
29 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
34 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
45 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
17 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
17 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
15 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
51 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
27 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
52 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
50 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
46 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
18 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
246 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
46 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
37 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
15 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
66 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
24 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
68 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
39 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
42 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
49 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....