Use w3m command line mode to browse Web pages in Ubuntu

Source: Internet
Author: User

W3m is a text-based Web browser that supports multiple operating systems and supports Chinese Characters in command line terminals. You can check the webpage output even if the mouse does not support it.

We usually use Ubuntu X Windows to view graphical interfaces. Have you ever thought about browsing web pages in command line mode? If so, try the w3m command!

The simplest method is:

W3m http://www.linuxidc.com

As follows:


You can see different browsers. They are simple and quick. If you want to log on or search for something in the search box, you must first move the cursor to the input box, then press "A" on the keyboard. At this time, a prompt is displayed at the bottom of the screen. After the input is complete, press enter to log in. Haha, it's really fun, if you are interested, try it. If you want to have a better time, you have to study the w3m parameter!

This section lists common shortcut keys.

Page operations

SPC, C-v FLIP down

B, ESC V Page up

L, C-F focus to the right

H, C-B focus to left

J, C-N focus down

K, C-P focus upward

J. Scroll down a row

K. Scroll up a row

^, C-A to the beginning of the line

$, C-e to the end of the line

W to the next word

W to the previous word

> Move one screen to the right

<Move one screen to the left

. Shift one column to the right of the screen

, Move one column to the left of the screen

G, M-<to the first line

G, M-> to the last line

ESC g to specified row

Center the current row of Z

Center the current Z Column

Tab to next hyperlink

C-u, ESC tab to the previous hyperlink

[To the first hyperlink

] To the last hyperlink

Hyperlink operation

RET opens a hyperlink

A. Save the esc ret link

U view URL

I. view image URLs

I. view images

Save esc I image

: Mark The RUL string as the anchor

ESC: Mark the ID string as the anchor

C. view the URL of the current page

= Display current page properties

C-g to view the current row number

C-H view history

F. submit the form.

M open the current page with an external browser (use 2 m and 3 m to invoke second and third browser)

ESC m open the link in an external browser (use 2esc m and 3esc m to invoke second and third Browser

File/stream operations

U open URL

V open a file

@ Execute External commands and import

# Execute External commands and browse

Cache operations

B Return

V view source code

S select Cache

E. Edit cache code

C-l re-draw Screen

R refresh

Save the S page

Save esc s source code

ESC e edit Image

Cache selection mode (after S)

Cache on K, C-P

J, C-N next Cache

D. Delete the current cache.

RET go to the selected Cache

Bookmarks

Open bookmarks for ESC B

Esc a add the current page to the bookmarks

Search

/, C-s forward search

?, C-r Backward Search

N next

N previous

C-W open/close loop search

Mark

C-SPC settings/unmark (as if this key is typically occupied by the input method)

Esc p goes to the previous tag

ESC n go to the next tag

"Mark with regular expression

Miscellaneous

! Execute External commands

H help

O setting options

C-k displays accepted cookies

C-c stops

C-Z suspension (logout)

Q exit (confirmation required)

Q quit without confirmation

Row editing mode

C-F optical backward

C-B cursor forward

C-H Delete the previous character

C-d: Delete the current character

C-k deletes all content after the cursor

C-u delete all content before the cursor

C-a cursor to the beginning of the line

C-e cursor to end of line

C-p gets the previous word in the history

C-n gets the last word in the history

Tab, SPC automatically complete the file name

Return OK

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.