ROS study notes one (basic operation of Linux system)

ROS study notes one (basic operation of Linux system)

The last time I was last summer vacation, I roughly read Gu Yue's ROS Introduction 21 lectures. After half a year, I will review it again from the beginning. This time I use the ubuntu18.04 dual system. I write some notes here. Otherwise, it is not good to lie down at home during the winter vacation. School will start soon and I don’t know how much I can write. I hope you can communicate more, and I hope you can correct the mistakes.

1. Screenshot function

In the ubuntu system, you can use the Ctrl+Shift+PrtSc key combination to take a screenshot of the area and copy it to the clipboard. Other shortcut keys related to screenshots can be found in Settings - Devices - Keyboard - Screenshots .

Two, software and updates

The software source can be configured in the software and updates of the system.
Insert picture description here

The home network can choose Alibaba Cloud mirroring. You can choose the edu type mirror for the school intranet, or click to select the best server. The choice of software source directly affects the download speed of the software. The cache will be updated after the software source is reconfigured. The installed software can be found in the software directory in the lower left corner.

Three, terminal

In the ubuntu system, use the Ctrl+Alt+T key combination to open the command line terminal.
Insert picture description here

Fourth, the basics of command line use

1. View the path of the current terminal: pwd

Insert picture description here
The root directory of the system is the / directory, under which there is a home folder, and under the home folder there is a folder named after the user, which is the main folder for storing related documents.

2. Switch path: cd

Insert picture description here

3. Enter the upper level directory: cd..

Insert picture description here

4. Create a new folder: mkdir + name

Insert picture description here

5. View the files in the current path: ls

Insert picture description hereThe blue is the folder, and the white is the hidden file.

6. Create a new file in the target folder: touch + name

Insert picture description here
Insert picture description hereThis file is similar to the txt file under windows.

7. Cut the file: mv + file_name + path

Insert picture description here

8. Copy and paste the file: cp + file_name + path + (new_file_name)

Insert picture description here

9. Delete files/folders: rm / rm -r

Delete file: rm+filename
delete folder: rm -r +folder_name

10. sudo

Used to elevate user permissions. Used to install software, etc.

11. - -help

Used to view the help information of the command.

Guess you like

Origin blog.csdn.net/weixin_44911075/article/details/114113313