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
1answer
55 views

How to open path in Double Commander from Terminal

If I type open $(pwd) or open /anypath/ I will get the path opened in Finder. How I can achieve similar results but with the path opening in Double Commander instead?
-1
votes
1answer
35 views

How to create a text file and a folder from terminal?

How, from a Terminal, do I make a plain text file and a folder?
3
votes
2answers
187 views

I deleted .bash_history, now history isn't saved anymore (although I re-created it)

I have freshly installed a new copy of El Capitan. I accidently deleted .bash_history, so I just did a touch .bash_history again, hoping this would solve the problem of my bash history not being ...
1
vote
0answers
24 views

Manage Finder favourites with defaults write or similar?

I've been unable to find any preferences list file with the locations for the 'Favorites' list shown in the Finder sidebar. No luck from likely candidates com.apple.finder and com.apple.sidebarlists. ...
1
vote
0answers
21 views

Chrome desktop apps (extensions) won't launch at startup on OS X

I'm trying to figure out how to get a chrome desktop app (Kiosk) to launch at startup. I've gone to System Preferences > Accounts > Login items and added Kiosk (User > Applications > Chrome Apps > ...
1
vote
1answer
39 views

Change permissions of wheel to Read Only

How do I do the following using the terminal on mac os x?: Change permissions of wheel to Read Only in /System/Library/Extensions/Soundflower.kext
0
votes
1answer
13 views

How can I hook up a PHP server?

I have a php page I want to test on a server. Is there a server that runs through Terminal.app that supports PHP? I read this tutorial, but either I did it wrong or it didn't work. How can I start up ...
1
vote
0answers
55 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
113 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 ...
0
votes
2answers
57 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
35 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
24 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
28 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
35 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
29 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
29 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
66 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 ...
1
vote
1answer
31 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
22 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
62 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
18 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
31 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
39 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
33 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
365 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
56 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
85 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
15 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
199 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
399 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
68 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
40 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
12 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
34 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
33 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
41 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
17 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
207 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
172 views

What does Terminal.app store in iCloud?

I just noticed this. What does Terminal.app store in iCloud?
0
votes
2answers
38 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
45 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
9 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
79 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
35 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
143 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
32 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
27 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
84 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 ...