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
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
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:
#!/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
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
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
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
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
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
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
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
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
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
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
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