|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| Ubuntu Ubuntu is a complete desktop Linux operating system, freely available with both community and professional support. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
How to goto end of the file
Hi All
when I open a file with "less" command, how can i go to end of the file. I have very large file and if i do pagedown it takes long time to go end of the file. Any one have an idea. Thanks |
| Sponsored Links | ||
|
|
#2
|
||||
|
||||
|
'shift g' will take you to the bottom.
|
| Sponsored Links | ||
|
|
#3
|
||||
|
||||
|
The tail command gives the last lines of a file. For instance, Code:
tail -10 infile will show last ten lines of the file called infile |
|
#4
|
||||
|
||||
|
Ikon, Shift + G will take you to the bottom of the file only if you have opened the file in vi editor. Rather use Joey's suggestion, I think that tail filename, with no arguments passed to the command, will display the last 10 lines by default, at least on most distros.
|
| Sponsored Links | |
|
|
#5
|
|||
|
|||
|
Shift + G will take you to the bottom of the file (and show you the last full screen of text) when streamed through "less"
|
| Sponsored Links | |
|
|
#6
|
|||
|
|||
|
This is what Sysgate mentioned, shift + G will take to the last line of the file, if the file is opened in vi
|
| Sponsored Links | |
|
|
#7
|
|||
|
|||
|
I'm simply trying to clarify that while: Code:
# less filename Shift + G while take the user to the end of the file. This appears to be counter to sysgate's statement. |
| Sponsored Links | ||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Using A Goto Label? | Grizzly | Shell Programming and Scripting | 5 | 09-12-2009 08:56 AM |
| Goto last visted directory | prasanth_babu | Solaris | 6 | 08-11-2008 03:17 AM |
| goto statement | Krrishv | Shell Programming and Scripting | 5 | 02-21-2007 06:36 AM |
| Use of GOTO statement in scripts | vikasduhan | Shell Programming and Scripting | 7 | 02-02-2006 11:50 AM |
| how to goto in ksh | Geraldine | Shell Programming and Scripting | 4 | 03-12-2004 07:35 AM |
|
|