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
2answers
252 views

Numeric keypad keys in vi insert letters instead of numbers

I'm new to vi. Actually I'm using it just to modify small text files. I've a serious and unusual, I think, problem with the numeric keypad, as follow: I write vi IN and press enter. This make me ...
0
votes
0answers
41 views

“Console mode” crashed under Yosemite

I tried to enter the "console mode" in OS X 10.10.5. However, after some characters existed on the screen for about 1 second, the screen turned dark and nothing else happened. It must has been crashed....
0
votes
0answers
37 views

Open SSH server files automatically with AppleScript

I am trying to build an Apple Script which will: 1. Open terminal login in SSH with details 2. After login, open a python script which is on ssh server automatically I want to do all of these tasks ...
-3
votes
1answer
48 views

Make mac become more server [duplicate]

Take another system I use (for example CentOS). I use the following code to make it become server. # No GUI systemctl set-default multi-user.target # Enable SSH sudo systemctl start sshd It has ...
0
votes
1answer
40 views

How to make terminal maximize at open?

By right clicking its icon, I can make terminal.app "Open at Login". But I want to maximize the terminal window when it's opened. So it will be very cool when I login: Imagine an OS X without GUI! (at ...
0
votes
0answers
60 views

False error Undefined property when debug php script in El Capitan

I have installed PHP and x-debug from homebrew in El Capitan: php -d xdebug.remote_enable=on -v PHP 5.6.18 (cli) (built: Feb 6 2016 06:53:53) Copyright (c) 1997-2016 The PHP Group Zend Engine v2.6....
0
votes
2answers
43 views

Rights on file read write execute

I am logged in as "myuser" which is also the administrator of the computer. I have a file on which I have the following rights: -r--r--r-- 1 myuser staff 167 17 Feb 14:26 my_python.py However, ...
0
votes
1answer
55 views

Managing keychain from terminal

I want to move my keys from login keychain to system keychain from terminal. Is that possible? I checked the security manual but I can not see the option there to do so.
1
vote
1answer
42 views

ssh port forwarding error

I have two Linux servers and one Mac client, and I would like to do SSH port forwarding via local port address on the Mac. In Terminal 1 on the Mac, localhost:~ user1$ ssh -L 8022:server2:22 server1 ...
1
vote
1answer
98 views

Ssh app on iPad runs bash script

ServerAuditor is a free iPad app that allows ssh to a server. I am trying to copy my public key to a server to allow password less login. On a pc this is easy- Generate the rsa key open terminal and ...
1
vote
0answers
41 views

Is there a unified shortcut key of Home/End for Terminal, Vim and Sublime Text in OS X?

It seems that in Terminal: fn+shift+← is Home fn+shift+→ is End in Vim: fn+← is Home fn+→ is End in Sublime Text: cmd+← is Home cmd+→ is End And Ctrl+A and Ctrl+E seems to work ...
0
votes
0answers
50 views

Using “open” command in OS X Terminal / Finder split view

When I use Terminal + Finder in Split View mode I would really like to use open . command to open folder in the same Finder window. But instead - new window is opened. I also tried open . -g - no ...
1
vote
1answer
93 views

How to enter internet credentials using terminal?

After attaching the ethernet cable to my Mac I need to enter username and password to access the Internet: The problem is that I would like to perform a system recovery using cmd+R at startup. ...
0
votes
0answers
21 views

Terminal always starts from mathematica command line

This is an old issue in my MBP. If I open terminal, it doesn't show the command line, but runs mathematica. Thus I must type 'Quit[]' to exit the mathematica environment. The mathematica was installed ...
1
vote
1answer
63 views

Setting anacron on Mac - Shell Scripting

I set cron to run script every day using env EDITOR=nano crontab -e where I wrote something like this @daily path/to/sript.script. Now I want to use anacron to be sure that script is going to be run ...
1
vote
1answer
129 views

Using “tar” command in Terminal for multiple folders/files

I have many files like these SomeDirectory/RandomName.spa SomeDirectory/AnotherRandomName.spa SomeDirectory/YetAnotherRandomName.spa ... I want to unpack every .spa file in SomeDirectory to their ...
1
vote
1answer
195 views

