0
votes
0answers
14 views

Trying to change Default Terminal Home/Path, getting 'eDSAttributeNotFound' error

Found this nice tutorial here on how to change your default path in terminal via stackoverflow. Steps followed: become root with sudo su -. Now fire up dscl by typing dscl localhost. Inside dscl, ...
0
votes
2answers
24 views

cat clipboard text into a terminal?

I have text in the clipboard. I want to cat it in a terminal a pipe it into another command. The exact use case is a PEM encoded X509 certificate on a website presented as text (-----BEGIN ...
0
votes
1answer
15 views

diff of two folders excuding file types with OS X command line

I found diff -rq folder1 folder2 however, being an OS X user you get the lovely hidden files like .DS_Store just clouding up the results in the terminal. So, I really don't care about those files. ...
0
votes
1answer
4 views

Create iTerm2 startup configuration

iTerm allows one to save a window arrangement, I'd like to know if (and then how) I can extend this facility to do the following: Save the name of each tab so that each tab in the restored window ...
0
votes
1answer
30 views

Mac Terminal: Loop through subdirectories and optimise all images

I have a folder containing many subfolders full of images. See attached image for example. Basically I want to loop through them all and downsize the images so none are wider than 1024 pixels. ...
0
votes
1answer
12 views

iTerm2 2.0 Unable to resize the main window

Ever since I updated to the latest version, my iTerm window is not taking full screen. Even more weird the Maximize/ minimize buttons are missing. This 50% window arrangement is really irritating. ...
0
votes
1answer
50 views

Mac OSX finder requiring permissions when deleting file, even after chmod

I created a Python script that requires sudo permissions to run (doing ICMP requests). This script creates a small directory and a couple .csv files, as well as a log.txt file. At first, after running ...
0
votes
0answers
7 views

Terminal logs in Server (OS X Server)

I installed OS X Server, then uninstalled it. Now, Terminal logs me in as server:~ John$ Even though my computer's name in Sharing Preferences is called "John's MacBook Pro" It's no big deal, it ...
1
vote
1answer
29 views

Delayed SSH Connection, Authentication, and Commands

My home computer, a Mac running OS X 10.8.5, normally accepts SSH connections over the Internet (I have port forwarded) but is asleep right now. It sometimes may wake up for various reasons while I am ...
0
votes
1answer
49 views

'localhost' stoped working as an alias for '127.0.0.1' for SSHing into my VirtualBox VM from OSX. Why, and how to fix?

The question explains the problem. For months I've never had any problems along these lines. Then, yesterday morning, I couldn't get into my VM! Took a long time to troubleshoot but here was the ...
0
votes
0answers
31 views

-bash: java: command not found MacOS 10.7.5

I recently "uninstalled" Java 7 because it isn't compatible with Chrome, following the instructions on this site: https://www.java.com/en/download/help/mac_uninstall_java.xml. Then I re-enabled Java ...
1
vote
1answer
66 views

Line-wrapping `less` in OS X (specifically for use with 'git diff')

Using less +-S does not work (although it does ask Chop long lines (press RETURN)), and entering -S once inside less also does not work. Is there a solution? I am usig OS X Mavericks (10.9.3). ...
0
votes
1answer
20 views

Switch from ZSH to default OS X

http://stackoverflow.com/questions/13476232/make-iterm2-launch-with-zsh I used chsh -s /bin/zsh as described above to set zsh as default. I'd like to switch back to default standard terminal that ...
0
votes
0answers
11 views

OS X Terminal Tab Name Current Directory Causes Duplicate Name in Title Bar

In OS X (10.9.3) I'm setting PROMPT_COMMAND to set the terminal tab name to the current directory such as function set_tab_title { printf "\e]0;${PWD##*/}\a" } PROMPT_COMMAND="set_tab_title; ...
0
votes
2answers
32 views

Mac addresses of devices on network

I'm on OSX Mavericks. I'm connected via wifi to my network. How can I find the mac addresses of all other devices on the network?
0
votes
1answer
24 views

Why do some Process ID's in top have a - next to them?

When you enter top in the terminal, I noticed that some PID's have a - like com.apple.qtkits. Why is that, since I can't find anything about it in the documentation.
0
votes
0answers
37 views

OSX terminal command not found

I'm following a guide to setup airport in monitoring mode to do my networking exercise. I've made a shortcut to airport using this command: sudo ln -s ...
0
votes
0answers
19 views

How to permanently make the Output of python codes to appear in a different color in the terminal?

I found it really annoying when I use terminal that everything is in one color. I am looking for a way to print the output of my python code in a different color on the terminal console, so it will ...
1
vote
0answers
10 views

OS X / Finder - Right Click “New Folder with Selection” - how to Increase the Animation Effect Speed?

I'm using Finder on OS X 10.9x. The effect that pulls all the selected items into a new folder from the right click "new folder with selection" is really nice, but way too slow for me. Anyone know a ...
0
votes
2answers
27 views

Changing vim/terminal open location

Before I dove into learning ruby my .vimrc file had this at the very end cd data It was perfect because the home directory is shared with my mac. I tried changing my home directory in OSX. This was ...
2
votes
2answers
54 views

sed error when launching terminal on OS X

I get these error messages when launching bash or zsh in standard Terminal.app or iTerm2 sed: 1: "\#^system_type=# { s#^s ...": extra characters at the end of p command sed: 1: "\#^system_type=# { ...
1
vote
1answer
22 views

How to get tree -a to ignore .git directories?

I love using tree to list directories, and I have a git repository with all my dotfiles. For me to be able to see them I need to do tree -a, but that will also list the contents inside the .git ...
0
votes
0answers
19 views

Stop receiving email in terminal

I'm a new MacOS user and already have a tiny problem when sending email... I'm trying to send some emails using MAMP and PHP on localhost, but emails only appear in my terminal instead of my email ...
0
votes
3answers
167 views

How to set colors in OS X (Mavericks) terminal?

I want to set the color's palette of my terminal in order to use properly the Solarized colorscheme for Vim (http://ethanschoonover.com/solarized). I understand that i've to modify my .bash_profile ...
2
votes
2answers
56 views

How do I use caffeinate to prevent my computer from sleeping while a script runs?

This morning I started a very long running script with: caffeinate python spam.py and when I checked in on the computer several hours later, the computer was asleep! I moved the mouse and the ...
0
votes
0answers
13 views

How to prevent MacVim from inherenting .profile as if it was Bash itself?

I have this guard in my .profile: if [ -n "$BASH_VERSION" ]; then if [ -f "$HOME/.bashrc" ]; then . "$HOME/.bashrc" fi if [ -f "$HOME/.bash_aliases" ]; then . ...
1
vote
2answers
20 views

Can't run the Python interpreter in Mac's Terminal

At the moment i'm on Mavericks, and i just uninstalled homebrew. With homebrew i had installed python, but after uninstalling it my terminal can't start the python interpreter. I receive this message: ...
0
votes
0answers
17 views

Segmentation Failure 11 in Single-User Mode

I booted up my Mac in Single User Mode (by holding down Command-S while it boots) so then I have access to a terminal that is logged in as root. But when I run passwd to try to change root's password, ...
0
votes
1answer
82 views

Tilde (~) in Mac OSX terminal pathway

I am new to the Mac OSX environment, and was programming in C using the terminal. To change the current directory, I used the command cd .. to go one level up. However, this had a weird effect on the ...
1
vote
2answers
39 views

Security risks using SUDO in TERMINAL on MAC

I'm very new to using Terminal and anything like that and stupidly followed an article that uses Terminal with the SUDO command. The sudo command basically loaded a file which updated my ...
0
votes
1answer
38 views

Directories will list, but are not recognize by cd

New to terminal and having problems out of the gate. Using Terminal 2.1.2 on a Mac running 10.6.8. Using the "ls Documents" will list the contents, but when I try to change directories, which I tried ...
0
votes
2answers
63 views

Unable to create a permanent alias in Mac OS

In Linux I can well to add alias to bashrc and it will become a permanent alias. In Mac OS I tried to do the same thing: vim ~/.bashrc export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH f or ...
0
votes
1answer
21 views

Mac OS X set terminal name that persists after SSHing somewhere else

I try advice like this that recommends adding the following to your .profile: function tabname { printf "\e]1;$1\a" } So you can type tabname brokenbox to name your tab. The problem is as soon ...
1
vote
3answers
49 views

How do I properly install and organize terminal software on OS X?

I've been learning vim and messing around with installing certain terminal extensions like zsh and tmux. So far I've been installing everything according to their online instructions, and this has ...
0
votes
0answers
56 views

When opening Terminal: “NO LOGINS: System going down at 01:10”

I'm trying to get a terminal open, and I get this message: NO LOGINS: System going down at 01:10 Login incorrect login: *myname* Login incorrect login: It doesn't prompt for my password. This ...
0
votes
1answer
52 views

How do I display directories in colour on remote systems over ssh via Terminal?

When I do ls in Terminal.app, I see that directories on my local system are in colour. However, when I connect to a remote cluster via ssh, ls output is no longer coloured. Is there a way to have ls ...
0
votes
1answer
56 views

Issue with RVM conflicting with Brew?

Please bare with me as I am not an expert on bash. In fact I'm fairly new to OSX < 1 year. I ultimately would like your help to get my system configured optimally, thus removing unnecessary tools. ...
0
votes
1answer
20 views

Why does iterm2 toggle font rendering with every other boot

I don't reboot my mac very often, so I can't really state if this occurs with every reboot/relogin, but I dare to say, pretty much every time the font rendering of my iterm2 becomes thicker or thinner ...
0
votes
1answer
31 views

Cancelling shutdown -h command on Mac

I usually use the command sudo shutdown -h +60 from the Terminal on my Mac. Although I'd like sometime to cancel the scheduled shutdown or postpone it. Is there a command to do so? If yes, how?
1
vote
0answers
24 views

OSX localhost mail in mail.app?

Every time I start a Terminal I see that I have unread mail. I know that I can access them via the mail command but I'm not comfortable in using that command. Is there any way to read the local mail ...
0
votes
0answers
132 views

Local echo using Screen to connect to a serial terminal

Reading through the book "Building Wireless Sensor Networks" I learned that you can use the Screen utility to attach to a serial console. I tried using it to connect to an XBee module and it seemed ...
0
votes
2answers
98 views

How to inactivate network service by terminal on mac os x?

I google but found nothing helpful. the above link was useful when I wanted to create service of any other configuration commands on terminal but I found nothing about how to inactive a service by ...
1
vote
1answer
42 views

Terminal command to include currently logged on user

I am trying to write a script that makes our network (active directory) users local administrator on their macs. I have the script that will do this: dseditgroup -o edit -n /Local/Default -a ...
0
votes
1answer
59 views

Format Pendrive using NTFS file system in Terminal(mac)

How to format pendrive using diskutil command by terminal? or Is any other way to format pendrive? sudo reformat device After get into correct volume, then try above command, but didn't work, ...
1
vote
1answer
98 views

Mac OS 10.5.8 Terminal won't start: “Process completed” instead of command line

I'm on a MacBook Pro with Mac OS 10.5.8. A few days ago I installed two versions of Python on my Mac (2.7.6 and 3.4.0; I first installed the latter but it didn't seem to work, so I installed the ...
0
votes
1answer
26 views

root command not found

I'm trying to setup a blog using octopress by following this guide. I'm stuck at the step where I do root: /octopress and my terminal shows bash: root:: command not found
2
votes
2answers
60 views

My cursor is at the beginning of my bash prompt. Any ideas why?

I'm using a slightly modified version of Gary Bernhardt's (destroyallsoftware.com) .bashrc with homebrew bash 3.2.51. # . ~/bin/bash_colors.sh . ~/bin/colorize.sh [... snipped ...] # ...
0
votes
0answers
8 views

C-f stopped working in Terminal osx

I can use C-f to go forward in some text in all other apps except for the Terminal. I've tried using it in iTerm and it doesn't work there either. It used to work, but I have no idea what I did to ...
0
votes
2answers
31 views

Why do I not have access to defined aliases on the server while connected via ssh?

Why do I not have access to defined aliases on the server while connected via ssh? How can I force the terminal to use their defined aliases?
0
votes
2answers
113 views

home/end in INSERT mode in vi on a Mac

On a Mac I can go to the start and end of an line in vi, when not in INSERT mode: ^ (start of line) $ (end of line) This is for example explained here: I just got a Mac! How do I do "end" ...