2018-06-07 Linux Learning

20.31 Expect script synchronization fileAutomatically synchronize files#!/usr/bin/expectSet passwd "123456"Spawn Rsync-av [Email protected]:/tmp/12.txt/tmp/Expect {"Yes/no" {send "yes\r"}"Password:" {send "$passwd \ r"}}Expect EOFOperation

Linux Fundamentals (iii)--File Rights Management & CD-ROM, mirroring mount

Linux file Rights Management change document attributionls -ld 文档... 查看文件归属chown -R(目录) 属主 文档...chown -R :属组 文档...chown -R 属主:属组 文档... 同时修改属主、属组Access rights读取 —read写入 —write可执行 —excute‘如果用户对一个文件有

2018-06-04 Linux Learning

20.20 Alarm System Main scriptmain.sh Content#!/bin/bash#Written by Aming.Whether to send mail switchExport send=1Filter IP AddressExport addr=/sbin/ifconfig |grep -A1 "ens33: "|awk ‘/inet/ {print $2}‘Dir=pwdOnly the last level directory name is

22. Linux process and signal---process creation (cont.)

22.2 Parent-Child Process action fileFile operations are made up of two modes:IO System invoke Operation fileStandard C IO Operation fileLook at the code:1#include 2#include string.h>3#include 4#include 5#include 6 7 intG_val = -;//global variables,

0 Simple commands for Basic Learning Linux (first week)

The command is followed by a # indicating that it is a super administratorThe command is followed by a $ representation that is an ordinary userTTY to see which terminal is located[[email protected] ~]# cat/etc/shells View the shell installed on the

Linux disk partitioning (i)

Hard drives are an indispensable storage device in today's it world, requiring hard drives, whether it's a home PC, workstation or server. With the development of technology, hard disk technology is also increasing, interface diversification

Linux Network Pipeline--network-related command ping,

Ping[Email protected]/]#PingWww.baidu.comPING www.a.shifen.com (61.135.169.121) About( -) bytes of data. -Bytes from61.135.169.121: icmp_seq=1Ttl= - Time=71.7Ms -Bytes from61.135.169.121: icmp_seq=2Ttl= - Time=72.1Ms -Bytes from61.135.169.121:

Check Linux memory usage

1. To view the process memory usage of the root user, you can use the following command:$ top-u OracleContent Explanation:PID: ID of the processUSER: Process OwnerPR: The priority level of the process, the smaller the higher the priority is

Beginners Learn the difference between Linux:&> and >

">" output redirect, using format:Commands > DocumentsFunction: Redirects the standard output to a file and overwrites the contents of the file, which is called the callout output, and only outputs the correct command information to the file."&>" is

SVN linux Command

1. Delete files in SVN repository directly--SVN delete path-m "Delete test Fle"Example: SVN delete svn://10.1.1.227/bank/ld_sys/pubtags/v1.1.1/update/list/ld_sys.list-m "Delete the list file"2. Delete the file locally and submit it to the SVN

Linux common commands (2)

1.# represents a privileged user (for example: Root), $ represents a normal userBoot prompt ogin: Enter user namePassword: Enter password user is the system registered user successfully login, can enter the corresponding user environment.Exit

Different connection terminals log on to Linux by key mode

Recently encountered the need to use a key login situation, different connection terminal situation is not the same, so to summarize thisFirst, the key pair generationNote: The local host and destination host need to be ping1) Verify that the server

Common basic commands for Linux: The-sed of the Three Musketeers command

Sed is a very powerful file processing tool, mainly in the behavior of the processing units, you can replace the data rows, delete, add, select and other specific workFormat: sed [option] [command] [file]Common commands:A: NewC: ReplaceD: DeleteI:

Build Zen paths with Linux

1. Open source version of the installation package download (64-bit download 64-bit, 32-bit check 32-bit)[Email protected]~]# wget http://dl.cnezsoft.com/zentao/9.0.1/ZenTaoPMS.9.0.1.zbox_32.tar.gz2. Unzip the installation package directly into

Document-linux IO mode and Select,poll,epoll

Document-linux IO mode detailed 1. Concept DescriptionBefore interpreting, there are a few concepts to be explained:-User space and kernel space-Process Switching-Blocking of the process-File descriptor-Cache I/O1.1 User space and kernel spaceNow

Linux System Time Acquisition method

Linux Operating System Computing time:Main function: Time localtime gmtime asctime ctime mktimeDifftime strftime Gmstrftime1.time () functionPrototype: time_t time (time_t * timer)Function: Returns a time_t type of data representing the number of

Linux system view hardware and System Information Common command summary

Uname–a # Linux System Information command to view kernel/Os/cpu informationhead-n 1/etc/issue # View OS version, is the number 1 not the letter LCat/proc/cpuinfo # Linux System Information command to view CPU informationhostname # View Linux System

Linux study notes 14 weeks two lessons (May 10)

14.4 Exportfs Command#exportfs-arv//re-mount#vim/etc/exports/TMP/192.168.133.0/24 (Rw,sync,no_root_squash)14.5 NFS Client Issues#mount-T Nfs-o nfsvers=3 192.168133.130:/tmp//mnt/specified version 3, re-mount#mount-T nfs-oremount,nfsvers=3 192.168133.

Building a DNS master-slave server in Linux redhat6.5

Introduction to DNS Master-slave server:Primary DNS server:To maintain the server that resolves the analytic library in the domain that is responsible for parsing;From a DNS server:"Replicate" (zone transfer) a copy of the parse library from the

Cloud computing Course system, how to run Linux in Win10

Windows and Linux systems have always been incompatible, and the new IN10 system is perfectly compatible with Linux, which has to be said to be a developer's fairy tone. Of course, this Linux system is not installed by default, users need to install

Total Pages: 5467 1 .... 2062 2063 2064 2065 2066 .... 5467 Go to: GO

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.