Install automator service via command line

I would like to automate my Mac installation flow for services. The following is my script: #!/bin/sh rm -rf ./tempWorkflows mkdir tempWorkflows for filename in ./*.workflow; do cp -R "$filename" ...
2
votes
1answer
41 views

is a directory error in bash script

I have very limited knowledge of bash scripting, and I haven't been able to figure out what I'm doing wrong. So I apologize if there's an extremely simple solution that I've overlooked. I'm trying to ...
1
vote
0answers
22 views

How do I get Terminal to stop forgetting history in 10.11

The current version of Terminal seems to have restructured history into a session based history management. For example, each tab has its own history on exits of Terminal and starting up Terminal ...
3
votes
1answer
63 views

How to differentiate between Terminal scripted launch and manual launch for .bash_profile settings

I have some .bash_profile settings that restore my last working directory every time I log in to my shell. However, I also use a program that opens a terminal window in the current directory open in ...
0
votes
0answers
66 views

Issue with libcurl.4.dylib

I'm trying to run Photo Grabbr to bulk download from Flickr but I can't get it to run on Snow Leopard Server (10.6.8). I get the following error in the problem report: Process: Photo Grabbr [...
0
votes
0answers
38 views

why does the which command output the same path twice?

Why does this command have this output? $which -a python /usr/local/bin/python /usr/local/bin/python /usr/bin/python Specifically, why is "/usr/local/bin/python" listed twice? The "/usr/local/bin" ...
0
votes
2answers
109 views

How to set proxy on OS X Terminal permanently?

For every new session in OS X terminal, I have to make my proxy settings again. I do this by entering the command export http_proxy="username:password@ip address:port number" Is there a way to ...
0
votes
1answer
32 views

Detect Terminal Color “Theme” from Command Line

When one uses the terminal inspector, one can change many properties of the terminal, such as background color, text color, and selection color. How can I detect what these properties have been set ...
0
votes
0answers
41 views

2013 Retina Macbook Pro Turn off and back on when opening the lid

This only happens sometimes but it bothers me because I have to wait for all the script I got to load again. I cannot figure why is it happening. Here is the log: 2016-02-06 20:12:17 +0100 ...
0
votes
1answer
42 views

Copy extended attributes to new file (ffmpeg)

I'm currently trying to decode some video files with ffmpeg on my computer but am not able to make ffmpeg copy the tags from the source file to the destination file. I read through the man page but ...
0
votes
0answers
22 views

tmutil associatedisk -a has no effect

I used this method often in the past and it always worked well. Now, however, tmutil will not re-associate my external disk. I copied the contents from drive A to drive B. Now I would like to continue ...
-1
votes
1answer
128 views

How to install the websploit framework in OS X 10.11.2? [closed]

I wanted to ask how to install websploit in the Mac's terminal. I have downloaded the file from WebSploit Framework.
1
vote
1answer
129 views

Trying to burn a CD: “hdiutil: imageinfo failed - image not recognized”

Using the Application Burn, I saved some music-CD's as image-file to the desktop as .iso, along with the right .isoinfo. Now I want to burn those images to empty CD's, but I get the following error ...
0
votes
1answer
23 views

How to configure a proxy in a new network location using Terminal.app

I'm writing a bash script, which will create new network location and configure it. The question is - how to add proxy settings to specific network location using terminal or bash script? P.S. I'm ...
0
votes
2answers
145 views

terminal: how do i pipe the results of grep to open a file

I'd like to grep and open a file in just one terminal command. Suppose I'm in this directory: $ ls 1.txt 2.txt 3.txt 4.txt 5.txt and I want to open 3.txt I thought I could do ls | grep 3 ...
0
votes
1answer
45 views

Path not being honored?

I have the following in my .bash_profile: $ cat ~/.bash_profile # Prompt export PS1="\h:\W$ " # Standard path export PATH="/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin: /opt/local/...
0
votes
1answer
31 views

Batch modifying file metadata

I'm looking for an application or command line tool that can batch edit file metadata. I have some audio files recorded using a recorder that was off by 1 hour, and I want to modify the creation date ...
2
votes
1answer
3k views

How do I create user accounts from the Terminal in Mac OS X 10.11?

I would like to be able to create new users in Mac OS X 10.11 remotely after ssh'ing into the machine. On Mountain Lion, these steps were listed. Running dscl . -create /Users/joeadmin dscl . -...
1
vote
2answers
64 views

Strange files named “/xEy4O” keep appearing

I'm running OSX 10.11.3 and I keep finding files named /xEy4O all over my file system. I've opened them in a text editor and they are completely empty. So they appear to be a marker file of some sort. ...
3
votes
2answers
377 views

Easy way to execute shell script

I want to be able to search in Spotlight for a shell script (or something that calls a shell script) and that such shell script opens a Terminal window so the output is shown live (and I can interrupt ...
0
votes
0answers
46 views

Open djvu file with Evince?

I have installed evince from homebrew. But I have no idea how to change the default application of djvu file to evince. Yes, I can run it from Terminal, but it's not always that convenient. This ...
1
vote
1answer
62 views

List number of files in multiple zip files

How can I get the total number of files in multiple zip files at the same time? I have around 1000 zipfiles in one folder and would like to know the total amount of files inside them all combined. How ...
1
vote
0answers
376 views

NFS on El Capitan: In rwxrwx— directory, Finder can't delete but Terminal can, and both can create

I have an NFS drive mounted: /../Volumes/PDISK2 -fstype=nfs,nolockd,rw nfs://10.0.0.11/Volumes/PDISK2 /../Volumes/PDISK3 -fstype=nfs,nolockd,rw nfs://10.0.0.11/Volumes/PDISK3 Taking ...
0
votes
1answer
96 views

Terminal Command into Applescript

I have the following terminal command that I want to automate using applescript. I also would like to have a command to cd directories to the folder where I want to apply the command first. After cd ...
3
votes
2answers
141 views

How can I make a script that opens terminal and runs my executable?

My students and I are using gcc to compile programs which ask a series of questions then display a result. Right now if we are running a program called "main" for example, we have to open a terminal ...
0
votes
0answers
93 views

use python to mount smb share from osx including special characters in the password field

I've seen plenty of scripts for mounting a smb share in osx via terminal and python. I'm working toward the python solution using the answer at the end of this similar question. The only issue I ...
1
vote
1answer
40 views

What do some of the / directories do? [duplicate]

When I run cd / && ls I see some directories in which I know the purpose of, and then others I don't. Here are the directories I do not know the functions of: /etc /opt /private What do all ...
0
votes
0answers
27 views

Data recovery/overwritten files?

I was troubleshooting how to install boost and came across a thread on stackoverflow that seemed to be about vaguely the same thing. I ran the terminal commands written in the thread, and realized (...
0
votes
0answers
15 views

Can't Install Debian Source

I have a jailbroken iPhone 4 (iOS 7.1.2) When I try to run "make" command, it gives "gcc: command not found" error. I tried to install "gcc" with "apt-get install gcc" but there weren't source So I ...
1
vote
0answers
33 views

What command(s) are ran when you right click on a text and click “open man page” in Terminal?

I know it obviously does man, to show the request manual page. However, I wonder what it pipes the output to, because it shows the entire thing at once, but it starts from the beginning. I would love ...
0
votes
1answer
36 views

Limit CPU when starting a task in terminal

I'm working on an application for part of a school project that simulates an operating system and which I launch using the Terminal. By nature it will consume all possible resources to loop over and ...
0
votes
1answer
60 views

Terminal: “Invalid Argument: dirname” (El Capitan)

I noticed the issue when I first went to run defaults write com.apple.finder AppleShowAllFiles YES in OS X Terminal (10.11.2) but this was returned bash: /usr/bin/defaults: Invalid argument I'm ...
1
vote
1answer
52 views

Getting full HTTP request from website

I am doing a project in which my Arduino needs to connect to a simple web page and retrieve the content of a text file. I want to use curl to see the response I would get if I sent the following HTTP ...
0
votes
2answers
40 views

Run command line tools as separate app

Is there a way to run command line tools as a separate app, so I can easily switch between them with apple+tab etc? I want this for things like a mail and irc client where I don't want to hunt down ...