Questions tagged [command-line]

Using programs and commands that do not have a graphical user interface (GUI) but are rather controlled by typing text commands into a terminal program, or shell.

Filter by
Sorted by
Tagged with
1
vote
0answers
29 views

Setting System Preferences via script

Good thing: I got a spiffy new e-ink monitor and it's going to help a ton with my concussion symptoms. Bad thing: It can't exactly handle things like video conferencing, so I need to switch back and ...
0
votes
1answer
27 views

Create a symlink pointing to a variable filepath

I am using MacVim installed via homebrew. The absolute path to the app is /usr/local/Cellar/macvim/xxxxxx/MacVim.app, with xxxxxx the version number. MacVim version number is updated often. Now I ...
2
votes
1answer
24 views

Grant Terminal Access to Web Cam

I am currently working remotely due to the pandemic, and am attempting to identify the physical room that a set of lab iMacs are currently in. Our CMDB states that these machines are in Room A; ...
0
votes
1answer
17 views

How can I turn on the macOS firewall from a script

I'm setting up a new Mac Mini and I am using a script assembled from commands that I've accumulated over the years to set defaults, create directory structures, install software, and otherwise ...
0
votes
0answers
12 views

Howto revert Homebrew 'git fetch --unshallow'?

I searched homebrew and he gave me this message: Warning: homebrew/core is shallow clone. To get complete history run: git -C "$(brew --repo homebrew/core)" fetch --unshallow I run the advised ...
0
votes
1answer
39 views

Delete picture from the photo library using the command line?

After installing my wife's new Mac (macOS 10.15.4 Catalina) some pictures ended up in HEIC format. This format is not convenient for her, so I converted the files using ImageMagick. Somehow the files ...
0
votes
0answers
14 views

Copying and pasting between terminal windows adds extra characters

I've recently moved from MacOS 10.4 to 10.15. I use Japanese/English/Russian/Chinese, and I've noticed a different behavior when copying between terminal windows on 10.15. Extra characters, ...
5
votes
2answers
210 views

Find exact string in file contents from Command Line

Is there a way to have mdfind detect an exact string, say "what I look for", in the content of files? I tried all the recipes (double quotes, escaped double quotes etc.) in vain. I'm not interested in ...
0
votes
0answers
21 views

What are the .sh equivalents for the following two .bat files? The syntax is too overwhelming for me to decode [closed]

