Stack Exchange Network

Stack Exchange network consists of 174 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
0answers
3 views

What does “Cache location entry for Photos.app in cache file” error signify in Automator app?

I have written a very basic script to count the number of files in a folder, then if it reaches 16 files, to run an automator workflow, as below: #!/bin/bash cd /Users/barbooths/Projects/...
0
votes
1answer
19 views

Does macOS Mojave comes with java pre-installed?

I just ran which java command and got the output /usr/bin/java I also executed java -version command and also got version information output. So I believe that there is an actual java executable and ...
0
votes
1answer
29 views

Mac OSX Terminal, command-line — Copy files from Folder A to Folder B based on Text File C [on hold]

what is the exact command line, for Mac Terminal bash, Copy file from folder A to folder B, based on text file C absolute path for source file/folder are: ~/Desktop/c.txt ~/Desktop/folderA/ ~/...
1
vote
1answer
22 views

How do I move files to external HD via Terminal?

I am trying to move a couple of folders from my Desktop to an external Hard Drive as Finder is not working. When I type command mount, I get the HD listed, but when I try to use command ls or cp I ...
0
votes
0answers
39 views

ditto command stops at file

I am having some issues with the built in HDD of my iMac so I started to copy files from the HDD to an external drive in terminal in Recovery mode. I am using ditto -V --norsrc "/Volumes/Macintosh ...
0
votes
0answers
11 views

Euterpea and fluidsynth on a Mac: yet more problems

In a previous question https://stackoverflow.com/questions/53977864/installing-euterpea-for-computer-music-applications-and-haskell (which relates to this question Euterpea and fluidsynth on a Mac too)...
0
votes
1answer
22 views

Determine com.apple.Finder AppleShowAllFiles status using command line?

Is there a way that I can grab the status of com.apple.Finder AppleShowAllFiles in command line? I switch between AppleShowAllFiles yes & no frequently, I want to write a .command file to check ...
1
vote
0answers
19 views

How do I keep my SSH private key passphrase away from OSX?

I recently created an SSH public/private keypair on my Mac OSX Yosemite system and for this use-case, I wanted to encrypt the private key with a passphrase. However, the first time I attempted to use ...
0
votes
1answer
13 views

Hide the cursor from the terminal

I want to be able to hide the cursor programmatically. I am okay with giving any required permissions to the script.
0
votes
0answers
10 views

How to display standard output in Mac application converted from shell script?

It's easy to convert a shell script to a Mac App as suggested here. But I am only able to see the operation result of the script(or the Mac App) after the script finished and there seem to be no easy ...
0
votes
0answers
26 views

“Critically low disk space” error when running python script since upgrade to OSX Mojave

