ROS study notes one
- ROS study notes one (basic operation of Linux system)
-
- 1. Screenshot function
- Two, software and updates
- Three, terminal
- Fourth, the basics of command line use
-
- 1. View the path of the current terminal: pwd
- 2. Switch path: cd
- 3. Enter the upper level directory: cd..
- 4. Create a new folder: mkdir + name
- 5. View the files in the current path: ls
- 6. Create a new file in the target folder: touch + name
- 7. Cut the file: mv + file_name + path
- 8. Copy and paste the file: cp + file_name + path + (new_file_name)
- 9. Delete files/folders: rm / rm -r
- 10. sudo
- 11. - -help
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.
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.
Fourth, the basics of command line use
1. View the path of the current terminal: pwd
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
3. Enter the upper level directory: cd..
4. Create a new folder: mkdir + name
5. View the files in the current path: ls
The blue is the folder, and the white is the hidden file.
6. Create a new file in the target folder: touch + name
This file is similar to the txt file under windows.
7. Cut the file: mv + file_name + path
8. Copy and paste the file: cp + file_name + path + (new_file_name)
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.