11-29-2011
UNIX VI editor equivalent of LINUX
Hi All,
I am comfortable working in LINUX and need equivalents for HP-UX for below mentioned,
1. We use TAB key to expand/reveal a name in LINUX. Is there any way to make this work for UNIX, where it is double escape.
2. Also can we use make use of left,down,up,right keys instead of hjkl keys.
How to change these in VI editor. Please suggest.
Thanks a lot.
8 More Discussions You Might Find Interesting
1. Linux
Hi all...
In my Unix system a program exists called "daemon2" which is responsible to enqueue program executions. For example, if I want to make the system to enqueue lpr executions for certain users, I call daemon2 with lpr as the parameter.
Is there an equivalent in Linux?
Thanks
Jaime (0 Replies)
Discussion started by: jstuardo
0 Replies
2. UNIX for Advanced & Expert Users
Hi all,
I am preparing for a worst case scenario. Say i have a production server A, should A fails ( for whatever reason), i want another server B to take over. How can i move everything from A to B? Assuming i have regular backup of A.
I've searched in the forums, and briefly came across... (4 Replies)
Discussion started by: new2ss
4 Replies
3. UNIX for Advanced & Expert Users
In IBM Mainframe they have something called ACF2 rule which is essentially used to control the dataset access. It is kind of a list-based access control for mainframe datasets.
Is there anything equivalent to ACF2 available in Unix ?
Thanks
Rabi (1 Reply)
Discussion started by: indra_saha
1 Replies
4. Linux
I moved to a Linux system from Windows a few months ago. Most of the programs I had been using were already native to Linux (Firefox, the GIMP, Pari, etc.) and most others I found a close enough program (Crimson Editor -> gedit, Visual Studio -> KDevelop, Primo -> Morain's ECPP).
Now I'm down... (1 Reply)
Discussion started by: CRGreathouse
1 Replies
5. Linux
Hi Guys,
I am used to configuring DHCP on Solaris and foreach subnet added I place a corresponding entry in /etc/netmasks. I am now looking at configuring DHCP on linux, is there an equivalnet entry required somewhere or is this not needed in linux
Thanks (3 Replies)
Discussion started by: eeisken
3 Replies
6. Red Hat
Hi,
I need to mount a replicated nfs4 export on a number of AIX and Redhat hosts. To get the failover on the clients working smoothly, I need to change certain values on the AIX boxes like nfs_v4_fail_over_timeout, timeo and retrans values. Since I have no clue about Linux, I am not quite sure... (1 Reply)
Discussion started by: zxmaus
1 Replies
7. Shell Programming and Scripting
I have a folder called "log" which has a few sub-folders say "fda" "fd7" "fdd" "fd6 .... "
I wish to fire the below command inside each subfolder starting with the folder with the latest time stamp.
grep "$greptime.*exit" Prod.$(hostname).log | grep $fdrdate_new
If the seach did not yield... (3 Replies)
Discussion started by: mohtashims
3 Replies
8. What is on Your Mind?
We have asked UNIX.com users over the years what is their favorite editor and why. Here is the top three answers.
Here is a new YT video on this question:
What Editor Does Everyone Use?
https://youtu.be/gqE8RTZZt9g
Of course, vi was the overwhelming favorite.
Credits:
1080 HD... (3 Replies)
Discussion started by: Neo
3 Replies
SNAKE(6) BSD Games Manual SNAKE(6)
NAME
snake, snscore -- display chase game
SYNOPSIS
snake [-w width] [-l length] [-t]
snscore
DESCRIPTION
snake is a display-based game which must be played on a CRT terminal. The object of the game is to make as much money as possible without
getting eaten by the snake. The -l and -w options allow you to specify the length and width of the field. By default the entire screen is
used. The -t option makes the game assume you are on a slow terminal.
You are represented on the screen by an I. The snake is 6 squares long and is represented by s's with an S at its head. The money is $, and
an exit is #. Your score is posted in the upper left hand corner.
You can move around using the same conventions as vi(1), the h, j, k, and l keys work, as do the arrow keys. Other possibilities include:
sefc These keys are like hjkl but form a directed pad around the d key.
HJKL These keys move you all the way in the indicated direction to the same row or column as the money. This does not let you jump away
from the snake, but rather saves you from having to type a key repeatedly. The snake still gets all his turns.
SEFC Likewise for the upper case versions on the left.
ATPB These keys move you to the four edges of the screen. Their position on the keyboard is the mnemonic, e.g. P is at the far right of
the keyboard.
x This lets you quit the game at any time.
p Points in a direction you might want to go.
w Space warp to get out of tight squeezes, at a price.
To earn money, move to the same square the money is on. A new $ will appear when you earn the current one. As you get richer, the snake
gets hungrier. To leave the game, move to the exit (#).
A record is kept of the personal best score of each player. Scores are only counted if you leave at the exit, getting eaten by the snake is
worth nothing.
As in pinball, matching the last digit of your score to the number which appears after the game is worth a bonus.
To see who wastes time playing snake, run snscore.
FILES
/var/games/snakerawscores database of personal bests
/var/games/snake.log log of games played
BUGS
When playing on a small screen, it's hard to tell when you hit the edge of the screen.
The scoring function takes into account the size of the screen. A perfect function to do this equitably has not been devised.
BSD
May 31, 1993 BSD