Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
| docs:guide-user:base-system:user.beginner.cli [2019/06/21 15:42] – [Start] ben | docs:guide-user:base-system:user.beginner.cli [2021/03/16 02:11] – [Profile customization] comment vgaetera | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Command-line interpreter ====== | ====== Command-line interpreter ====== | ||
| + | See also: [[docs: | ||
| + | |||
| A command-line interpreter is a computer program that reads singular lines of text entered by a user and interprets them in the context of a given operating system or programming/ | A command-line interpreter is a computer program that reads singular lines of text entered by a user and interprets them in the context of a given operating system or programming/ | ||
| Line 8: | Line 10: | ||
| But most devices you run OpenWrt on, have neither a keyboard nor a display adapter. So we need to access it over the [[docs: | But most devices you run OpenWrt on, have neither a keyboard nor a display adapter. So we need to access it over the [[docs: | ||
| - | |||
| ===== Network ===== | ===== Network ===== | ||
| Line 30: | Line 31: | ||
| * etc. | * etc. | ||
| - | ===== Copy & Paste ===== | + | ===== Copy & paste ===== |
| When in PuTTY, you can mark text content with the mouse and, without pressing any key (like [Ctrl]+[c]), | When in PuTTY, you can mark text content with the mouse and, without pressing any key (like [Ctrl]+[c]), | ||
| ==== Numpad in PuTTY while using Vi ==== | ==== Numpad in PuTTY while using Vi ==== | ||
| In PuTTY goto //" | In PuTTY goto //" | ||
| - | |||
| ===== Issue commands ===== | ===== Issue commands ===== | ||
| Line 67: | Line 67: | ||
| **'' | **'' | ||
| - | ===== editing | + | ===== Editing |
| To edit a file you need an editor, to edit a text file, you would use a text editor. | To edit a file you need an editor, to edit a text file, you would use a text editor. | ||
| Line 76: | Line 76: | ||
| * '' | * '' | ||
| - | === starting | + | === Starting |
| Start with '' | Start with '' | ||
| - | === editing | + | === Editing |
| In order to edit the file, you have to be in //insert mode//. Press [i] or [a]. | In order to edit the file, you have to be in //insert mode//. Press [i] or [a]. | ||
| - | === exiting | + | === Exiting |
| In order to get out of vi, you have to be in //command mode//. Press [Esc] (the escape key). Then issue one of the following commands: | In order to get out of vi, you have to be in //command mode//. Press [Esc] (the escape key). Then issue one of the following commands: | ||
| * '': | * '': | ||
| Line 89: | Line 89: | ||
| * '': | * '': | ||
| - | === configuring | + | === Configuring |
| Vi can be configured in //command mode// by setting certain variables: | Vi can be configured in //command mode// by setting certain variables: | ||
| * '': | * '': | ||
| * '': | * '': | ||
| - | === alternative | + | === Alternative |
| If you do not like '' | If you do not like '' | ||
| * '' | * '' | ||
| Line 120: | Line 120: | ||
| </ | </ | ||
| + | ===== Profile customization ===== | ||
| + | User profile customization example. | ||
| - | ===== File Managers ===== | + | <code bash> |
| - | You may also want to try '' | + | # Configure profile |
| + | mkdir -p / | ||
| + | cat << " | ||
| + | export EDITOR=" | ||
| + | export PAGER=" | ||
| + | alias diff="diff --color=auto" | ||
| + | alias grep="grep --color=auto" | ||
| + | alias ip="ip -color=auto" | ||
| + | EOF | ||
| + | . / | ||
| + | </ | ||
| + | ===== File managers ===== | ||
| + | You may also want to try '' | ||
| ===== Use GUIs ===== | ===== Use GUIs ===== | ||