Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
docs:guide-user:base-system:user.beginner.cli [2021/02/14 05:23] – [Command-line interpreter] vgaeteradocs:guide-user:base-system:user.beginner.cli [2021/03/16 02:11] – [Profile customization] comment vgaetera
Line 10: 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:techref:hardware:port.serial|serial port]] (=local) or over the Ethernet port (= over the network). But most devices you run OpenWrt on, have neither a keyboard nor a display adapter. So we need to access it over the [[docs:techref:hardware:port.serial|serial port]] (=local) or over the Ethernet port (= over the network).
- 
  
 ===== Network ===== ===== Network =====
Line 32: 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]), it is being automatically stored. You can then insert it the usual way (with [Ctrl]+[v]) in an other windows, e.g. an open firefox. The other way around, you copy text the usual way [Ctrl]+[c]) and then paste it in PuTTY by pressing the [right mouse button]! When in PuTTY, you can mark text content with the mouse and, without pressing any key (like [Ctrl]+[c]), it is being automatically stored. You can then insert it the usual way (with [Ctrl]+[v]) in an other windows, e.g. an open firefox. The other way around, you copy text the usual way [Ctrl]+[c]) and then paste it in PuTTY by pressing the [right mouse button]!
  
 ==== Numpad in PuTTY while using Vi ==== ==== Numpad in PuTTY while using Vi ====
 In PuTTY goto //"Terminal"// => //"Features"// and check //"Disable application keypad mode"//. In PuTTY goto //"Terminal"// => //"Features"// and check //"Disable application keypad mode"//.
- 
  
 ===== Issue commands ===== ===== Issue commands =====
Line 122: Line 120:
 </code> </code>
  
 +===== Profile customization =====
 +User profile customization example.
  
-===== File Managers ===== +<code bash> 
-You may also want to try ''[[wp>Midnight Commander|mc]]'' or ''[[wp>Demos Commander|deco]]''+# Configure profile 
 +mkdir -p /etc/profile.d 
 +cat << "EOF" > /etc/profile.d/custom.sh 
 +export EDITOR="nano" 
 +export PAGER="less" 
 +alias diff="diff --color=auto" 
 +alias grep="grep --color=auto" 
 +alias ip="ip -color=auto" 
 +EOF 
 +/etc/profile 
 +</code>
  
 +===== File managers =====
 +You may also want to try ''[[wp>Midnight Commander|mc]]'' or ''[[wp>Demos Commander|deco]]''.
  
 ===== Use GUIs ===== ===== Use GUIs =====
  • Last modified: 2021/09/09 02:29
  • by vgaetera