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

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 Deeply Understand the Implementation Mechanism of EKS IAM Authenticator

1. k8s Authentication We know that apiserver has the following authentication methods: X509 Client Certs Static Token File Bootstrap Tokens Static Password File Service Account Tokens OpenID Connect Tokens Webhook Token Authentication Authenticating Proxy Typically, we use a binary self-built k8s cluster, or a kubeadm-created cluster, the ad ...

Posted by jenp on Tue, 07 Jan 2020 09:40:10 -0800

Configure SFTP/SSH and multi-user settings under Linux

Environmental Science: CentOS 7,OpenSSH_7.4p1 Summary description: This article mainly describes how to configure SFTP service, how to set up multi-user and user directory permission control, how to control ssh connection; Steps: 1. Configure ssh and Sftp (default Sftp server) at the same time The general root user uses ...

Posted by cgraz on Mon, 06 Jan 2020 14:16:42 -0800

Implementation of non interactive sftp upload and download with Python

Copyright notice: This is the original article of the blogger. It can't be reproduced without the permission of the blogger. https://blog.csdn.net/u010950854/article/details/62233538 Implementation of non interactive sftp upload and download with Python Install Paramiko Python's Library Paramiko implements the ssh and s ...

Posted by j0hn_ on Sun, 05 Jan 2020 10:39:26 -0800

Linux-07-scheduled tasks

In Linux, the timing task is executed by crond program. It is started by default after power on like SSH, network, rsyslog and sysstat. By default, crond checks every other minute to see if there are any tasks to perform. If you have special needs, such as executing once a second, you need to write daemons. View the contents o ...

Posted by rascle on Sun, 05 Jan 2020 09:36:49 -0800

Linux-20180914-vmware virtual machine debond

Problem bond binding was done before to restore the entire virtual machine environment to its original state. Solution First, execute the command line in the virtual machine and turn off the network card (using console, once the remote ssh network card is turned off, the network is also broken) # Check which network cards a ...

Posted by bluetonic on Sun, 05 Jan 2020 08:42:06 -0800

Establishment of enterprise level top master and syndic services and horizontal expansion of master##

1. Restore environment: [server1] [root@server1 _modules]# salt-key -L Accepted Keys: server1 server2 server3 server4 Denied Keys: Unaccepted Keys: Rejected Keys: [root@server1 _modules]# salt-key -d server4 The following keys are going to be deleted: Accepted Keys: server4 Proceed? [N/y] y Key for minion server4 deleteed. ...

Posted by switchdoc on Thu, 02 Jan 2020 13:56:13 -0800

Create or delete users in batch under Linux.

Batch create users: 1. Create the list file users.txt of user name, one line for each user. [root@linuxprobe ~]# vim users.txt andy barry carl duke eric ergou Next, write the shell script useradd.sh. [root@linuxprobe ~]# vim useradd.sh #!/bin/bush read -p "Enter The Users Password : " PASSWD for UNAME in `cat users.txt` d ...

Posted by zuhalter223 on Mon, 30 Dec 2019 22:42:52 -0800

centos7 installation jumpserver fortress machine numerous problems detailed explanation (exchange post)

Prepare materials: ip:192.168.220.130 System: centos7 Reference documents: I found a Chinese version that is easy to see http://docs.jumpserver.org/zh/docs/   1. The first two problems are the configuration file is wrong: So I want to put the configuration file here. If I don't want the vi command, it's recommended to c ...

Posted by bachx on Mon, 30 Dec 2019 12:13:21 -0800