questions narrowly about terminal.app alone should use this tag. Please consider using **command-line** for any question not specifically about the native terminal app

learn more… | top users | synonyms

1
vote
0answers
147 views

How to convert OS X Dashboard widget to desktop app?

I would like to convert a OS X Dashboard widget to a desktop app, namely the Stocks widget. I understand I could move the widget to the desktop using terminal to enable developer mode for Dashboard ...
2
votes
1answer
352 views

Can't delete Logical Volume Group on Fusion drive

I have a 2014 iMac Retina running OS X Yosemite and a 3TB Fusion drive. I am attempting to restore it from a Time Machine backup, but when I try to do so, I get the error message, "The disk can't be ...
1
vote
2answers
112 views

How to Poll USB mouse through terminal in El Capitan

I've been trying to view which devices are connected to my USB ports through terminal in El Capitan, in particular a USB mouse. I've read online that I can ls /dev/tty.* to view all connected devices. ...
0
votes
1answer
49 views

OS X Terminal: 'ls' shows program but then says command not found?

I am trying to start MongoDB from the terminal. When I navigate to the folder and hit 'ls', all the applications show up but when I type in the name of the application( 'mongod'), it says it is not ...
0
votes
0answers
34 views

The file that cannot be deleted

Today I've been clearing out my hard drive, removing files and applications I no longer need. I deleted a few stubborn files using command line rm. But I've run into a file that resists all my ...
0
votes
2answers
39 views

Terminal command to enable write to remote NFTS drive

Can the drivename be "Seagate Backup Plus Drive" in the Terminal command ... label= drivename none ntfs rw,auto,nobrowse or will the spaces create errors in Terminal?
2
votes
2answers
72 views

Bash history is not remembered in Terminal

My Bash history is remembered when I connect to my Mac via SSH, use iTerm2 or launch bash in the built-in Terminal app (every command I typed in bash is saved) but is not when I just use the built-in ...
0
votes
0answers
40 views

Slow login and Terminal loading time in Yosemite, possibly related to open directory

I have a problem with slow login times in Yosemite. Logging in is speedy after booting, but after a while (a few days usually) it slows down and can take 20-30 seconds. The time to load a new ...
0
votes
0answers
31 views

Z shell history broken on OS X Mavericks

I can't get Z shell's history working at all. cat .zshrc : HISTSIZE=1000 SAVEHIST=1000 HISTFILE='~/.shell_history' setopt APPEND_HISTORY EXTENDED_HISTORY INC_APPEND_HISTORY Whatever the terminal ...
4
votes
1answer
118 views

update_terminal_cwd demystified please?

I am trying to find the documentation on what, exactly, the printf command is doing in update_terminal_cwd. If you didn't know already, the update_terminal_cwd function is defined (at least on Mac OS ...
2
votes
2answers
81 views

How can I get iTerm 2 to copy only what I select?

iTerm2 has a very nasty habit of making an assumption of what I want to copy and paste from the terminal. Instead of just allowing me to copy exactly what I highlight, it will expand to what it ...
1
vote
1answer
27 views

Can softwareupdate be used to automatically download (but not install) on the terminal?

Could the Terminal command softwareupdate be used to download (but not install) any MacAppStore updates, say with a scheduled Calendar running an Automator/AppleScript script?
2
votes
2answers
127 views

How to get the password hashes for a user in Mac OS X 10+, in recovery/single user mode?

I would like to view the hashes on my Mac, in either single user mode, or the terminal in recovery mode. I tried to follow the steps described in OS X 10.9: where are password hashes stored. But I ...
0
votes
1answer
46 views

Characters and notification bounce when Terminal loses focus

OSX 10.11.2 Terminal 2.6.1 I have an intermittent issue that is driving me up the wall. I spend a lot of time in Terminal in full-screen mode on my 2015 11" Macbook Air. I generally have Chrome or ...
0
votes
0answers
52 views

Why is “com.apple.quarantine” extended permission being added to downloaded files?

Recently I found downloaded files were not accessible through my web browser when viewing a site running inside a VirtualBox server. I noticed downloaded files have the extended permission ...
3
votes
3answers
52 views

Unexpected changes to command line

