Docker common instructions (just remember)

1.Docker image layering

docker history  IMAGE:IMAGE ID

2.Docker pipeline query (similar to fuzzy query)

docker images |grep gz_docker and docker images comparison

3. Uninstall the graphics driver (Linux-x86_64-450.57)

 ./NVIDIA-Linux-x86_64-450.57.run --uninstall

4. Turn off/on the graphics card command

systemctl  stop/start  lightdm

 

5.ubuntu: ctr+alt +f1 enters the background terminal, ctr+atr +f7 exits the background terminal

 

=====================================================================================

Common Linux commands
1. Delete: rm -rf xxx.file
2. Create folder: Mkdir xxx 
3. Create file: touch file name
4. Modify name: mv xx.file1 (cut file) xxx.file2 (target file)
5. Remove: mv file target path

6. View the process: jsp
7. Open the file: Vi
8. View the file: cat/more xx.file   
9. View the contents of the last 100 lines of the file: tail -100 file 

10. View the variable configuration echo $PATH for variables such as PATH
11. Restart the server: reboot
12. Shut down the server: shutdown now
13. Shut down the process: kill -9? Process number
14. Modify the Linux system time: date -s "YYYY- MM-DD? hh:mm:ss" &&hwclock --systohc
sed -n "Start line, end line p" File name??
Sed -n '70,75p' robot.log?????? Output line 70 To the content of line 75
sed -n '6p;260,400p;'file name?? Output lines 6 and 260 to 400
15. View server resources: top
16. View cache command free -m
17. Clear cache Command 
   1 means clear page cache; 2 means clear inode and directory tree cache; 3 clear all caches
 echo 1 >?/proc/sys/vm/drop_caches
? ?Echo 2 >?/proc/sys/vm/drop_caches
? ?Echo 3 >?/proc/sys/vm/drop_caches
18. Check the location
 whereis gcc
19 close the firewall service firewalld stop /systemctl disable firewalld
20. Install rpm offline (nodeps ignores the error mode)
rpm -Uvh *.rpm --nodeps --force    
21. View the program installation version
 rpm -qa|grep gdb
22. Uninstall the RPM installation package such as gdb
rpm -e gdb/mysql-connector-c++-jdbc-8.0.15-1 .el7.x86_6

Guess you like

Origin blog.csdn.net/xiaoshunzi111/article/details/107408311