A terminal is a hardware device used for entering data into and displaying information from a computer. Terminals were frequently used in the days of mainframe computers. Today, most operating systems offer text-based "terminal emulators", which replicate the functionality of a classical terminal, ...
0
votes
1answer
328 views
Replace remote file using terminal (im already connected)
I am connected to a remote mac via terminal (did ssh machinename). I am looking at a file that I want to replace with a file from my local machine. Something like:
$ ls
foo/ grok/ target.txt
...
0
votes
4answers
3k views
Is it possible to list files starting with X or containing X?
As the title asks, is it possible to list files starting with X or containing X?
ls is used to list files. Are their any options I can use so I can list the files beginning with or containing a ...
0
votes
3answers
1k views
Are there any terminal emulators written in Java?
I'm looking for a terminal emulator that does the same thing as gnome-terminal or konsole, except written in Java.
2
votes
3answers
1k views
diskutil command not found in OS X terminal
I am using Mac OS X 10.6.4 and am struggling with the command:
diskutil
Whenever I type in diskutil the terminal says:
-bash: diskutil: command not found
Does anyone know what the problem might ...
1
vote
1answer
1k views
ssh access to my DD-WRT router TP LINK WR1043ND
i would like to copy to the tmp file on my router and do not know how to SSH it to access it. i am connected to it via lan and am running OSX snow leapoard 10.5.6. pls help
1
vote
2answers
81 views
path for googlecl
I recently installed googlecl (to access google calendar from the command line) on Mac OS X 10.5.8, and it was working fine when I installed it.
After that I installed other programs (don't remember ...
3
votes
5answers
19k views
linux terminal undo rm 'somefile' [duplicate]
Possible Duplicate:
undo Linux's rm?
is it possible to undo a rm somefile command in linux?
and if so, how does one do that?
3
votes
1answer
763 views
Looking for a Mac OS X terminal program that allows line wrapping to be disabled
Are there any replacements for Terminal.app that allow the line wrapping to be turned off? By turned off I mean in such a way as to cause a horizontal scroll bar to appear?
I've seen proposed ...
2
votes
2answers
654 views
How to get backward and forward word keyboard shortcuts working in a Mac OSX Terminal
I miss being able to use Alt-B and Alt-F for backward and forward word in a Mac Terminal window (and any editor really).
Is there a way to enable them; currently they print the symbols ∫ƒ instead, ...
0
votes
1answer
107 views
How to map # to ~ in gnome-terminal?
The ~ key of my laptop is broken, now I am seeking a method to map the # to it? How could I do it?
2
votes
2answers
385 views
Get Terminal tab current directory when process is running
Is it possible to get tabs current directory when process is running in that tab without stopping that process? My intention is to create tab next to current with same directory. I sure can press ⌃Z, ...
4
votes
5answers
485 views
What is the difference between “Shell” and “Terminal”?
I am fairly new to Ubuntu and I am loving it!
But I don't quite understand the difference between the shell and the terminal. Can any one explain? Someone told me that a terminal is just a "tool" to ...
2
votes
3answers
2k views
Mac terminal settings
I'm on a mac and I use terminal (Amazing)
I was wondering if anyone knows how I can change the default setting of a new terminal to remain the same for all subsequent terminals?
For example - I have ...
1
vote
1answer
173 views
Reversed Terminal / Command line window
It occurred to me recently that it would occasionally be much better to type terminal/command line commands at the top of a window, with the last run commands below. The reverse of the usual display.
...
0
votes
2answers
464 views
Strange characters in OSX Terminal
I am using Terminal in OSX to Git files to and from remote repositories.
Suddenly I notice that some Git commands and status responses are returned and contain strange characters in them, such as the ...
1
vote
1answer
181 views
Application to Display Quotes - Like Unix Fortune
I was wondering if anyone out there knows of any applications for Windows that are conceptually similar to the 'fortune' command in Unix systems for Windows.
It would be nice if it allowed for ...
1
vote
3answers
254 views
Application like Gnome Hamster (a to-do task application with time tracking) but only using the terminal
I would like to have a time tracking application for tasks but using only the command line. Do anybody knows any?
5
votes
1answer
3k views
How to login as a different user in terminal?
I'm currently logged in as a normal user in OS X.
I'd like to start a terminal session and login as user foo.
Is this possible?
2
votes
1answer
2k views
What is the simplest way to test a plain socket server
I have a server which listens on a socket for incoming connections and outputs a welcome text ("Hello world"). What is the simplest way to test this with plain tools from the operating system (here OS ...
0
votes
1answer
1k views
How do I enable Terminal's color highlighting in OS X for root?
I've added the following lines to my .bash_profile at /Users/[my username] :
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad
And it works fine. However, when I did the same for root's ...
1
vote
1answer
768 views
set variables terminal os x
really stumped with this.
i want to set a few variables for a script (paths)
according to everything i've found this should work but it doesn't;
SRC=/Volumes/MP_JUBBLER/testing/src/
...
2
votes
3answers
881 views
Have a list of files, move them using one command
I have run a command which finds a lot of files based on some search criteria. It returns the files like so:
./somepath/somepath/file.something
./asdf/asdf/s.php
./etc/a.php
./a/b/c/d/e/f/g.jpg
So ...
0
votes
2answers
1k views
scp all files ending '-123.jpg' - recursion, spaces, wildcards …
There's too much going on for me to get my noobie head around here. I'm wanting to download all files that end -123.jpg from a multitude of nested directories on a remote server. Some of these ...
0
votes
2answers
1k views
Open new terminal from script to get user input and use input in script
Is it possible from a background shell script to open a new terminal (xterm, gnome-terminal, whatever), get some user input, close the newly opened terminal and use the data that was input?
0
votes
1answer
86 views
can I set the name of a terminal to be the pwd in mac osx? [duplicate]
Possible Duplicate:
Set the title of the terminal window to the current directory
I have many open Terminal shell windows open in Mac OSX.. Just right click on the icon for terminal and ...
1
vote
2answers
993 views
Terminal that supports ANSI italic escape code?
I would like to replace gvim with vim in the terminal. One of the nice things about gvim is that it is able to display text using italics.
Vim allows setting an ANSI escape code for italics (\e[3m), ...
2
votes
4answers
2k views
How do I reset my ~/profile from the Terminal in Mac OS X 10.5?
Greetings,
I recently installed tomcat on my OS X 10.5 box and while I was playing around with the ~/profile I accidentally put in a bad alias and saved it. Long story short every time I open up the ...
6
votes
1answer
1k views
Make OS X Terminal commands I type BOLD
I'd like to make commands I've typed (input) into terminal stand out from all the output.
For example:
imac:~ buster$ chmod -R g-w myfolder
imac:~ buster$ cd myfolder
imac:myfolder buster$ ls -l
...
0
votes
2answers
2k views
How do I change the display name in terminal (os x 10.6)
I have used this script to install imageMagick:
Google: maddox magik-installer - its the first hit
My terminal name is a string of cryptic letters and numbers. See image here:
Keep in mind my ...
2
votes
1answer
523 views
How to delete trash items using terminal?
I have some important and some unimportant items in trash.
I need to delete the unimportant files from trash, but when I empty the trash, my important files are also deleted.
How to delete trash ...
3
votes
2answers
1k views
How to copy previous output from bash terminal to file
I know how to redirect the output of a terminal to a file. For example, if I want to list all the files in ~/Documents and output to a file called test.txt, I would do this:
ls ~/Documents > ...
0
votes
1answer
144 views
Ubuntu 10.4 lts netbookedition
I hope somebody here will be able to help me. I have put a checkmark in the user settings not to ask for a password at login and now I'm stuck my netbook does not ask for a password but i'm also ...
1
vote
3answers
609 views
Terminal not running shell bash
My terminal somehow turned into some kind of a text editor; I open it up and the window title says "Terminal - Login - 130x33" with no prompt, just a black window with a cursor like any text editor. ...
0
votes
2answers
441 views
Running processes through SSH? [duplicate]
Possible Duplicate:
How do I keep jobs running after logout?
I'm on a Mac and I SSH into my Ubuntu box and run node.js (or any other application), but when I close out of the terminal on my ...
7
votes
4answers
870 views
Is there a way to have Linux run a command every X minutes?
I'm using RSync with my buddy just for testing and general geekery, we want to somehow schedule the sync task to run every X time.
Using the terminal, we run the command and it works.
What can we ...
3
votes
1answer
467 views
Can I make ssh-agent wait until I use ssh to prompt for a password?
I have ssh-agent set up to automatically start and prompt when I open a terminal window, as is explained here. It gets somewhat annoying though since many times when I open a shell I don't plan on ...
1
vote
1answer
204 views
ACPI vs Gnome-Power-Manager
I ran acpi on the terminal and it said 20 mins before the battery is fully charged. But gnome-poower-manager applet says 40mins. Which one is a better estimate?
1
vote
2answers
382 views
How to highlight current folder in Bash prompt?
I'd like to use the \w variable in .bashrc, but I want the prompt to highlight the current end-directory. Something like this:
/usr/local/<strong>bin</strong>
How can I do that?
3
votes
2answers
916 views
How to disable flashing terminal in Mac OS
when i enter terminals commands etc and hit TAB (file name completion) the whole terminal window flashes rapidly (if there is no unique filename for example). This is not good since for some people ...
4
votes
4answers
793 views
Mac crontab is never created
I am trying to setup a cron on my mac, but it seems that it never finishes creating a crontab for my user. I open terminal and enter:
$ crontab -e
Which returns this:
crontab: no crontab for ...
3
votes
1answer
855 views
GNU Screen and Mac Terminal interaction woes
Setup: OSX 10.6 Terminal.app with multiple tabs, one of which ssh's into a machine that has a running GNU Screen instance. That screen instance has (among other things) and irssi session, bash ...
4
votes
4answers
2k views
Launching tmux using gnome-terminal
I'm a little confuse regarding how one launches tmux. When I launch my terminal (current gnome-terminal), I would like to have tmux up and running.
I'm currently doing this by calling "tmux" in my ...
1
vote
3answers
243 views
mac terminal root indicator
How do I make command prompt to end with # if I do sudo -s in mac terminal?
Right now I have $.
2
votes
2answers
440 views
Terminal emulator with custom scripts and hotkey support for linux
I need a terminal application for linux with support for custom scripts and support to bind this scripts for hotkeys.
For example I login into computers hundreds times a day. I don't want to write ...
2
votes
2answers
798 views
How to undo alias, PATH=$PATH:./Test - (Unix)
1.)
In a terminal when we make an alias for any command line,the life of that alias is as long as the terminal is open.
alias new_command=old_command
example: alias dog=cat
But can we explicitly ...
1
vote
3answers
212 views
Read everything that has been echo'd and 'errored' to terminal window?
I've inherited a complex shell script running on OSX that gets run on a crontab.
Within the script I would like to periodically read everything in the terminal window and write it to another file... ...
2
votes
2answers
2k views
How do I close a file that I created using cat > command?
I learning how to use git on a Mac and I'm trying to add a file in one of my branches by using the "cat > " command. The problem I'm having is that I want to end editing the file in the terminal but I ...
0
votes
2answers
2k views
“Error opening terminal: unknown.” in Guake since updating to Ubuntu 10.10
After updating to Ubuntu 10.10, I get an error in Guake.
"Error opening terminal: unknown."
It happens when I try open nano, pico and some other programs. They work normally in the normal terminal.
...
0
votes
2answers
229 views
unable to edit bash prompt
I'm on Mac OSX and trying to test out some new prompt settings in terminal. Here's my setup
$ echo $PS1
$ \h:\W \u\$
This prompt works fine. But if I type
$ export $PS1="test"
I get the ...
6
votes
3answers
2k views
Reset garbled Terminal window on OS X
I was connected to a linux server over SSH. After performing the following command
cat dmesg.1.gz
the prompt on my SSH session changed from conor@linux:~$ to ␌⎺┼⎺⎼@┌␋┼┤│:·/┌⎺±⎽$
Any text I typed ...