When I open up a command line on my Mac the welcome message is usually Last login date Johns-MacBook-Pro$ This now reads... Last login: Fri Dec 18 23:48:34 on ttys000 Johns-MBP-2:~ johnw$ What ...
1
vote
1answer
45 views

Application tries to launch although it is deinstalled

In my console a message is occurring every 10 seconds. I think it's trying to launch a deinstalled application (NetDrive2): 18.12.15 23:55:40,047 com.apple.xpc.launchd[1]: ...
9
votes
1answer
486 views

Terminal - how to restart session after inadvertently exiting?

Sometimes I inadvertently exit from a Terminal session (usually because I think I'm connected to a remote system, when I'm not), so I get to this point: How I can I restart the session at this ...
4
votes
1answer
73 views

Duplicating and renaming Finder selection to the same folder in one clean step?

Is such a thing possible? I have this code which can do the above: set now to do shell script "date +%Y-%m-%d' '%H.%M.%S" tell application "Finder" set finderSelList to selection as alias list ...
1
vote
2answers
135 views

How to open applications in fullscreen via Terminal

I just created a script to open my most-used apps, but I have two questions about it. The code of the script is the following: #!/bin/bash echo "Hi $(whoami)" echo "Openning your default apps..." ...
0
votes
1answer
28 views

Changing configurations for Jrnl

Greetings to the apple community. I'm a newbie to mac and the terminal and I have no previous exposure to Linux. I have only casually used computers. However I've been wanting to step up my game and ...
3
votes
1answer
481 views

What does sudo chmod 0755 /usr/local and sudo chgrp wheel /usr/local do?

I uninstalled Homebrew, manually removed the /usr/local contents. The following possible Homebrew files were not deleted: /usr/local/.DS_Store /usr/local/bin/ /usr/local/etc/ /usr/local/include/ ...
5
votes
2answers
632 views

grep: command not found

This is a very weird behavior. Lately, whenever I am trying to find a process on console with ps aux | grep foo, it is returning a grep: command not found. Ok, that could be something that I changed ...
12
votes
3answers
1k views

What must I enter into Terminal, using sudo to make myself an administrator?

My user account is a standard account on my Mac. What must I enter into Terminal using sudo, to make myself the administrator?
0
votes
0answers
145 views

Sending F5 keystroke using iPad Pro Smart Keyboard

I have got an iPad Pro that I am using with Apple Smart Keyboard. I want to use it to write latex file using Vim editor. I use Vim in a server which I connect to through SSH using an application ...
4
votes
1answer
69 views

How to manually add ssh key to keychain?

In the past year I've been using dsa keys to access several remote machines. On one of these machine, dsa keys have been deprecated so I simply switched to rsa. In doing so it seems that my key is not ...
0
votes
0answers
13 views

Disk's Volumes corrupted when shutdown during synch

I've had this issue for quite a while I had a Windows Dualboot. When running OSX, and when Dropbox is synching, when shutting down to boot into Windows, the disk where Dropbox was synching to gets ...
3
votes
1answer
47 views

How do I type a tilde in spanish keyboard?

It is difficult work with the Terminal if you can't type the tilde. Does anybody know how to do this using a Spanish keyboard?
4
votes
2answers
57 views

Change terminal color for each tab

I work on a lot of tabs in terminal at a given time. Sometimes, I get tabs mixed up and accidently run commands on tabs I am not supposed to. To simplify this, I wish to write some script, that on ...
3
votes
1answer
52 views

Why is the host name in the shell prompt “MacBook-2” instead of “MacBook”?

I opened Terminal on my MacBook Pro and the prompt read MacBook-2:~ myName$. Is there something wrong? Do I need to be worried about this? Why "-2"? Thanks in advance.
1
vote
1answer
21 views

How to define a shortcut for OS X terminal using Shift-PageUp?

Using the system settings, I tried to re-map the keyboard shortcut for previous and next page from Cmd-Pageup/Dn to Shift-Pageup/Dn. However, the system settings dialog for shortcuts does not seem to ...
3
votes
3answers
517 views

Best way to check in bash if Command Line Tools are installed?

Using bash, I want to check if Command Line Tools are installed. Currently they are and when I will type xcode-select --install I get: xcode-select: error: command line tools are already ...
11
votes
1answer
174 views

What does Terminal.app store in iCloud?

