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

How to convert a file with extended attributes to AppleDouble format?

How can I convert a file, which has extended attributes, to AppleDouble format? I know how to convert from AppleDouble format using the Terminal utility dot_clean, but what utility can be used to ...
1
vote
1answer
32 views

Launchd running an Applescript every two hours

I have written a small applescript that I would like to run automatically every 2 hours. I have thus written the following launchd daemon (probably it is an agent): <?xml version="1.0" encoding="...
3
votes
1answer
70 views

Cannot break running process in Terminal

This has been killing me for a while. In macOS terminal, I cannot break a process. I've tried every combination of keys. Command. doesn't work. For example, if I open a screen session with a serial ...
0
votes
2answers
32 views

Bash_profile doesn’t work

I want use .bash_profile but I have a bug. In my file I have : JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home But When my JAVA_HOME is called by Ionic I have : ...
22
votes
3answers
859 views

Copying blocks of text in terminal

Is it possible to copy a "block" of text from a terminal window without having to copy entire lines? Example: Say I just wanna copy the text I’ve circled in the image above, is this possible? Or do ...
1
vote
2answers
30 views

Weird output from ls command in Terminal

I recently started customising my Mac terminal and adding Vim stuff. After some time I noticed that when executing ls command, I keep getting: )<CR>?vnoremap <Space> zf?? along-with ...
1
vote
0answers
35 views

“cp --attributes-only” equivalent for Mac [on hold]

On linux there is an option for cp : --attributes-only --attributes-only don't copy the file data, just the attributes Is there an equivalent on Mac? Edit : Basically I'm looking for the ...
2
votes
2answers
25 views

Multiple machine ssh client application for macOS

In Windows there are applications such as mobaexterm that allow the user to control multiple remote ssh clients conveniently. For example, in order to run the same command on multiple machine, or save ...
1
vote
0answers
18 views

After running `ssh-add -K` to add my SSH key to the Apple Keychain, what is the name and type of entry shown in Keychain Access.app?

Supposedly this console command will add my private SSH key to the Apple Keychain, as discussed in this Answer on the Question, How to use Mac OS X Keychain with SSH keys?: ssh-add -K path-to-my-...
2
votes
0answers
11 views

Can (Moving cursor using arrow keys in terminal) interfere with moving cursor using Trackpad?

