Presentation is loading. Please wait.

Presentation is loading. Please wait.

Embedded Programming and Robotics Lesson 13 Basic Linux 1.

Similar presentations


Presentation on theme: "Embedded Programming and Robotics Lesson 13 Basic Linux 1."— Presentation transcript:

1 Embedded Programming and Robotics Lesson 13 Basic Linux 1

2 Introduction Linux is an open-source operating system You have already installed it on your MicroSD card, so there is no need to go into the details of a real install Much of what we’ll do is either in Python or will use the graphical shell It helps to know some basic concepts and commands Open a command shell on your Pi and follow along Basic Linux2

3 The Superuser To prevent problems with malware, Linux requires some functions to be executed as the “superuser” Even if your ID has superuser priveleges, commands won’t be executed as the superuser unless you prefix them with “sudo” For example, access to the GPIO pins requires superuser rights Basic Linux3

4 Basic Commands man – show documentation ls – List the directory cd – change directory cp – copy a file mv – Move or rename a file mkdir – create a new directory rmdir – remove a directory rm – remove (delete) files chmod – change file permissions Basic Linux4

5 Advanced Commands ifconfig – get network configuration iwconfig – get wireless network configuration Basic Linux5

6 man Command This is the most important one, since it gives you help on all of the others For example, man ls gives you help on the ls command Just typing man will give you a message that you need to request info on a specific command Basic Linux6

7 ls Command List the contents of a directory Just typing the command shows the current directory ls-l shows the long form, one entry per line ls followed by the name of a directory lists the contents of that directory: ls /etc/ Basic Linux7

8 cd Command Basic Linux8

9 cp Command Basic Linux9

10 mv Command Basic Linux10

11 mkdir Command Basic Linux11

12 rmdir Command Basic Linux12

13 rm Command Basic Linux13

14 chmod Command Basic Linux14

15 ifconfig Command Basic Linux15

16 iwconfig Command Basic Linux16

17 Leafpad Text Editor This works pretty much the way Notepad works on Windows Basic Linux17


Download ppt "Embedded Programming and Robotics Lesson 13 Basic Linux 1."

Similar presentations


Ads by Google