Understanding Linux
Watch this video to learn the basics of Linux:
Introduction
Linux is a Operating System. When talking about learning Linux is to learn how to navigate the terminal, install packages, and understand the file system. Linux is the most popular operating system for robotics because it is open source and free.
Here are some of the most common commands:
Activities
Do the following activities to get familiar with Linux:
-
Open the terminal and list out files in your home directory. Navigate to the path "cd /" and list out the files in the root directory. Navigate back to your home directory.
-
Create a new directory in your home directory called "robotics". Create a new file in the "robotics" directory called "hello.txt". Write "Hello World" in the file.
-
Install a package using the package manager. For example, install "git" using the command
sudo apt install git
. -
Remove the package you installed in the previous step using the package manager.
-
Search for a file in your home directory using the
find
command. -
Create a new user using the
adduser
command. -
Switch to the new user using the
su
command. -
Change the permission of the file you created in step 2 to only be able to be read, edited, and executed by the owner.
-
Move a file to a new location in your computer
-
Find out the network information including when its connected to wifi and its IP address.