MacBook Pro MacBook Pro (Retina, 13-inch, Mid 2014. MacOS Mojave version 10.14.1. In terminal Preferences I looked under the tab Keyboard because I read that it's possible to use Moving cursor using ...
3
votes
0answers
49 views

program hangs up when ran on similar machine

I am running a computational biology program NUPACK, with the same input, on two slightly different Macbooks Pro: First is 10.14, 2017 13-inch, 2.5 GHz Intel Core i7, 16 GB 2133 MHz LPDDR3. the ...
2
votes
2answers
83 views

How to run .sh script from usb in Terminal Recovery Mode? [on hold]

I am a novice user. I would like to run MacUserGenerator exported shell script to create an account on a brand new iMac without manually doing this in the set up process. Not sure if this possible? ...
3
votes
1answer
30 views

How come terminal processes are paused when display sleeps?

I'm running some long-running CPU intensive scripts, but I've noticed that the CPU utilisation becomes 0 when the display sleeps. I've already kept the machine awake using caffeine. Is this expected ...
0
votes
0answers
21 views

Apache uses other version of PHP than system

I've installed PHP version 7.3 on my Mac running macOS Mojave. When I go to Terminal and type php -v I get version 7.3. However, when opening common PHP script in the browser and calling phpinfo(); ...
0
votes
1answer
12 views

Adjust font size Safari sidebar Mojave

does anyone know how to adjust the Safari sidebar font size? I called Apple Tech Support and they confirmed there is no user access to modify font size in the Safari sidebar, as you can for Finder, ...
0
votes
0answers
27 views

Cannot scroll up in Terminal.app with mousewheel if window has focus

I tried fish for a while, and now in Mojave, I cannot scrollback in Terminal.app when using /bin/bash - I can manually scroll back and see things using the scrollbar, but the mouse wheel doesn't work. ...
3
votes
2answers
34 views
+50

Time Machine to Sparsebundle image on Windows 2012 server

So I've got this MB Air (Mojave 14.1 -all updates applied-) at work and thought I would try backing it up using Time Machine to an old PC running Windows Server 2012 (All updates also applied) and I ...
0
votes
1answer
142 views

macOS Mojave local snapshots

I just upgraded my Mac to Mojave and can no longer see any backup volume mounted even though Time Machine is enabled, my disk has enough space, and therefore should be used to store local backups.. ...
1
vote
1answer
43 views

Unexpected -bash command not found error when starting new mac terminal window

I was messing around with ssh keys and permissions and other things I'm not too familiar with and ended up causing some problems on my mac, including denying myself permission to my user account, ...
5
votes
2answers
105 views

Can't set different Java version in Mojave with jenv

I want to have different Java versions on my machine. I installed jenv for that reason. However, I can't set the desired Java version to it. Actually couldn't set any version. I have Java 8 and 11 ...
4
votes
2answers
57 views

Removing a file from a protected folder in Mojave

Background I am trying to remove Sound Flower from my Mac. I found some relative files in 3 places. I removed 2 of them but the third one is in a folder that will not allow me to remove it. ...
0
votes
0answers
5 views

osx: Terminal window groups dont keep their dimensions/positions

I use window-goups in OSX-terminal-app intenisvely. What I recognize and dont like: on my laptop the sizing (number of lines) is not kept. after restarting the group, it has less lines although in ...
2
votes
1answer
51 views

How can I track the progress of dd after I've already started it?

I'm migrating my HDD to an external hard drive so that I can do a clean install of OS X Mojave. I'm using dd if=/dev/disk02 of=/dev/disk15s2 to accomplish the task. disk02 is the Macintosh HD (SATA-...
2
votes
2answers
47 views

How to launch a terminal which executes vim from a script?

Basically, what I want to achieve is something similar to gnome-terminal -e vim in Linux. It will launch a vim window and when I quit vim with :q, the window will be closed. How can I do this with ...
2
votes
1answer
52 views

How to programatically set Terminal theme/profile

Context for this question: I'm writing a bash script to automatically setup any Mac with my tools/preferences, ideally with one command if possible. The question: I have a .terminal theme file that ...
0
votes
1answer
28 views

Terminal name changed to 'Name@dhcp-xx-x' [duplicate]

I have no idea what dhcp means, so I don't know why instead of just showing 'Name ~' as the beginning of each terminal line, it started showing 'Name@dhcp-xx-x' as the format of my username. Is this a ...
5
votes
2answers
72 views

Restrict ssh access to selected IP on macOS

I want to restrict ssh access on macOS 10.12 to selected IPs on my local network. I tried writing the following files: # /etc/hosts.allow sshd: 192.168.1.32 sshd: 192.168.1.33 # /etc/hosts.deny sshd:...
2
votes
2answers
34 views

AppleScript issues with Terminal commands

I want to run this command in Terminal via AppleScript but Script Editor doesn't like the dollar sign. It says: Syntax Error: Expected end of line but found unknown token. How can I enter this command ...
0
votes
0answers
43 views

Are tabs broken in macOS Mojave?

Let's say you have two tabs in a Terminal window. One of the things with the bug is, if I tap on the left tab, it opens the right one. If I tap on the right tab, it opens the left tab. Same problem ...
0
votes
1answer
16 views

Running script from BBEdit/TextWrangler gives “tput: No value for $TERM and no -T specified”

If I write a script in BBEdit/TextWrangler, e.g. #!/usr/bin/env python print 1234 and choose "Run" from the #! menu, I get this in a new document: 1234 tput: No value for $TERM and no -T specified ...
1
vote
0answers
11 views

Can’t use convmv in right way?

I’m trying to convert name encoding of some path tree with files using convmv utility. Folders look something like this: Some names are typed with transliteration. This files is okay, and I ...
1
vote
1answer
29 views

Using Console utility to get the full logs with admin perms but as a non admin user

I maintain at least 2 logins: normal is non admin permissions admin - to do those sometimes tasks but increase my security. [10.11.6 EL Cap, not new logger system. I hope to get to that sometime ...
0
votes
1answer
74 views

ssh from my mac hangs after authenticating anywhere, regardless of app. It's definitely the mac. Ideas?

I have a MacBook Pro running Mojave 10.14.1. When I try to ssh anywhere, after entering my password, the ssh session hangs immediately after authentication. Regardless of ssh app! And I'm baffled. ...
0
votes
2answers
50 views

I created a new folder on the terminal and is not shown in the finder

I came across this issue in my new mac book pro. I created a folder using iterm and I have some content on it (I cloned a git repo). When I go to finder I don't see it. So maybe I'm not in the right ...
1
vote
1answer
40 views

MacOS default folders missing

I noticed, I am missing some of my default folders in the finder (Public, Sites, Movies, Library). However I can list them in the terminal and enter them with the cd command. I tried to use chflags ...
1
vote
1answer
26 views

How can I reduce timeout for ssh when network is down?

I'm using macbook and annoyed by ssh timeout everyday. When my internet connection is down(by moving to conference room) or most of the times that macbook goes to sleep mode, ssh connections show ...
0
votes
1answer
82 views

Flash firmware without CH341A programmer

In this Answer, user @y-h-wong commented that he flashed the bootrom without using a programmer. I'm guessing this was done from terminal somehow. Not sure if this is done from within OSX or from ...
1
vote
2answers
55 views

How to quit finder

I am trying to quit finder along with the dock and status bar through terminal and I can't seem to find out how
21
votes
6answers
2k views

Copy all the text of an entire `man` page from Terminal.app

I am reading a very long man page (man ssh). I want to save all of that text for more convenient reading in a text-editor. Unfortunately, choosing either of : Edit → Select All → Copy Shell → Export ...
1
vote
0answers
29 views

Delete certain file from TimeMachine using tmutil

I want to delete a certain file from TimeMachine. Using "Delete all backups of..." from the gear/context menu doesn't do anything. No warning/error message appears. What I've found is that messing ...
1
vote
1answer
42 views

How to mount an external drive read only on the first try

How do you setup the Mac to mount the next disk you connect (through USB for example) to mount read only? My goal is to access a disk without making any changes to it so mounting it read/writing ...
3
votes
1answer
23 views

Transferring WinSCP configuration to macOS

I have been using Windows for a couple of decades, and just got a MacBook Pro. Under Windows, I was using WinSCP, with PuTTY. I just installed CyberDuck, and I know I should be able to use the built-...
1
vote
1answer
22 views

Newly-created SSH keys landed in my home folder rather than `.ssh` folder after creating with `ssh-keygen`

I used the ssh-keygen utility bundled with High Sierra to create keys, as directed by this page title How to Create SSH Keys with OpenSSH on Linux or macOS at DigitalOcean.com. Oddly, the prompt to ...
6
votes
1answer
109 views

Is there a list of pre-installed command-line tools for macOS?

I'm currently in the process of developing some shell scripts but have run into a problem: whilst I am able to execute numerous commands on my Mac, when I try to run it on other people's computers I ...
3
votes
2answers
47 views

Terminal: how to use `at`?

Could someone provide some example usages for the at command? I'm finding the man super confusing. $ man at For example, if we wanted to run a command 10 minutes from now, can this be done using at?...
1
vote
0answers
16 views

Keep needing to restart coreaudio

I'm on High Sierra, and finding that every so often (while I'm watching a movie), the sound just stops. I have to go to terminal to kill the coreaudio process, which then restarts and everything is ...
0
votes
0answers
23 views

list all open terminals

I'd like to have a command to list all terminals and the tabs opened in them along with the current directory in each tab. Is there a scriptable command or an API for the terminal.app that ships ...
1
vote
0answers
11 views

How do i minimise any window using terminal commands

I'm trying to make my discord bot console (running in terminal) minimise its self, but I do not know a command for minimising. i tried looking around but nothing. Can anyone help?
3
votes
2answers
30 views

Top: how to view the full command path?

Is it possible, using top, to view the full path of the running processes/commands? I tried pressing C on my keyboard but it doesn't seem to work.
2
votes
0answers
43 views

Is there a way to turn off the ‘Are you sure you want to open 25 items?’ warning in Mojave?

Ever since upgrading to Mojave, every time I try to open 25 or more files using either cmd+down or cmd+o I get this warning: Opening a bunch of files at once is something I do a lot so I would like ...