@echo off cd windows echo Version Info: echo( echo( echo( echo Release Vendor V2 echo Aosp Recovery V4 echo( echo( echo( ping -n 3 127.0.0.1 > nul fastboot -w fastboot format:ext4 system ...
2
votes
1answer
16 views

Guide to the output of the builtin airport command line utility

I am trying to understand the output of the airport command line utility on OSX: /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I agrCtlRSSI: -45 ...
2
votes
1answer
21 views

hdiutil attach -shadow not working

This question is for those of you familiar with command-line tools and disk images. I'm stumped! Previously, I could mount a read-only disk image with a "shadow" file to make it read-write using this ...
1
vote
1answer
25 views

Homebrew command-line to display a formula's homepage

I can open the homepage for a Homebrew formula by running the following command-line: brew home <formula> and for a Homebrew Cask by running the following command-line: brew cask home <...
0
votes
1answer
20 views

Powershell install keeps asking for a password

I'm trying to upgrade my version of powershell to the latest version 7.0.1 using brew. The install seems to be stuck on disabling some ruby gems and is constantly asking over and over again for my ...
2
votes
0answers
30 views

Moving several files to trash in Mac terminal without using rm, any plugins?

Looking for a way to: Move several files to the Mac trash in terminal without using the rm, crazy regex,finder, or something destructive. Today I realized I was just asking the wrong question. Once ...
1
vote
1answer
69 views

How to list all files on the system

I would like to list all files on my system from command line. The provided BSD find command, with the following command line sudo find / lists many of the files twice, under the root and under /...
2
votes
0answers
24 views

Automatically copy files to a flash drive in terminal

I am trying to make a script that will automatically copy any files in the home directory with the extension .txt. What commands should I use in Terminal to search for and copy any txt files to a ...
2
votes
2answers
156 views

Blank Sudoers File

I have been trying to set up some stuff for JS, but I need to use sudo. Every time I use sudo, I get this message. >>> /etc/sudoers: syntax error near line 80 <<< >>> /etc/...
0
votes
0answers
10 views

How can I remove Today's Date in Notification Center View in macOS Mojave?

I imagine the answer involves defaults write com.apple.notificationcenterui <something>.
1
vote
0answers
21 views

How to omit file extension from zsh autocomplete?

I'm new to zsh in Catalina. In .zshrc, I currently have setopt CORRECT setopt CORRECT_ALL When I run a java program from the command line, I want only: % java ProgramName If I type java Pro ...
0
votes
1answer
30 views

iTerm2 - zsh - keep history of commands when opening a new pane

with zsh on MacOS Catalina, when I split my current window of iTerm2 by opening a new pane, I would like to be able to keep in this new pane the history of commands of previous pane (which is still ...
0
votes
1answer
21 views

How can I get .zshrc to run in its entirety every time I open zsh

Here is the entirety of my .zshrc. alias ll='ls -l' export HOME='/Users/rcorty/Dropbox' This file is at /Users/myname/.zshrc. When I start iTerm2, I check whether the home directory was reset by ...
0
votes
0answers
30 views

Using pbcopy & pbpaste with rich text formatting results in empty clipboard

I've found plenty of resources that say this should work, but I'm having no luck with rich text formatting with the pcopy & pbpaste commands on MacOS Catalina 10.15.4. % echo '**foo**' | pandoc -...
1
vote
0answers
14 views

How to run shell script from MacBook Touch Bar [duplicate]

I have a simple shell script command like this which can be run via automator or workflow: cd /Users/myuser/Documents/Code-Files/scripts/; /usr/local/bin/node code_upload.js I'd like to add this as ...
0
votes
0answers
12 views

process investigation (wackly ruby)

I develop ruby on rails apps. Today I noticed a bunch of unexpected ruby processes taking up a bunch of memory. So I decided to investigate. The results of the investigation are sort of inconclusive ...
2
votes
1answer
30 views

802.11 physical mode in command line

How can I find which 802.11 protocol (e.g. 802.11ac) my network card is using from the command line? This provides several ways of doing this using GUI utilities, but I want to be able to do it ...
0
votes
1answer
26 views

Trying to create a symbolic link in OS 10.14.6

I'm trying to install a symbolic link but when I enter the command I think should work ("sudo ln -s /Applications/harris/idl87/lib/xop/xop2.4/xop /usr/local/bin/xop"), I get no response at all. ????
0
votes
1answer
29 views

shasum -a 256 on dmg file returns nothing

I am getting no results when I check this freshly downloaded file from TDAmeritrade. I have searched for an answer to this but no joy. Can anyone help? Thanks. Edges-MacBook-Pro:Downloads edge$ ...
1
vote
1answer
20 views

Trouble setting Sublime Text as default editor for entering Git commit message [closed]

I am learning git command-line. I wish to set Sublime Text as the default editor for entering commit message, when I run the git commit command from Terminal. But when trying to do so, I am running ...
1
vote
1answer
44 views

What commands can be issued to Excel for Mac from the terminal?

I know I can tell Excel to open a file with: open MAC\ Addresses.xlsx -a "Microsoft Excel.app/" But I cannot figure out how to do anything with Excel from the terminal. Where can I find a list of ...
0
votes
0answers
12 views

Coping .a & includes files to usr/* directory to configure GTest on MAC OS Catalina Version 10.15.4?

Configuring GTest for on Mac OS Catalina Environment. Step in configuring GTest is copy static Library to /usr/bin location & next, is to copy include directory to /usr/local/include location. ...
2
votes
0answers
20 views

Unkillable process: what does this PS command output mean?

This process couldn't be killed. I tried kill -9 and it's still hanging on by the skin of it's teeth: What does ?E mean in the status column? I think I have a systemic problem with this on my Mac ...
1
vote
0answers
13 views

How to get a shareable link to a file in iCloud by command line?

There is a way to share files on my iCloud, one by one, with a shareable link. It's badly named "Add People". I use it often to send files to my friends or family. When it's more files, I just zip ...
0
votes
1answer
22 views

Edit a date value in plist from terminal

I am trying to edit a date value in a plist to todays date. I found a previous question on here relating to it, but i get an error every time. Here is what i am using defaults write com.test.name....
1
vote
1answer
56 views

How to remove cmake

I recently installed cmake with the ./bootstrap executable which is part of the source distribution. Now I don't need it and want to get rid of it. However, instead of downloading cmake as a dmg and ...
0
votes
1answer
28 views

How to convert an epub file to pdf from the command line?

I want to convert a few .epub files into .pdf files (no merge, just convert file_1.epub to file_1.pdf, file_2.epub to file_2.pdf, ...) and was wondering if there was a way to streamline the process ...
0
votes
1answer
21 views

Error when using pkgutil to flatten an application bundle into a flat package

I have an application bundle that I need to convert to a flattened package. In my case, the application is a simple bash script that has been bundled into an application using Platypus. To flatten ...
0
votes
1answer
26 views

How to change the size of the icons that appear in the Terminal.app

After updating to MacOS Catalina 10.15.4 the icons that appear in my Terminal.app have become extremely small. As you can see in the picture, there is a big gap between the arrow -> that is ...
3
votes
1answer
229 views

Download a file from a FTP server to a specific location?

I know I can get to a FTP location by accessing: open ftp://user:pass@my_ftp_server/my_file This will download the file in the Downloads folder. How can I tell FTP tp download the file to a ...
2
votes
3answers
69 views

Mac Terminal or iTerm: Copy the current command but exclude prompt?

I am using Terminal or iTerm (iTerm2). Let's say I've typed in a command but haven't hit enter yet. Or maybe I used the up arrow to navigate through my command history. How do I copy the current ...
0
votes
1answer
33 views

Remove package using terminal on Mac

I installed a package (asciiart) a while ago but it appears that it did not install properly or is currently not working due to updates. Even the help command doesn't appear to be working: $ asciiart ...
0
votes
0answers
16 views

How to delete only the icns content from a file's Resource Fork using the command line?

I want to remove the custom Finder icon from a file using the command line. I know I can use SetFile to disable the custom icon: SetFile -a c /path/to/file # flips the "custom icon" bit to off ...
0
votes
1answer
52 views

How can I construct my grep command on zsh to return a specific value?

I am trying to use the command line to extract a specific value from a web page. The page is from the VS Code marketplace: https://marketplace.visualstudio.com/items?itemName=HCLTechnologies....
1
vote
1answer
38 views

Help needed to add text to the end of a string using the “sed” command in Terminal

In Terminal.app, I used the curl ftp... command to get a directory listing of folders and files from my friend's computer and I directed the output to a file called "curlFTP.txt". Each line of this ...
0
votes
0answers
21 views

Create GIF from Screenshots

Hello everyone, I need to create a program to take a set of screenshots and converrt them into a GIF. I've currently got this code in Shell which works, but the output is quite choppy. cd "~/....
1
vote
1answer
38 views

looking for something more modern than X11 “streaming” with local Vagrant Linux VMs

I have a similar question like Alternatives for XQuartz?, because XQuartz is discontinued since 2016 and X11 feels in general obsolete. I use vagrant to spin up Linux VMs and connect with ssh to the ...
1
vote
1answer
39 views

Launch terminal program from macOS app

I use Fork and I'm trying to set up a custom command that will open a file in Vim. I'm not using MacVim, so the command needs to open a terminal, preferably iTerm2. Executing /usr/local/bin/vim doesn'...
5
votes
4answers
414 views

How do I verify the checksum or hash of a downloaded file on the command line?

If I have downloaded a file from the internet, and the source website has provided a checksum or hash (eg. SHA-256), how do I verify that the hash of the downloaded file matches the hash reported on ...
0
votes
1answer
23 views

Lauching a Terminal '.command' file, without exiting session

I've found several similar requests, but not really what I'm looking to find. I want to write a shell script, run its commands via double-click, and stay open, to continue my work in the Terminal. I ...
2
votes
1answer
192 views

softwareupdate tool — oddities with macOS Catalina

Tests and Observations I invoked the softwareupdate command this way to create an installer for High Sierra: sudo softwareupdate --fetch-full-installer --full-installer-version 10.13.6 ...
0
votes
0answers
25 views

How to create a space from commandline in Mac?

I want to be able to create a new space from the command-line so that I can quickly launch a set of applications in a particular space. Would be preferable if I could directly create the space in a ...

1
2 3 4 5
43