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

3
votes
1answer
301 views

How to open files via Terminal

I want to open videos and pictures from Terminal. Is there any way to do this?
0
votes
1answer
49 views

Where is load presets option in Terminal preferences?

I have El Captain installed. I want use external color scheme and for that I am following this video but I don't find Color Presets option in terminal. My El Captain's terminal looks very different ...
0
votes
0answers
25 views

how many times rsync read error repeat?

I run this command on terminal: rsync -r --progress /Volume/HD1/Dir1 /Volume/HD2/Dir1 The result: rsync: read errors mapping "/Volumes/HD1/Dir1/File1" : Input/output error (5) rsync: read errors ...
1
vote
1answer
89 views

How to move a file from within the app to another folder?

When I download a PDF from Safari and it opens automatically (which I want), I then want to be able to drag the document title thumbnail to a folder and MOVE it to that folder. Instead, it creates an ...
2
votes
0answers
36 views

Terminal Change text appear area to bottom right

I want my terminal to have the prompt lines (I don't know what to call them) come from the bottom of the terminal window, and be fixed to the right of the screen, not the left. Is there any way to ...
3
votes
2answers
132 views

How can I set the Mac OS X terminal history to act like linux when using up/down arrows?

I'd like for the mac os terminal app to scroll through my command history the same way that it work in linux, if possible. Currently, if I push the up arrow in the terminal, it will scroll through ...
2
votes
0answers
51 views

Terminal hangs when title includes unreachable NFS path

[Edit: reframing to make the question more clear] I use the Mac Terminal to access remote linux systems. On the Mac, the bash prompt is set by: PROMPT_COMMAND='echo -ne ...
1
vote
1answer
38 views

Number pad produces strange output in certain commands in Terminal

Running OS X 10.10.5 (Yosemite) Well, something happened to my system (I can honestly say it wasn't me but), I was unable to use the USB keyboard number pad while using commands such as 'less', ...
1
vote
1answer
156 views

Cannot symlink gcc-5 instead of clang on OS X 10.10.5?

I've installed gcc-5 via brew install gcc5, and I've tried linking gcc (which is clang by default) to gcc-5, but whenever I try running gcc, it's using clang. I've also checked that /usr/local/bin is ...
1
vote
2answers
44 views

Terminal: Remove specific extension recursively

I have a folder, containing many other folders. Some of the folders contained therein (at arbitrary depths) have a specific extension, let's say, .ext: TopFolder + Folder1 | + Folder11.ext | ...
0
votes
0answers
17 views

Keyboard settings, unwanted characters in terminal

Today, something has change my keyboard settings. There are symptoms: I jump between words with alt+arrows in Sublime but today it started shuffling songs in Spotify (turns out it's shortcut to ...
0
votes
1answer
50 views

How do I launch a process with different date/time settings than the rest of the system?

I'm developing a desktop app for OS X with behaviour that depends on the date. I want to test the behaviour without waiting for a specific date. I'd rather not change the date settings of the whole ...
0
votes
2answers
80 views

how can I avoid custom access permissions when copying from time machine

I have recently done a clean install of El Capitan, having backed up files on Time Machine. However, there is something wrong with the time machine backup: when I enter time machine it won't list the ...
1
vote
0answers
30 views

-bash: 1: command not found - Immediately on loading Terminal [duplicate]

Upon loading my terminal (since trying to install composer globally) I'm being spammed with countless amounts of -bash: 1: command not found before I even type any commands. I'm not quite sure what ...
1
vote
0answers
25 views

Scrolling Behavior in Terminal

Until recently, when I scrolled in my terminal, it scrolled through the history. However, recently that behavior changed and now it scrolls through the command history. Where is the setting to change ...
0
votes
0answers
36 views

Has anyone got a preferred front-end for SDL Mame & got it running?

In short, I usually do emulation with OpenEmu (Experimental) http://openemu.org/, but I believe (and I am happy to be proved wrong), SDLMame (http://sdlmame.lngn.net) runs more of the roms (that may ...
2
votes
1answer
24 views

The date/time when the OS is installed

I just wonder if there are any ways to check the date and time when the Mac OS X was installed. I guess the system must store the information of this type somewhere, but I don't know how to mine it. ...
1
vote
2answers
2k views

Bash script not found El Capitan

I have created a Bash script that simply does ls -l. In Mavericks and older versions of OSX I simply made a symlink to the script and put it in the /usr/bin folder (ln -s ll.sh /usr/bin/ll) and I ...
0
votes
1answer
39 views

Control characters in Terminal and an international keyboard

I have a Linux server with services running inside systemd containers. To access the shell inside a container, I can use the command machinectl login <container>. That command will give me the ...
2
votes
1answer
19 views

What would cause a CLI utility to ignore arguments except when invoked directly?

Okay, so this just happened: iMac:bin nreilingh$ tree --version . |____tree iMac:bin nreilingh$ which tree /usr/local/bin/tree iMac:bin nreilingh$ ls -l /usr/local/bin/tree lrwxr-xr-x 1 nreilingh ...
1
vote
0answers
37 views

plutil returns error when a string numeric key is used

I'm trying to insert a row to a plist by using the following command plutil -insert "160" -string "hi" file.plist However the system was not so happy about the fact that I was using a numeric key ...
1
vote
0answers
43 views

How do I access sshd log messages that are in system.log with /usr/bin/syslog?

I am aware that messages on OS X are usually logged in the ASL database which then (based on asl.conf) are also written into files like /var/log/system.log Based on this comment I tried (and failed) ...
0
votes
0answers
41 views

Running shell commands from netcat

I have a shell script that I am serving up through netcat - I'm using this as an experiment to learn more about unix I can now do nc 127.0.0.1 1234 | sh and it will pipe the script commands into the ...
0
votes
0answers
7 views

.command popup message. Need help

So I made this .command file. When I open it up, it says that I need a JDK to run this file. I installed JDK and all but is there a step that I missed?
4
votes
1answer
283 views

How to turn off the Terminal's “Allow mouse reporting”?

Every time when opening an new Terminal window, the View -> Allow mouse reporting is always checked. And everytime i must press CMD-R to disable it. Is here a way how to disable it by default?
1
vote
1answer
58 views

“lsof -i” Command output explanation

i am attempting to maintain a closer eye on my Apple-Mac's outgoing and incoming connections; in collaboration with other processes such as tcpdump and netstat, i have been using the command: lsof -i, ...
1
vote
0answers
81 views

Fixing multiple Users permissions

In a classroom environment after a month without issues all of the sudden everyone is getting locked out of their folders, including my local admin user. What works is logging into each user, ...
8
votes
2answers
400 views

Check if caps lock on in terminal

Is there a way to query the system to tell if the caps lock is on or is off from the command line in terminal.app?
4
votes
1answer
2k views

MacOS El Capitan icon change

I having a big question with some icons i change. I managed to move into rootless by restarting and CMD + R to boot into Recovery, then utilities and terminal. On terminal i wrote csrutil disable ...
1
vote
1answer
58 views

Accidentally deleted files using GNU find -delete - how to recover?

I was playing around with OSX find and GNU find from findutils (v 4.4.2) package for learning purposes. GNU find has a -delete option, which is self-explanatory. What isn't, however, is that "Use of ...
0
votes
1answer
29 views

Simple Console Editor for OS X Terminal

I am looking for a simple console text editor for OS X to run in a terminal. I have used “Joe” for many years, and it’s very good, but I am looking for one that is simpler. In particular I would ...
1
vote
1answer
48 views

Open a bookmark in Safari from Terminal

I do online tutorials one at a time and in a Safari bookmark called Current I always update the address to my current tutorial. I want some terminal command which I can call to start Safari and open ...
0
votes
1answer
58 views

bash script to verify that brew cask is installed

I am writing a script to setup a mac development environment, however I am running into an issue on some peoples macs where cask does not install. Is there a way I can verify if cask has been ...
1
vote
1answer
30 views

How to clone a damaged HD?

Been through a bit of the suggested answers, nothing has been suggested that I haven't tried (unsuccesfully, as of yet), so I turn to the group for answers. I have a 2.5" HD from an MacBook ...
1
vote
3answers
56 views

Change html files to txt on entire folder

Is there a mac terminal command to change all .html files to .txt including the files in sub folders too?
1
vote
1answer
70 views

Openssl on mac -In is not working

I am follow a tutorial guide from this link http://osxdaily.com/2012/01/30/encrypt-and-decrypt-files-with-openssl/ to try to produce -sha256 hash from an input file but when i type openssl dgst ...
0
votes
1answer
51 views

Command to find process and restart it

I have an issue with my Logitech Mouse software always crashing when it switches between different power modes, this crashes their software on Mac OS X (Yosemite). The app is used to control the ...
0
votes
1answer
120 views

Any reason not to change the root shell to bash?

The default shell for root (at least on Yosemite) is /bin/sh. Would there be any problem to changing it to bash (or better yet zsh)? As far as a I know bash at least is backward compatible. I need ...
1
vote
1answer
29 views

Permission Denied for apropos command

I'm trying to list the contents of the whole apropos (makewhatis) database with the following command but I keep getting Permission denied. sudo -s apropos . > touch thedatabase -bash: touch: ...
3
votes
3answers
1k views

How to store SSH Credentials in Terminal

I am new to the MacBook and I am running El Capitan. I'm migrating my machine usage from a PC to a MacBook. I am long time user of PuTTY and SuperPuTTY on a PC. I want to create and save login ...
0
votes
0answers
33 views

arrow keys in nano text editor on iPhone

I am using the nano text editor on iPhone, the one included in the terminal app downloaded with Cydia. I have difficulty in editing my files, because I cannot properly move the cursor. I can only move ...
1
vote
0answers
140 views

Command line tool for interacting with Bluetooth Low Energy devices, similar to gatttool

I've just found out that some Python code I've got working on Linux also needs to work on OSX. For reliability reasons, on Linux I've been using a cludgy but effective approach to reading and writing ...
1
vote
1answer
52 views

Run Terminal Command from .terminal file

I just figured out how to export settings from terminal which creates a .terminal file. And I realize that the ExecutionString parameter has changed to the CommandString parameter. I put a command in ...
1
vote
0answers
31 views

Bash add Symbolic Link to Finder sidebar

Can I programmatically add a symbolic link to the Finder sidebar. Manually dragging is not an option. Bash is preferred, but other options that can be invoked from bash (i.e. application with ...
2
votes
1answer
223 views

PostgreSQL- Cannot connect to server

PREFACE: I just bought my first Mac laptop a week ago so that I could get some work done on my trip, but so far I've spent most of my time trying to solve an issue with PostgreSQL. Something went ...
1
vote
1answer
62 views

Auto completion of accents and tilde OSX

I've been working on macs for a couple of years now, and recently switched jobs (Software dev). Before when I was typing something like "e would not automatically merge into ë. This is really ...
1
vote
0answers
109 views

How to disable mouse acceleration without logging out?

I know I can type in the terminal: defaults write .GlobalPreferences com.apple.mouse.scaling -1 to turn off mouse acceleration BUT this requires me to log out and log back in to take effect. The ...
0
votes
0answers
64 views

SSH disconnects after successful connection after pressing any key

I am working with a new macbook pro with OS X Yosemite 10.10.5. I have had the problem described below since my very first ssh connection attempt at the terminal a couple of weeks ago. Since then, I ...
5
votes
3answers
420 views

Setting font weight in Terminal.app for El Capitan

I've noticed that there's a subtle difference in the way fonts are rendered in the Terminal app in El Capitan (vs Yosemite). It seems like it used to be the case that the AppleFontSmoothing property ...
1
vote
2answers
3k views

External Display and Blurry Fonts on El Capitan

I am one of the many who have extremely blurry fonts on external displays connected to my 2014 MacBook Pro. The solution for me has always been to follow this guide which runs a ruby script and puts ...