03-14-2009
echo $TERM may help.
you could always change your habits and use CTRL-a to go to the beginning of the line and CTRL-e to go to the end.
other standard readline keybindings you may not be aware of:
ALT-f go forward one word
ALT-b go backwards one word
CTRL-w delete previous word
These are, I believe, emacs keybindings. If you are more used to vi then issue set -o vi at the command prompt, then you can use vi like keybindings.
Getting into those habits is better, in my opinion, especially when dealing with lots of different OS's as you never need to worry about putty's default configuration, as The control and alt keys are nearly always bound correctly. (I say nearly always just to cover myself, personally I have never come across a system where they haven't been, but I'm sure it's out there somewhere :~)
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi all!
Well, you might have guessed it, I am looking for a way to control the return key under Solaris 8 and using telnet connections.
I notice a difference between Solaris and System V but I don't know exactly where to look for changes. The stty params are slightly different but as far as I... (2 Replies)
Discussion started by: nulnul7
2 Replies
2. Solaris
All,
After a power loss I went to power on our sun fire v120 that is running solaris 10 and now it will not boot. I tried power cycling it from the lom and pulling the cord but nothing works. All it does is after a power cycle it will start to boot and then start to spit out a bunch of hex... (2 Replies)
Discussion started by: jsandova
2 Replies
3. Shell Programming and Scripting
I met a problem in using grep -P.
There is a text file, temp.txt, whose content is:
dddd
abc
I ran the command:
grep -P "\s*abc" temp.txt
The result I expected is:
abc
But, the actual result is:
dddd
abc
Could anyone tell me what is wrong?
Thanks. (2 Replies)
Discussion started by: pankai
2 Replies
4. OS X (Apple)
I use rsync to keep a directory in synchronization betwen a Linux box with the hostname brutal and a Mac running OS X 10.5 (Leopard) with the hostname cooper. When I run the following command on my Linux machine:
rsync -avz --delete myuserid@cooper:/Library/WebServer/Documents... (2 Replies)
Discussion started by: scotbuff
2 Replies
5. UNIX for Dummies Questions & Answers
ok, there's a script i'm working on written in shell programming. #!/bin/sh
this script is written to spit out the contents of certain variables inside of it so the output looks something like this:
server01=89 server02=69 server03=89 server04=76
now, when i run this script from the... (4 Replies)
Discussion started by: SkySmart
4 Replies
6. Shell Programming and Scripting
Hi Experts
I am facing a weird issue while using print statement in awk. I have a text file with 3 fields shown below:
# cat f1
234,abc,1000
235,efg,2000
236,jih,3000
#
When I print the third column alone, I dont face any issue as shown below:
# awk '{print $3 }' FS=, f1
1000
2000... (5 Replies)
Discussion started by: guruprasadpr
5 Replies
7. UNIX for Dummies Questions & Answers
Hi I am getting absurd behavior of escape character in echos as followed:oinlcso003{arsadm} #: echo "\as shdd"
\as shdd
oinlcso003{arsadm} #: echo "Well, isn't that \"special\"?"
Well, isn't that "special"?
oinlcso003{arsadm} #: echo "Well, isn't that \special\?"
Well, isn't that \special\?... (3 Replies)
Discussion started by: nixhead
3 Replies
8. UNIX and Linux Applications
Why could whatprovides not lookup this info for over 10 minutes, but install could install that package in less than a minute?
$ yum whatprovides */lsb_release
Loaded plugins: langpacks, presto, refresh-packagekit, versionlock
^Cupdates/group 18% 3.1 kB/s | 360 kB 08:28 ETA ... (0 Replies)
Discussion started by: cokedude
0 Replies
9. UNIX for Advanced & Expert Users
Can someone please explain what's wrong with the command i use below?
tr -c '\11\12\40-\176' ' '< $TEMP_FILE > $TEMP_FILE2
The invalid character/s is replaced with two spaces, the string2 only have 1 space in it. Please help.
Sample output:
333243,333244c333243,333244
< ... (1 Reply)
Discussion started by: Jin_
1 Replies
10. UNIX for Dummies Questions & Answers
Hi there,
I am a bit puzzled by a weird behavior of Vi. I very simply would like to add increased numbers in some files. Since I have many thousands entries per file and many files, I would like to macro it in vi.
To do this, I enter the first number ("0001") on the first line and then yank... (4 Replies)
Discussion started by: hypsis
4 Replies
pork(1) USER COMMANDS pork(1)
NAME
pork - An AOL Instant Messenger client for the UNIX console.
VERSION
version 0.99.0
SYNOPSIS
pork [options]
DESCRIPTION
Pork is a console based client for the AOL Instant Messenger service that uses the ncurses screen library. Pork is intended to be fast,
useable, and stable.
Pork was written by Ryan McCabe.
OPTIONS
-H or --host <addr>
Use the local address specified for outgoing connections
-p or --port <port>
Use the local port specified for the main connection
-h or --help
Display this help text
-v or --version
Display version information and exit
USAGE
To log into AIM, type /connect <username>, where <username> is your AIM screen name. If you don't have an AIM screen name, you can get one
at http://aim.aol.com.
Pork now supports IRC. The syntax for connecting to an IRC server is /connect -irc <username> <server>[:<port>[:<password>]] [...
<serverN>[:<port>[:<password>]]]
When you're inside the client, type /help to find out what commands are supported. Type /help <command> to get help on a particular com-
mand.
Below are the default key bindings. All keys can have their bindings changed or removed completely. Enter the commands '/help bind' and
'/help keys' for more information.
KEY BINDINGS
Default main key bindings:
CTRL+A Move the cursor to the start of the line.
CTRL+B Move the cursor to the start of the previous word.
CTRL+E Move the cursor to the end of the line.
CTRL+F Move the cursor to the start of the next word.
CTRL+H Backspace.
META+BACKSPACE Delete the previous word on the input line.
CTRL+K Close the current window.
CTRL+L Refresh the display.
CTRL+T Toggle timestamps on messages.
CTRL+U Clear the input line.
CTRL+X Switch to the next window in the window list.
CTRL+Y Switch to the previous window in the window list.
TAB Switch the input focus to the buddy list.
META+/ Command auto-completion.
META+<1-9> Switch to the window having the specified number.
HOME Scroll to the top of the display.
END Scroll to the bottom of the display.
PAGE UP Scroll the display up one page.
PAGE DOWN Scroll the display down one page.
UP ARROW Scroll the input history list up.
DOWN ARROW Scroll the input history list down.
CTRL+META+X Bind the next account to the current window.
Default buddy list key bindings:
END Move the buddy list cursor to the bottom of the buddy list.
HOME Move the buddy list cursor to the top of the buddy list.
PAGE UP Move the buddy list cursor one page up.
PAGE DOWN Move the buddy list cursor one page down.
UP ARROW Move the buddy list cursor up.
DOWN ARROW Move the buddy list cursor down.
ENTER Collapse the group the cursor is on, or if the cursor is on a user, open a conversation window
with that user (or go to the conversation window, if one already exists).
TAB Switch to main input focus.
CTRL+L Refresh the buddy list display.
META+p Remove the user under the cursor from the permit list.
META+P Add the user the cursor is on to the permit list.
META+b Remove the user the cursor is on from the block list.
META+B Add the user the cursor is on to the block list.
META+w Warn the user the cursor is on.
META+W Warn the user the cursor is on anonymously.
a Get the away message of the user the cursor is on.
i Get the profile and away message of the user the cursor is on.
CTRL+X Switch to the next window in the window list.
CTRL+Y Switch to the previous window in the window list.
FILES
~/.pork/porkrc
- The pork configuration file
~/.pork/screenname.blist
- The buddy list for "screenname"
BUGS
ryan@numb.org
- Please report bugs to this address
HOMEPAGE
http://dev.ojnk.org
AUTHORS
Pork was written by Ryan McCabe <ryan@numb.org>.
This manpage was written by Benjamin Seidenberg <astronut@dlgeek.net>.
Pork AIM Client July, 2005 pork(1)