linux find, locate, where is, which, type

Article directory 1,find 2. locate command 3. Where is command 4. which command 5. type command 1,find Find is the most commonly used and powerful find command, which can find any type of file. The general format of the find command is: find < specify Directory > < specify condition > ...

Posted by alexus on Thu, 16 Jan 2020 09:46:02 -0800

Variables in Shell

1. System variable 1. Common system variables $HOME, $PWD, $SHELL, $USER, etc 2. Case practice (1) View the value of the system variable [zj@hadoop101 datas]$ echo $HOME /home/zj (2) Display all variables in the current Shell: set [zj@hadoop101 datas]$ set BASH=/bin/bash BASH_ALIASES=() BA ...

Posted by derekm on Wed, 15 Jan 2020 00:00:49 -0800

The use of VIM compiler and the basis of shell programming under Linux

Installation and use of VIM compiler vim editor installation In CentOS, execute: yum -y install vim Common mode h: Move one character left j: Move down one line k: Move up one line l: One character to the right PageDown (or Ctrl+F): next screen PageUp (or Ctrl+B): flip up one screen ...

Posted by gravedig2 on Tue, 14 Jan 2020 22:50:03 -0800

Source reading of ONNX Runtime: overview of model reasoning process

brief introduction The ONNX Runtime is an engine for ONNX(Open Neural Network Exchange) model reasoning. Microsoft, together with Facebook and other companies, launched an in-depth learning and machine learning model format standard - ONNX in 2017. Along the way, it provides an engine dedicated to ONN ...

Posted by Replika on Tue, 14 Jan 2020 03:50:57 -0800

Single machine multi instance configuration of Tomcat

Sometimes you need to deploy multiple Tomcat on a server, and distinguish them through different ports, such as reverse proxy. But I don't want to simply copy tomcat, which is not convenient for future upgrade or management. At this time, I need to configure a single machine with multiple instances o ...

Posted by yurko on Sun, 12 Jan 2020 03:19:57 -0800

6. Playbook cycle, conditional judgment in playbook, handlers in Playbook

1. playbook cycle #vi/etc/ansible/while.yml //Add the following --- - hosts: yw02   user: root   tasks:     - name: change mode for files       file: path=/tmp/{{ item }} mode=600       with_items:         - 1.txt         - 2.txt         - 3.txt Description: A file module is used here, followed by a path, if it is a file, you can write/tmp/1. ...

Posted by genius on Fri, 10 Jan 2020 09:13:32 -0800

How to set environment variables in Python

I need to set some environment variables in the python script, and I want to view the set environment variables from all the other scripts (shell scripts) that Python calls (which will be subprocesses).The value is a number. If I do os.environ["DEBUSSY"] = 1, it complains that 1 must be a string.I also want to know how to read env ...

Posted by TruckStuff on Wed, 08 Jan 2020 20:56:11 -0800

Python getting command line results

Reprint link: https://blog.csdn.net/wowocpp/article/details/80775650 python gets the command line output and filters the results to find what it needs! Here to get the MAC address and IP address of the machine as an example! # coding: GB2312 import os, re # execute command, and return the output def execCmd(cmd): ...

Posted by dannymc1983 on Wed, 08 Jan 2020 07:32:35 -0800

Year-end small inventory: Do you know all of the 18 Android development essentials?

This article mainly introduces some of the knowledge points in Android development. By reading this article, you will get the following: 1. Check CPU temperature2. Startup Wizard Debugging Related Methods3. View APP Start Time4. Method of judging user,userdebug version5. Modify the default storage path for screenshots6. Resolving the kernel d ...

Posted by chaiwei on Tue, 07 Jan 2020 10:04:11 -0800

Three ways python calls other scripts, do you know anything else?

1. Call python scripts with python #!/usr/local/bin/python3.7 import time import os count = 0 str = ('python b.py') result1 = os.system(str) print(result1) while True: count = count + 1 if count == 8: print('this count is:',count) break else: time.sleep(1) print('this count is:',count) print('Good Bye ...

Posted by dksmarte on Mon, 06 Jan 2020 21:56:28 -0800