I just noticed this. What does Terminal.app store in iCloud?
0
votes
2answers
53 views

Can't ssh into another mac on same network, wrong password

I've got two macs on my home network, both are enabled for Remote Login. From mac1 I open terminal and enter "ssh mac2.local". I am prompted for the password but the when I try the password I use ...
3
votes
1answer
63 views

Get notified by notification centre when someone ssh's into my computer?

I know that if I open Terminal and I type inwho, it shows who is logged in and at what time, etc. However, I am not going to be at Terminal all day and keep typing who. So, I would like a notification ...
1
vote
1answer
15 views

How do I edit keyboard shortcuts in Nano?

Is there a way to edit the keyboard shortcuts in Nano? I would like to change Move to next word from Right: Ctrl + Space and Left: Alt + Space, to Alt + ← or →. According to this thread on ...
0
votes
0answers
126 views

How does OS X detect a PowerPC application?

I use an application called Anki for learning foreign languages and professional terminology. This app creates a default folder in /Users/user/Documents/Anki, which I did not want. You can circumvent ...
0
votes
1answer
39 views

Setting up bash_profile but alias not found?

Trying to set up my bash_profile but I don't know what I'm doing wrong. touch ~/.bash_profile And... open ~/.bash_profile Save and close the .bash_profile. Then close and re-open Terminal and ...
1
vote
1answer
256 views

How can I create bash_profile and bashrc [duplicate]

OS X 10.11.2 El Capitan I want to create some alias, so I go to ~/ folder and there is no .bash_profile or .bashrc. I have been looking for some info and I learn that .bash_profile is only read ...
0
votes
0answers
16 views

bit lost wrt to permissions and users

So I am installing postgresql and it mostly works, kinda. I have a user postgres that was create by the postgres createuser commmand. I understand that the intent is a do-nothing user that can just ...
0
votes
0answers
59 views

xterm settings lost after update to El Capitan

I mostly use my laptop to run a browser and lots of xterms. This morning I took the plunge to El Capitan, and now all my xterms look like they did before I did any customizations. I recall that ...
1
vote
1answer
39 views

Is there a way to change the font color of the current path in termial? [duplicate]

I'm styling my Terminal and what I need is to change the color of the path, if you still don't understand what I mean, here's a pic: There you can see the shaded area (Jonathans-MacBook-Pro:~ ...
2
votes
2answers
155 views

Wrapping youtube-dl into automator via applescript

I am hoping to make an automator application that prompts the user for input (i.e. youtube url), and downloads it using youtube-dl (already installed via Homebrew). After this, I am trying to use the ...
0
votes
0answers
14 views

Terminal command that causes the Finder to stop and not relaunch [duplicate]

I am looking for a terminal command that causes the Finder process to stop and not automatically restart itself. The command killall Finder will cause the Finder to just relaunch.
1
vote
2answers
36 views

How do I search quickly in iTerm 2?

When searching in iTerm2, some kind of of fancy live highlighting thing seems to kick in even before you hit enter. When the scrollback buffer has more than a few thousand lines in it, this search ...
2
votes
1answer
67 views

Any way to remove all folders that contain only .DS_Store recursively?

If I try sudo find . -name '.DS_Store' -delete then, within a few seconds, the .DS_Store files get re-created by Finder before sudo find . -type d -empty -delete can take effect. I can do ...
1
vote
2answers
44 views

alias not working in terminal

I'm on a mac in Terminal. open -a "Sublime Text 2" opens Sublmine Text 2, just like I want it to. I now want to alias this to my .bashrc file, which I have an use for other things like prompt ...
0
votes
1answer
75 views

How to set the color of terminal text in ssh session exact same as local session?

So this is almost a copy from my previous question: Change output color of terminal (in Mac) to be different from typed text color for which I got a great answer here: ...
1
vote
0answers
12 views

Automate searching for a product by item number on a website and saving its image [closed]

I hope this is the right place to ask and that this question is appropriate. I don't intend to waste anybody's time. I am working on an ecommerce website and am just in the tedious stage of adding ...
2
votes
2answers
517 views

Why bash history on my mac won't save?

I have always used bash for work, and never had problems with it. Now, it does not save any command in history again. If I open a window terminal, try some commands, it acts like everything has ...