1
vote
1answer
36 views

Control + L not clearing screen

When I try to clear my terminal screen on OSX: computer@ ~ () $ ^L And when I hit Enter after that it just shows: -bash: : command not found Any ideas on how this happens? My .bash_profile, ...
7
votes
3answers
375 views

How to permanently change both STDOUT and STDERR color to grey?

This question is similar to Can I configure my shell to print STDERR and STDOUT in different colors? But I am looking for a solution that will allow me to change both STDOUT and STDERR to ONE color. ...
1
vote
3answers
73 views

Remove multiline text with special chars from all files in a folder

I have multi-line text with special characters (i.e. //*(): etc) looking like following in multiple files in a folder that I'm trying to remove. Tried all different solutions using sed and awk but ...
2
votes
2answers
44 views

How to format textutil -excludedelements

I use Geektool on the Mac to display various information on my desktop. One feature of Geektoool is the ability to use shell mode to launch custom scripts or commands. I am not versed in any type of ...
2
votes
2answers
67 views

In OS X Darwin, why can I interfere with text input across user sessions using cat?

OS X Darwin: Disrupting Terminal Sessions Across User Identities How, in Brief: with cat < /dev/ttys_, in Terminal. My Question This OS X 10.9.2 Darwin behaviour seems odd to me, and I would ...
1
vote
0answers
63 views

unable to open openmpi ? Terminal / OSX 10.9.1

Hi I am trying to simulate an example of a software using terminal on OSx 10.9.1. When I execute examples the terminal said Bus error:10 and some errors abput openmpi. I downloaded Openmpi versions ...
0
votes
1answer
154 views

How do I find out the keycodes for Ctrl+up and down arrow for TERM=screen?

I am using tmux a lot, and I have already managed to tune my OS X terminal to send the correct key codes for Ctrl+left and right arrow (\033b and \033f). I found those information on the web. However, ...
2
votes
1answer
68 views

Why when I enter the command “hostname” it returns something other than my computers name?

I am using a macBook Pro I enter: new-host-2:~ Justin$ hostname And it returns: new-host-2.home Why is this when it says in setting/sharing my computers name is "Justin's macbook pro" and computers ...
1
vote
0answers
38 views

Convert command produces a small error [closed]

First off, I'm on a Mac, but I think this can be solved here. I'm converting a .gif animation to a series of .png's using. $ convert ex.gif my_png_files_%d.png I get a series of .png-figures but ...
0
votes
1answer
82 views

Cancel SSH (after using it to browse) without logging out?

I'm afraid I'm not an expert on Unix and its command line (I'm using a Mac), so do bear with me (possibly an extremely stupid or basic question). I've used the command ssh -D 8080 -f -C -q -N user@IP ...
0
votes
0answers
345 views

Octave - warning: unable to open X11 DISPLAY

My setup is as follows: Octave 3.6.4 Mac OS X Mavericks 2009 Macbook Pro I'm trying to run Octave in Terminal, with gnuplot. I'm trying to plot matrices in a graph, as part of an online Coursera ...
3
votes
1answer
79 views

Spawn a new terminal window from the terminal

Is there any terminal command I can execute that will pop open a new terminal window? I need something that will work in OSX' Terminal.app, but it would be nice if there were a way to do this that ...
0
votes
2answers
636 views

Rename file in Mac OS Terminal using Regex

Hundreds of images need to be renamed with a terminal command using regex on MacOS 10.9 Mavericks. The files are named this way: 0045AW489R3T(IPCAM)_0_20131124101245_931.jpg ...
1
vote
1answer
52 views

Make terminal print name of parent process OSX [closed]

Slightly above n00b, but not by much. I made an alias to search for and display all of the processes associated with a specific user account that seem to auto initiate every time I log in, which are ...
0
votes
1answer
34 views

Unexpected output after switch to root

Does somebody know, why I get -ne (probably param from echo from section of setting PROMPT_COMMAND line 23) after I switch to root? Here is my /etc/bashrc. Bash 3.2.51, OS X 10.9 ...
0
votes
0answers
131 views

gdb debugging in Terminal OS X (10.8.5) with zsh - zsh doesn't know gdb

For my studies I have to run a binary unix-program called bomb with gdb. Some time ago I followed the steps on ...
0
votes
4answers
178 views

How do I store long hostnames list for SSH quick usage?

I have an SSH access to a lot of servers. And all that hostnames (and sometimes usernames) are long and hard to remember. Also even if I tweak my Terminal to keep eternal bash history, the using of ...
3
votes
2answers
297 views

Ruby update not working using two methods

I tried to install ruby version 1.9.3 with this on my mac 10.6.8: $ \curl -L https://get.rvm.io | bash -s stable --ruby Oskar-Niburskis-MacBook-Pro:~ oskarniburski$ rvm install ruby-1.9.3-p362 ...
0
votes
0answers
133 views

Mac OS X: Terminal Prompt Username

I'm using Mac OS Snow Leopard (v10.6.8). I've changed the account name under System Preferences > System > Accounts > Full Name. However, that does not change the username on the terminal ...
3
votes
4answers
198 views

Show video files with its size

I need all the .mp4 files' dimensions to be printed with the file name. For example: 1_VIDEO.mp4 1204x680
1
vote
1answer
242 views

Non-ASCII characters handled incorrectly on command line

I have a problem with non-ASCII characters in the Terminal on Mac. If I write: echo ÆØÅ Then press Enter, Arrow Up, Arrow Left, so the cursor is between the Ø and the Å, then write X, then the Å is ...
2
votes
2answers
3k views

How to install tar file (jhead) on Mac or Linux machine

I'm new to Linux and tar balls and was wondering how to properly install them on a Mac or Linux machine. I would prefer to know how to install on a mac but I just need some help understanding them. I ...
0
votes
1answer
239 views

How to map terminal shortcut from CTRL-M to another combination

I read in another post that you can type CtrlJ or CtrlM instead of the Return key in the terminal, which is great. But what I want to be able to do, is change that to another combination, for example: ...
0
votes
1answer
2k views

Cannot execute binary file on Mac OS X Lion 10.7.5

I want to execute phylocon on a mac OS X lion but after changing the path and making the file executable, I get the error 'cannot execute binary file'. But the steps that I took to running the command ...
3
votes
1answer
348 views

Tmux status bar question

I'm fairly new to tmux and to truly master and learn it, I decided to make myself a fresh .tmux.conf I was wondering, though, if it's possible to hide a path in the status bar. For example, I have ...
2
votes
0answers
47 views

How do I detect a copy event in Finder?

I am trying to strip formatting from text copied from my Illustrator docs. Someone accurately pointed out to me that running pbpaste | pbcopy via command-line will perform this action on text in the ...
1
vote
0answers
71 views

How to prevent ELinks from staying in scrollback buffer?

After quitting elinks, the browser page history is lingering in my scrollback buffer, and therefore not returning to whatever was buffered on screen when I launched elinks. Inside a GNU screen with ...
5
votes
2answers
331 views

Zsh: Automatically modify executed command

I've recently installed grc (generic colorizer) to my system via MacPorts, giving me the ability to get colorized output for plenty of commands which by default don't support it (see screenshot ...
1
vote
2answers
2k views

Why the differences in color between SSH terminal sessions in OSX?

I'm trying to get the colors in an SSH terminal session with a CentOS machine to look the same as it does when I'm SSH'd into my Ubuntu server. If I run echo $TERM in both I get xterm-color as ...
1
vote
1answer
822 views

What does @ sign mean in 'ls' output on Mac OSX Lion terminal? [duplicate]

Possible Duplicate: what does the @ mean in ls -l? What does the @ sign mean in the following "ls" output? -rw-r--r--@ 1 root wheel 489 Jan 4 13:14 boot.plist
2
votes
2answers
1k views

sv_SE.UTF-8 Problems with Bash and VIM in iTerm2

Two specific issues, despite me running iconv -f iso-8859-15 on my old files when converting from sv_SE.iso8859-15 to sv_SE.utf-8 I still get distorted characters. And I believe it's because of Vim ...
1
vote
1answer
410 views

How to resume multiple instances of Screen from command line with minimal steps?

I have about 15 instances of screen running on my linux server. They are each running processes I need to monitor. I had to close terminal (hence the reason I launched screen). Is there a way to ...
0
votes
2answers
771 views

Why curl -O -C on mac fails to download

The following script works on Ubuntu, but not on Mac. Why? How to edit it so that it would work there too? #!/bin/sh v=1.1 test_file="Test10.java" jar_file="dp4j-$v-jar-with-dependencies.jar" curl ...
4
votes
1answer
189 views

terminal - having “$” instead of MyComputer:~ me$

Right now in my MacOS X terminal I have MyComputer:~ me$ before all the commands. In some videos I saw they have just $ - that's much less clutter, how is it done?