04-19-2007
properties for vi
Hi,
I have a simple problem in vi of which I dont know the solution.
I have a file of 2000 lines. But when I open the file in vi, it only displays 20 lines and I have to use ctrl-f to see next lines.
How do change the screen settings in vi? I want to see screen full text.
stty rows 40 columns 80 doesn't help.
Any answers?
Thanks in advance,
-Ashish
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have set up php shop and it required command line access which i have I executed the install.pl script and everything went OK but when I tried to access the admin foler via the www @ www.helloni.co.uk/shophtml/admin/ i get a forbidden error.
I know I have to change the attribs of the folder... (8 Replies)
Discussion started by: trekker
8 Replies
2. Cybersecurity
Here are some desirable properties for cryptographic hash functions:
These properties below are generally considered prerequisites:
* Preimage resistant: given h it should be hard to find any m such that h = hash(m).
* Second preimage resistant: given an input m1, it should be hard... (1 Reply)
Discussion started by: newkidintown
1 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I have noticed that rm -if will perform completely different to rm -fi. Whats the pattern of how I put my options to the script in relation to how it will act.
i.e
rm -fi treat the remove as interative but
rm -if treats it as forced
Thansk, Chris. (1 Reply)
Discussion started by: Chiefos
1 Replies
4. Shell Programming and Scripting
How can I get heigth and width of an image file?
It's possible to do without ImageMagick or other third libraries??
Thank you very much (3 Replies)
Discussion started by: victorin
3 Replies
5. Shell Programming and Scripting
Hi All,
I have a code below but i have problems trying to execute "cat $jpg". Can anybody give me any advise? Is there something wrong with my syntax ?
#!/bin/csh
set qqq = 123
set www = 456
set jpg = ( $qqq $www )
cat $jpg
Output: (2 Replies)
Discussion started by: Raynon
2 Replies
6. HP-UX
Hi
How can we identify the informations like Author, meta data, dependency and other information from a depot file? (1 Reply)
Discussion started by: sethumadhavan
1 Replies
7. UNIX for Dummies Questions & Answers
Hi ,
I do have a line in my code as follows:
if ] ; then
...
else
...
fi
What does the -z does ? Similarly there is -s in some other part of the code. I guess there are many options like this.. Can anybody please tell what all options are available and what do they mean ? (2 Replies)
Discussion started by: risshanth
2 Replies
8. Shell Programming and Scripting
Hi
A bash script, after some operations, return with an array.
My goal is to calculate some statistical properties (hopefully still in bash) of that array, (like mean, variance, max_value and min_value).
For the max, mean and the min it seems work, but for the variance the notation is... (1 Reply)
Discussion started by: Dedalus
1 Replies
9. Shell Programming and Scripting
Hi
Am new to this scripting stuff so bear with me.
I got a script made now that reads in a properties file. The properties file is in the following format:
256= Bos, Sea, FRa
128= HEL
I want to be able to read in each line of the file and split out the letter fields by the numbered field. This... (2 Replies)
Discussion started by: vsekvsek
2 Replies
LEARN ABOUT CENTOS
resizecons
RESIZECONS(8) Console Support RESIZECONS(8)
NAME
resizecons - change kernel idea of the console size
SYNOPSIS
resizecons COLSxROWS
resizecons -lines ROWS
DESCRIPTION
The resizecons command tries to change the videomode of the console. There are several aspects to this: (a) the kernel must know about it,
(b) the hardware must know about it, (c) user programs must know about it, (d) the console font may have to be adapted.
(a) The kernel is told about the change using the ioctl VT_RESIZE. This causes the kernel to reallocate console screen memory for all vir-
tual consoles, and might fail if there is not enough memory. (In that case, try to disallocate some virtual consoles first.) If this
ioctl succeeds, but a later step fails (e.g., because you do not have root permissions), you may be left with a very messy screen.
The most difficult part of this is (b), since it requires detailed knowledge of the video card hardware, and the setting of numerous regis-
ters. Only changing the number of rows is slightly easier, and resizecons will try to do that itself, when given the -lines option. (Proba-
bly, root permission will be required.) The command resizecons COLSxROWS will execute restoretextmode -r COLSxROWS (and hence requires
that you have svgalib installed). Here COLSxROWS is a file that was created earlier by restoretextmode -w COLSxROWS. Again, either root
permissions are required, or restoretextmode has to be suid root.
In order to deal with (c), resizecons does a `stty rows ROWS cols COLS' for each active console (in the range tty0..tty15), and sends a
SIGWINCH signal to selection if it finds the file /tmp/selection.pid.
Finally, (d) is dealt with by executing a setfont command. Most likely, the wrong font is loaded, and you may want to do another setfont
yourself afterwards.
BUGS
resizecons does not work on all hardware. This command used to be called resize, but was renamed to avoid conflict with another command
with the same name.
SEE ALSO
setfont(8), stty(1), selection(1), restoretextmode(8), disalloc(8)
Local 17 Jan 1995 RESIZECONS(8)