If you can see this check that

next section prev section up prev page next page

Moving the cursor

As well as using the keys h,j,k, and l to move the cursor left, down, up, and right respectively, must terminals let you use the arrow keys to perform the same function.

Another useful cursor moving command is G, which functions as a goto command. For example, to go to line 256 of a file you would type 256G and the cursor would move to that line. To find out your current line number at any time, you can press CTRL-G in command mode and to display the line numbers along the left margin of your file, you can type


:set number

$
Moves the cursor to the end of the current line
^ or 0 (zero)
Moves the cursor to the beginning of the current line
w
Moves the cursor to the beginning of the next word or next punctuation
W
Moves the cursor to the beginning of the next word ignoring punctuation
b
Moves the cursor to the beginning of previous word or previous punctuation
B
Moves the cursor to the beginning of previous word ignoring punctuation
e
Move forward to the end of the next word or next punctuation
E
Move forward to the end of the next word ignoring punctuation


Centos 7 intro: Paths | BasicShell | Search
Linux tutorials: intro1 intro2 wildcard permission pipe vi essential admin net SELinux1 SELinux2 fwall DNS diag Apache1 Apache2 log Mail
Caine 10.0: Essentials | Basic | Search | Acquisition | SysIntro | grep | MBR | GPT | FAT | NTFS | FRMeta | FRTools | Browser | Mock Exam |
Caine 13.0: Essentials | Basic | Search | Acquisition | SysIntro | grep | MBR | GPT | FAT | NTFS | FRMeta | FRTools | Browser | Registry | Mock Exam |
CPD: Cygwin | Paths | Files and head/tail | Find and regex | Sort | Log Analysis
Kali: 1a | 1b | 1c | 2 | 3 | 4a | 4b | 5 | 6 | 7a | 8a | 8b | 9 | 10 |
Kali 2020-4: 1a | 1b | 1c | 2 | 3 | 4a | 4b | 5 | 6 | 7 | 8a | 8b | 9 | 10 |
Useful: Quiz | Forums | Privacy Policy | Terms and Conditions

Linuxzoo created by Gordon Russell.
@ Copyright 2004-2024 Edinburgh Napier University