Last edited by I like Linux, 2016-03-07 23:09:43
At this point we expect readers should have setup the Omega. If not the getting started guide can be found here.
The command line interface (CLI) is the user's access point into the operating system using a terminal. All user interaction is interpreted and executed by the OS through things called commands. A user enters a command into a terminal to make something happen.
Additionally, commands come with options that tell the command to do specific things related to that command. Users can select options by typing the command followed by the option into the terminal.
We will now explore some basic linux commands. Go ahead and connect your the Omega as in the getting started guide. You shoud see a screen like this:
Let's go ahead try some basic commands:
This allows the user to login into the Linux as the root, which we will elaborate on further in this section/article.
Type login into the command line and press enter. You will be prompted to enter the username and password, which are "root" and "onioneer" respectively by default. Also note that the password will be hidden while you type. After that you should see a screen like this:
Congratulations! You have just executed your first command, you are now logged in as root.
If you are not used to work with the terminal, you might be happy to get some additional information what you can do within this "Black-Box".
To get more info about what commands you can use, just type:
and you will get a overview of what busy-box is and all commands available over it.
if you prefer a list of all this commands.
If you need more explanation about a certain command just use:
busybox ifconfig --help
Let's see the next command:
The date command will return the date and time.
Type date on the terminal and press enter. You should see something like this.
As you can see, the command returned the current date and time(may be incorrect, but can be fixed) on the terminal.
For the programmers, this is analogous to a print function. For example, typing echo "hello" will display "hello" in the command line. Go ahead and type "echo hello" into the command line. You should see this.
echo can also be used to pass an input into another command but we'll elaborate on that more in the redirection/piping article.
We will now explore the filesystem on the Omega.