Editing Terminal
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 28: | Line 28: | ||
'''Understand what a command does before you type it''' | '''Understand what a command does before you type it''' | ||
- | Fundamentally you should understand what a command does before typing it in and pressing enter. If you have a linux | + | Fundamentally you should understand what a command does before typing it in and pressing enter. If you have a linux desktop distribution, like Ubuntu, you can normally type the command with the parameter <code>--help</code> to get a list of options, i.e. <code>ls --help</code>, or look up manual pages if installed, with: |
man ls [enter] | man ls [enter] | ||
- | + | to find out what the commands are and their options. However you can't do this on the tablets though as the tablets use cut down embedded commands, (BusyBox - I think?), so look at [http://ss64.com/bash Linux commands] or [http://www.busybox.net/downloads/BusyBox.html Busybox list of Linux commands and options for each one] | |
- | + | ||
- | + | ||
- | + | ||
- | to find out what | + | |
- | + | ||
- | However | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
=== Basics === | === Basics === | ||
- | |||
- | |||
- | |||
- | |||
==== Basic commands ==== | ==== Basic commands ==== | ||
Line 269: | Line 248: | ||
~ $ df -h | ~ $ df -h | ||
- | |||
- | |||
- | |||
=== Show a list of installed packages === | === Show a list of installed packages === | ||
Line 305: | Line 281: | ||
=== Networking === | === Networking === | ||
- | The user PATH does not include /sbin for some reason by default on NITs, which is annoying as | + | The user PATH does not include /sbin for some reason by default on NITs, which is annoying as yoou need to type in <code>/sbin/ifconfig</code> when normally just <code>ifconfig</code> would be sufficient. You can create a symlink to <code>/usr/bin</code> to make things easier: |
- | ~ $ ln -s /sbin/ | + | ~ $ ln -s /sbin/ifcongig /usr/bin/ifconfig |
Example use of <code>grep</code>, which outputs the entire line matching the pattern, in this case "inet addr" which is piped into it from the output of <code>ifconfig</code>: | Example use of <code>grep</code>, which outputs the entire line matching the pattern, in this case "inet addr" which is piped into it from the output of <code>ifconfig</code>: | ||
Line 338: | Line 314: | ||
apt-get update | apt-get update | ||
- | + | Upgrade any installed apps with newer versions (the <code>-y</code> is optional and just avoids it prompting you as to whether or not to proceed): | |
- | apt-get upgrade -y | + | apt-get upgrade -y |
Remove any downloaded package archives. Once the package is installed the downloaded file is no longer needed. The Application Manager does this automatically but if you are using "apt-get" you'll have to do it manually: | Remove any downloaded package archives. Once the package is installed the downloaded file is no longer needed. The Application Manager does this automatically but if you are using "apt-get" you'll have to do it manually: | ||
Line 347: | Line 323: | ||
apt-get autoclean | apt-get autoclean | ||
- | + | Remove any packages which are no longer needed. These are applications/libraries which were automatically installed because of dependencies but are no longer required: | |
apt-get autoremove | apt-get autoremove | ||
- | |||
Install any missing dependencies (which should fix the broken packages issue I had): | Install any missing dependencies (which should fix the broken packages issue I had): | ||
Line 373: | Line 348: | ||
~ $ dpkg -i nano_2.0.6_armel.deb | ~ $ dpkg -i nano_2.0.6_armel.deb | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
== Further reading == | == Further reading == |
Learn more about Contributing to the wiki.