I have a problem with a python script that is getting killed due to, what I believe, low available memory but I hope is a bug. Description as follows: I have a python script that loads 12 large (1-1....
1
vote
3answers
33 views

command line error “no volume specified”

Can't understand why I get this response when running this bless command, can someone please explain or suggest how to fix. Note: the volume syntax/path was copied exactly from the output after ...
1
vote
1answer
17 views

Create driverless print queue in Mac OS 10.12+

I am trying to set up printers via bash script in Mac OS, using lpadmin with the -m everywhere option to let my CUPS server handle the jobs. This works fine from my Linux machines, however the Mac OS ...
0
votes
1answer
35 views

Reset admin password without the old password

I am trying to reset the admin password through command line. Below command used to work till High Sierra: sudo dscl . -passwd /Users/admin new_password But on Mojave it throws an error saying: ...
0
votes
1answer
29 views

Script to check to see if certain applications were installed [closed]

I am very new to Macs however I did hear that there was a Bash script that can be utilized to check to see if certain applications were installed on a machine
0
votes
1answer
24 views

Can a “normal” user see all processes with htop?

Can I see all processes with "htop" or does it make sense to use "sudo htop" ? I use htop in the terminal (installed via brew / homebrew). My useraccount on the macbook is a default user no special ...
9
votes
2answers
1k views

Can't run one particular program from Terminal without using its full path

I want to run a program ds9 from the Terminal. The program is clearly in the PATH, which I determined by running: which ds9 /Users/evgenii/miniconda3/envs/iraf/bin/ds9 But when I run the command by ...
-1
votes
0answers
18 views

How Remove PremierOpinionD? [closed]

Installed some software with this attached. Now it's taking up stupid amounts of resources. I hate this stuff. How can I get rid of it for good?
1
vote
1answer
36 views

Connecting from iOS to macOS using ssh

Because of the OpenSSH iOS tweak and NewTerm (my phone is jailbroken), I'm able to connect from my computer to my phone using ssh: $ ssh mobile@myphonesip mobile@myphonesip's password: myphonesname~ ...
0
votes
1answer
12 views

Saving Terminal Color/Opacity Preferences

My question is related to this question: Transparent Background in Terminal? I have successfully found the menu to change color/opacity. I used the "homebrew" profile. Then I attempted to change the ...
0
votes
0answers
39 views

Terminal broken.

I am having an issue and I have no clue what I should be searching to fix it. Not experienced enough. I have zsh and probably other things I installed many years ago while making the terminal more my ...
3
votes
2answers
89 views

Mac Equivalent to Windows CMD f8

In Windows if I entered several commands and built up a little history, I could execute previous commands by typing a prefix at the command line and pressing F8 (Windows Keyboard shortcuts) to cycle ...
1
vote
0answers
24 views

Euterpea and fluidsynth on a Mac

I am trying to use Euterpea (a domain-specific language for computer music applications embedded in Haskell), and I'm receiving this error on the Mac terminal, which has to do with the MIDI (I have ...
0
votes
1answer
18 views

Bash Alt+Arrow keyboard combination not working in Terminal under Mojave

I just migrated to Mojave from El Capitan. I am a extensive user of Terminal application. But I got a bad surprise in this application: the alt+← and alt+→ that move cursor from one word to another ...
3
votes
0answers
51 views

Unable to erase disk with Terminal and Disk Utility, error -69877 “Couldn't open device”

I am referencing this question from another user: Unable to format / erase hard drive For some reason, this pesky Kingston drive I have does not want to erase on Disk Utility nor with the use of ...
0
votes
2answers
39 views

How do I partition a hdd with windows on it

I'm trying to partition an hdd with windows (bootcamp) on it into a 465gb partition and a 35gb partition. (macOS is on a different internal ssd.) Disk Utility didn't let me create a new partition on ...
3
votes
1answer
185 views

What is the CTRL+x+e equivalent for MacOS's Terminal?

In Ubuntu's (and other Linux systems) terminal, CTRL+x+e, which opens an editor to allow you to edit your command at leisure, with multiline support, and once you save and exit, it would return to ...
4
votes
2answers
53 views

Close other user’s app

Is there a Terminal command or script that will close an app running under another user? I’d rather close than kill, but if not possible, kill would work, too.
1
vote
1answer
23 views

untrusted_cert_title error when reinstalling MacOS Sierra

I've wiped out my computer and am attempting to reinstall macOS as the final step of the process to trade in my Macbook Air; however, I get the "untrusted_cert_title" error and am unable to proceed. I'...
0
votes
0answers
26 views

Why can I not open/mount a .img file?

Earlier today, I was looking for a way to create a .img file either with Terminal or Disk Utility. I managed to find a way, but as the title says, I can't open or mount the .img file. So basically I ...
1
vote
1answer
15 views

Cannot access directory through standard user even when permission is given

I have a directory that I need to use to launch my OpenVPN client in my Mac. It is copied from my Raspberry Pi server through SSH protocol with my root user in Terminal with SCP. However, I need the ...
0
votes
0answers
15 views

How do install a deprecated SDK so xcode can use it as a build target?

My development machine is hardware limited to El Capitan. 10.11.6 is plisted as my minimum target however it is not available in the build settings panel. I downloaded the macOSX10.11SDK to my Library>...
0
votes
0answers
14 views

unable to enter password on terminal for sudo [duplicate]

I am trying to disable the crypto token for apple so I can use my DoD CAC. In terminal I enter sudo defaults write /Library/Preferences/com.apple.security.smartcard DisabledTokens -array com....
0
votes
0answers
16 views

Viewing a terminal script as it runs in Automator

I have written an Automator Service that calls ffmpeg, encodes the selected files in Finder, then sends a notification via Growl to Prowl on iOS. It all works, but I'd like to be able to view the ...
0
votes
1answer
20 views

Using Command + [number] to go between terminals

Before I upgraded to Mojave I was able to use command + [number] to go between various windows in Terminal. After the upgrade that ability is gone and I am unsure how to get it back. Is it possible to ...
1
vote
2answers
47 views

Why aren't my profile and bashrc files hidden?

I've been following tutorials to edit .profile, .bashrc and .bash_profile and I discovered that my computer has profile, bashrc and .bash_profile files instead. i.e. Only the .bash_profile file is ...
0
votes
0answers
10 views

Best way to copy FILENAMES, MODIFIED DATE & SIZE in multiple nested directories on external drives? [duplicate]

I want to create lists of ALL FILENAMES, MODIFIED DATE & SIZE in multiple NESTED directories on some external drives? I am a long-time Mac user but completely ignorant of UNIX-OS X command line ...
1
vote
0answers
11 views

Best way to add /Users/$USERNAME/Library/Python/2.7/bin to path [duplicate]

So, I used pip install <package> to install a package. It lives in the /Users/$USERNAME/Library/Python/2.7/bin. Every time I want to use it I've to: export PATH=/Users/$USERNAME/Library/...
3
votes
3answers
90 views

List readonly files

I need to list or show or query for the files in a folder (well, technically, on a USB drive, but I can navigate to it in Finder/Terminal) that are marked readonly. All the Google-fu in the world ...
0
votes
1answer
18 views

MacOS - turning off the bash session restore

I’ve tried editing /etc/bashrc_Apple_Terminal as well as adding files such as .bash_profiles, etc to my home folder but my session history keeps showing - when I open terminal, it will open 3 windows ...
2
votes
1answer
20 views

Space lost after bootcamp fail

This is my first apple computer (MacBook air 2015). I had to install windows on this because my school wanted it. I tried installing through bootcamp and it failed the message was "windows support ...
0
votes
0answers
25 views

Where in the filesystem is the “New Terminal Tab at Folder” service?

I'd like to take a look at the internal workings of the New Terminal Tab at Folder service you can enable in System Preferences. My goal is to find out how to open a new tab in a running Terminal ...
2
votes
1answer
237 views

Finder shows different file size compared to terminal

I have a folder called 'objects' in my mac. When I check the contents of it in the terminal it's showing like this. Clearly object folder shows 4.1K However when I see it in the finder, It shows, ...
1
vote
0answers
14 views

Files not seen by Finder

I seem to have a weird issue with a Photo editing tool called Lumniar 3. Though I have this issue with this software, I tend to think that it could be a file setting that Finder is acting on. The ...
1
vote
0answers
86 views

Unable to format internal drive as APFS on 2018 MacBook Pro

I’ve recently ran a semi-routine clean install on my 2018 MacBook Pro. This involves the following steps (in the given order): Creating a USB installer with the latest macOS Mojave 10.14.2. Booting ...
1
vote
1answer
55 views

Running a script with administrator privileges from a standard client terminal

I have the strong feeling I'm trying to reinvent the wheel, but I did spend some time without finding an existing solution. I have an already working shell script with several sudos. Its first target ...
2
votes
2answers
52 views

Get per process user and system CPU time on OSX via command line?

I am familiar with pidstat command that gives separate user and system CPU per process on Linux: $ sudo pidstat -p 3162 Linux 4.18.0-13-generic (ubi) 26.12.2018 _x86_64_ (1 CPU) 11:26:13 ...
1
vote
0answers
26 views

Reduce or disable DNS cache in 10.13 and 10.14

I'm trying to get a hold of the property list, I'm guessing, that specifies the TTL or the amount of records held of the DNS cache of the system, if is not user/root accessible, then command that ...
-1
votes
2answers
117 views

How long does it take to convert a cdr to an iso? [closed]

I ran the command sudo dd if=/dev/disk# of=/Volumes/Path/To.iso at about 6am this morning. It's now almost 2pm and the command is still running. The cdr input image is about 300GBs. I have a Late ...
2
votes
0answers
24 views

trying to erase external SSD that is only seen in terminal

I have a SSD drive that was removed from a MacAir and placed into an eclosure. I must have screwed up the directory by deleting files from the drive and not dismounting it because the drive is ...