Linux commands are very important during testing! Here I will introduce some simple basic commands.
For deeper learning, I will put some links, you can choose by yourself!
After entering the adb shell, you can use Linux commands! (commands are case sensitive)
1. System related
Check the network ip address: ip a or ip addr
Test network connectivity: ping target machine ip
View the current system time: date
Shutdown: shutdown now
reboot: reboot
2. File management related
New file: touch
filename new folder: mkdir foldername
Delete a file: rm filename
Delete folder: rm -r folder name (parameter r: folder or recursive operation)
Force delete: rm -rf file or folder name
In the specified directory location, create a folder and create a parent folder: mkdir -p /a/b/folder name
Copy files: cp -r (folder) original file new file
Move files: mv original file destination folder
Modify the file name: mv original file new file name
Switch directory: cd target directory
View the current directory: pwd
~ refers to the current user's home directory
. refers to the current folder
.. refers to the upper level directory
There are many courses on station B, you can find them by yourself, the following two are my personal recommendations!
The Best Linux Video Tutorial in History - Band of Brothers_哔哩哔哩_bilibili