Essential Linux knowledge points for test engineers

1. Basic operation

1. Install the software-edit yum -y install

2. Install the software-upload and download yum -y install lrzsz

3. View the current directory ls

4. View all ls -a

5. Create a folder mkdir Foldername

6. Create several folders at the same time mkdir F1 F2 F3

7. Delete the folder and file rm -rf F1

8. Delete qualified rm -rf *

9. Create the file touch jn.txt

10. Edit the file vim jn.txt and press i again to enter the editing mode. After editing, press the esc key to end the editing, and finally press shift+; (note ctrl+shift to turn off the input method), and finally, save and exit, and enter x; Exit without saving, enter q!

11. Return to the topmost directory cd (after cd …back to the user directory

12. Exit the upper level directory cd…

13. Return to the upper 2 level directory cd …/…

14. Go to a directory cd Chen (for example, press c, then press the Tab key, it will automatically complete, and judge whether the current location is wrong)

15. Unzip the tar file tar -xvf filename.tar

16. Unzip the .tar.gz file tar -xzvf filename.tar

17. Copy the text (and save it in the same folder with a new name) cp A.txt B.txt

18. Move (move all files and folders to another folder at the same time) cp -R a.txt b.txt c.txt Fang home

19. Upload rz

20, download sz

21. Open port 8080 firewall -cmd --zone=public --add-port=8080/tcp --permanent

Possible results: (1) FilewallD is not running The system does not open the firewall

Corresponding solution systemctl start firewalld.service to open the firewall service (opening the firewall is for system security, all ports of the system must be monitored, unless you open it, the outside world cannot access <80-tomcat;3306-mysql>)

(2) Other normal results: success

22. Forcibly kill the port kill -9 18867 (port number)

23. There are several tomcat servers running (tomcat service is a thread, it must be turned off to start, and the start is unsuccessful if it is not turned off) ps -ef|grep tomcat (generally set two, load balancing)

24. Check whether the MySQL database rpm -qa|grep mysql is installed (if it is blank, the decompressed version may be installed), another query method is find / -name mysql

25. View the current open ports firewall -cmd --list-ports

26. The color of the text: white-normal text blue-directory green-executable file red-compressed file light blue-linked file red flashing-linked file has problem yellow-indicating equipment problem gray-indicating other files

27. End the current command and restart the new command port ctrl+c

Software testing is the easiest subject in IT-related industries to get started~ It does not require the logical thinking of developers, and operations and maintenance personnel are not required to be on call 24 hours a day. What is needed is a careful attitude and a broad understanding of IT-related knowledge. The growth path of each tester from entering the industry to becoming a professional expert can be divided into three stages: software testing, automated testing, and test development engineers.

Insert picture description here

Here are some information I have compiled. If you don’t want to experience the self-study again, you can’t find the information, no one answers the question, and you feel like giving up after a few days, you can add our software testing exchange group 313782132, which contains various software Test data and technical exchanges.

Guess you like

Origin blog.csdn.net/weixin_50271247/article/details/109331166