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/01/04 10:48] – [editing files] vgaeteradocs: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:guide-quick-start:sshadministration|SSH access for newcomers]]
 +
 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/scripting language. The interaction takes place by means of a [[wp>command-line interface]]. Other common, but technically not quite correct, denominations are **console** or **shell**. 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/scripting language. The interaction takes place by means of a [[wp>command-line interface]]. Other common, but technically not quite correct, denominations are **console** or **shell**.
  
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: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 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]), 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 120: 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