Linux Network configuration----mode One

After installing the Linux minimum system, we type the instruction: Ifconfig does not obtain an IP address, which can be set in the following way. (Linux system version is centos6.9, network connection mode is NAT mode connection)1. Enter the Setup

Linux expect non-exchangeable commands

Expect non-switched command test example: non-switched login to a server, usually the first time to log on to a server, you need to click Yes, and then enter the password, we aim to pass the expect analog input[[email protected] ~]# ssh

1.16 Linux machines log in to each other

After cloning the virtual machine, edit the network card to change the IP

Linux Common Commands--hostname

hostname 显示文件内容尾部Syntax format: hostname "option" "File" hostname [options] [options]Note: There must be at least one space between each element in the hostname command and in the options and options that follow.Option Description:

Linux removes all generated log files from Tomcat

#!/bin/bash#!/bin/bash#exact All log files#计算log文件个数log_number= ' ls *.log |grep log-c '#当log文件数大于0时遍历删除文件中的文件夹If [$log _number-gt 0];thenlist_log_files=$ (LS *.log)#Traverse to delete filesFor log_file in $list _log_filesDo#delete All log

Programming for the OD function of Linux systems

Choice of topics and analysis Title: Write Myod.java with Java MyOD XXX implementation of Linux under OD-TX-TC xxx function Analysis: I think the parameters in this topic should be-tx1 instead of-TX, using the-TX after the results are

Linux Common Commands--tail

head 显示文件内容头部Syntax format: tail "option" "File" tail [options] [file]Attention: Tail command and subsequent options and files, there must be at least one space between each element If more than one file is created, the file name is given

Linux secret key Login

1. Generate the key.The Ssh-keygen command is used to generate key pairs, basic options: -t 指定的密钥类型(rsa,rsa1,dsa,ecdsa)。 -p 指定密语。 -f 指定生成密钥文件的命名。 -c 添加注释。ssh-keygen -t rsa -f key -p 123456 #创建文件名为key,密语为123456,类型为rsa的密钥对。共有两个文件,其中key为私钥,key.pub为公钥。2.

Linux Basic Learning -9.5-soft and hard links

One, soft connection1, how to comeLn-s Creating a soft connection[Email protected] oldboy]# ln-s oldboy.txt oldboy.txt-soft[Email protected] oldboy]# ls-l oldboy.txt*-rw-r--r--. 1 root root 05:10 oldboy.txtlrwxrwxrwx 1 root root 12:09

02-linux System Compression Packaging

bz2

the main advantages of compression are:Save disk space usageSave Network Transmission bandwidth consumptionFaster Network transmissionCompression tools for common suffix names in Linux systems .gz gzip //压缩工具压缩的文件.bz2 bzip2 //压缩工具压缩的文件.tar

Network operation after initial installation of Linux

System environment:[Email protected] ~]# cat/etc/redhat-releaseCentOS Linux release 7.2.1511 (Core) [Email protected] ~]# rpm-q centos-releaseCentos-release-7-2.1511.el7.centos.2.10.x86_64Kernel version:[Email protected] ~]# cat/proc/versionLinux

Linux Interesting commands screen

Screen similar to a container, you can put the current foreground running Application Shell window closed without affecting the operation, and after the nohup a bit similar, but I think it is more useful than nohupUsage 1:ScreenThen it pops up a new

Linux Basic Learning -6.5-How to modify host names

1. Host name configuration file[Email protected] ~]# cat/etc/sysconfig/networkNetworking=yesHostname=brj2. View Host Name[Email protected] ~]# hostnameBrj3. Temporarily modify host name[Email protected] ~]# hostname oldboy364. Permanently modify the

1.3 Understanding Linux

Andriod mobile OS is LinuxWeb sites, games, QQ, are running on the server, the server data is present on the Linux system, and concurrent 2 memories.Linux before the popular system is UNIX (Mac OS)Minix of teaching system developed by university

Linux Common commands

1.xargs combined with find useWhen you delete too many files with RM, you may get an error message:/BIN/RM Argument list too long. Use Xargs to avoid this problem:Find. -type F-name "*.log"-print0 | xargs-0 rm-fThe xargs-0 is used as a

Linux Basic Learning -10.2-wildcard review

1. * EverythingEnd With. txt *.txtEnd With. Log *.logA file in the system that begins with LS.Find/-type f-name "ls*"Locate the file in the system that contains Oldboy.Find/-type f-name "*oldboy*"2. {} Generate Sequenceecho {1..10}echo {10..1}echo {0

Linux Basic Learning -9.3-users and user groups

1, for a file, user classificationMaster, family, strangers.UID and GIDUID indicates ID number of user IDGID represents the ID account number of Group ID user groups2. User classification in the system1) Root Super Admin Emperor 02) Puppet user

Linux View all user and group information

Mainly through the following two commands:cat/etc/passwdCat/etc/groupStep One: CAT/ETC/PASSWD View all user information, details such as:Step 2:cat/etc/passwd|grep user name to find a user, details see:Step three: Cat/etc/group View all group

First time contact with Linux

The first contact with Linux is a very simple small project to restart the project, but because it has not been contacted before, I recorded a simple operation.Before using the Linux server to download the installation Xshell and Xftp, after the

2018-06-05 Linux Learning

20.23 Alarm system Mail engine (UP)mail.sh Contentwhich mail.py content to download here https://coding.net/u/aminglinux/p/aminglinux-book/git/blob/master/D22Z/mail.pyLog=$1t_s=date +%sT_s2=date -d "2 hours ago" +%sif [!-f/tmp/$log]Thenecho $t _s2 >/

Total Pages: 5467 1 .... 4908 4909 4910 4911 4912 .... 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.