L Y N X without rwx?

Tim Chase blinux.list at thechases.com
Sun Jan 29 22:33:28 UTC 2006


> How can I run without getting all those "rwx rx" before
> each file?

You can edit your ~/.lynxrc file.  There's a setting you can 
search for called "LIST_FORMAT".  By default, it has "%p" 
contained in it, which displays the permissions.  However, 
you can set it so that it shows whatever information you 
want.  If you don't have a .lynxrc file, you may be able to 
find a lynx.cfg file in your /etc directory to use as a 
template.  If not, there's a sample you can snag at

http://www.subir.com/lynx/latest-release/lynx.cfg

The LIST_FORMAT option can include any of the following:

#	%p	Unix-style permission bits
#	%l	link count
#	%o	owner of file
#	%g	group of file
#	%d	date of last modification
#	%a	anchor pointing to file or directory
#	%A	as above but don't show symbolic links
#	%t	type of file (description derived from MIME type)
#	%T	MIME type as known by Lynx (from mime.types or default)
#	%k	size of file in Kilobytes
#	%K	as above but omit size for directories
#	%s	size of file in bytes

I think the default is

   LIST_FORMAT:    %p %4l %-8.8o %-8.8g %7s %-12.12d %a

which makes it look like the output of "ls -l".

I'm pretty sure you'd have to restart lynx before any 
changes in the lynxrc were noticed.

While you're monkeying with your .lynxrc file, you might 
want to add the following four lines:

keypad_mode=LINKS_AND_FIELDS_ARE_NUMBERED
TEXTFIELDS_NEED_ACTIVATION:TRUE
user_mode=ADVANCED
vi_keys=on

(well, optionally on the "vi_keys", if you don't use/like 
using vi as your editor).

The keypad_mode allows you to jump to links & form-fields 
(or to pages) by typing the number of the link and hitting 
enter (or in the case of pages, typing the number, followed 
by "p" and hitting enter).  If you want to jump to a link 
number, but don't want to activate/select it, you can type 
the number followed by "g" and hit enter.

The "textfields_need_activation" option is useful if you 
have the "vi_keys" option set, so if you're using "j" and 
"k" to skim up and down in your list of links, and happen 
upon a text-entry box, it doesn't get filled with a bunch of 
"j" or "k" characters.  You just use <enter> to edit it.

Additionally, if you use dir-ed mode regularly, there are a 
lot of goodies described at

http://focus.hut.fi/docs/lynx/lynx_help/keystroke_commands/dired_help.html

which, if you don't already know them, can make your life 
easier...things like tagging files for operating on multiple 
files (like deleting selected files, etc)

You can find the whole host of lynxrc options available at

http://www.telerama.com/support/documentation/lynx/lynxcfg_toc.html

Hope this gives you some ideas and helps you browse faster.

-tim








More information about the Blinux-list mailing list