terminal

How do i change the color of the font for the current directory in M-x term?

Normally when i need to change the color of a certain element in emacs, i would do a M-x describe-face which will eventually bring up a customize buffer to change it. In the emacs term, It seems like i dont have the ability to enter the minibuffer to input that command. How do I figure out which variable to change? Heres a picture, to m...

terminal sudo command

Hello, I'm a complte novice at this (terminal in Mac leopard) and hoping to get an lifeline from the web as i've certainly hit a wall. I want to run a script as a root in terminal. The script is saved as a text file with and .rtf extension. I've inserted into terminal: sudo filename.rtf then i get asked a password which i've typed in (...

Getting started with cronjobs on a Mac.

I'm trying to get familiar with cron jobs, and I think I get the basic idea (scheduling, syntax, etc), But, I can't seem to get it right on my mac with Terminal - where exactly do I find the Crontab? How should I reference the paths to scripts? What I'm trying to do is hit a php script on a remote machine (http://...) - Is that possible...

How to exit a git status list in terminal?

Im new to Git and Terminal. This is pretty basic stuff, but how can i exit a listing mode generated by the git status command? ...

How can you take ownership of a hid device?

What I would like to take ownership of a hid device that may already have been plugged in, consume it's output, while preventing others(X11 or terminal) from consuming it. If I can help it, I don't want to pretend to be a terminal, but rather to monopolize a particular hid or character device. The idea is that some hid devices may be re...

gnome-terminal, virtualenv and a bunch of services

Hi folks I'm working on a server-side project that consists of several services. Each service is run in interactive (i.e. non-daemon) mode, this is handy while active development. The project is in virtualenv. So the typical way to start a service is: $ cd ~/to/vitualenv/subdir/where/service/code/located $ source ../path/to/virtualenv/...

Book recommendation for Unix shell commands

Hi, I want to learn more about UNIX shell commands, so I am searching a good book, that explains the most needed shell commands and how to get better on the terminal in general. I am using Ubuntu(Debian). The book should not have more than ~250 pages. I am neither a noob nor a pro using the terminal. Best regards ...

copying a list of files via terminal

I have a list of filenames called list.txt. I would like to copy the files in this list to a new folder. How should I go about doing this? Thanks! ...

Text disappears when typing long commands in zsh on OSX?

When I'm typing a command longer than around 20 characters the text disappears and the cursor moves to a different location in the terminal. How do I stop this? I find it difficult to understand what I'm doing when this happens. ...

Scrolling inside Vim in Mac's Terminal

I've been googling around trying to figure out if it's possible to use my mouse wheel to scroll while inside Vim in Mac's Terminal, with no luck. It seems as if only X11 or iTerm support this. Before I give up, I thought I'd try the geniuses here to see if anyone knows a way to do this. So, does anyone know if I can set that up? Or sho...

How to set the terminal's size?

How do I get the terminal size in Go. In C it would look like this: struct ttysize ts; ioctl(0, TIOCGWINSZ, &ts); But how to i access TIOCGWINSZ in Go ...

Do you use VIM/Emacs/Terminals to develop C/C++? What kind of projects is this practical for?

For those who are using vim/emacs/terminals,etc (ie, not an IDE proper) what sort of projects are you working on? Are they big? Production? Are these the tools you use at work? Or mostly for smaller things...or big things broken into small things? Sorry...enough questions. I ask because I'm studying computer science right now, and am su...

How do I capture bash output to the Mac OS X clipboard?

Is it possible to capture bash output to the OS X clipboard? ...

VSTO Excel add-in not loading on terminal server

My configuration is windows server 2003 (i'm logged in with admin privileges), office 2003, vtso runtime 2005 se. After installing my addin, all registry keys are in the correct locations and I have given fulltrust to my assembly using caspol.exe. My addin is a application level addin. When I run excel with regmon and filemon running I...

i want to continously run my java threads

I am running my java application where i have used threads... i am running this application using ant command on the terminal.. But when i close my terminal or press ctrl+c,then java program which was running stops... Please help me out to solve this as i want to run this program continously... ...

Can STDOUT and STDERR use different colors under XTerm / Konsole?

Is it even achievable? We need STDERR (ie. other streams then STDOUT) to have different colo(u)r. For example red. We use bash, terminal should be Konsole (XTerm, gnome terminal or any usable). Thanks if you know :-) ...

Viewing File in Binary in Terminal

First things first, I'm on a Mac ssh'ing into a Linux machine via Terminal. I would like to view the contents of a file in the current directory, but in binary. Is there a binary mode for any text editors like VI or Nano or the like? ...

Show colored compilation errors in C++ on Terminal

Hi all, Is there any way to show compilation errors in colors on the terminal? I mean when we do "g++ filename.cpp", is there a way to show the compiler messages in colors? By default it is always in Black color. But if we have a lot of error messages, then it helps to have them in different colors (just like the code is highlighted in ...

LINES and COLUMNS environmental variables lost in a script

Consider the following: me@mine:~$ cat a.sh #!/bin/bash echo "Lines: " $LINES echo "Columns: " $COLUMNS me@mine:~$ ./a.sh Lines: Columns: me@mine:~$ echo "Lines: " $LINES Lines: 52 me@mine:~$ echo "Columns: " $COLUMNS Columns: 157 me@mine:~$ The variables $LINES and $COLUMNS are shell variables, not environmental variables, and ...

How do I retrieve the terminal width in Perl?

I want to output a progress bar, but how do I retrieve the terminal width in Perl? A core Perl solution would be preferred, since I don't have access to a compiler, just an already installed 5.8.2 Perl. ...