Useradd [-parameter] Account-U: After a set of numbers, assign this set of numbers as the UID of this account.-G: After the group name, the group as the initial user group account, the user group GID will be placed in the fourth account/etc/passwd-G:
Dear bo Friends, Hello, I was a bit busy last month, so there is no update blog, this time for you to bring the "Z command" When we use the "CD" command to enter a particularly long directory, it will feel very troublesome, Z command can solve the
Environment: ubuntu16.04Today, when you encounter DNS hijacking, here's a record:1. First how to determine whether to be hijacked:Then query for a domain name that does not existNslookup notexit.comrrrrIf an IP address is returned, it indicates that
Program programmingSelect ExecuteSequential execution: If, caseLoop execution: For, while, untilFor loop listFor i in LIST; Do loop body donefor i in Listdo loop body done650) this.width=650; "src="
Log in to the Centos6.4 System. Example: log in with the root user. Note: If you log in as a non- root user, you will need to add sudo if you are not sufficient to perform certain commands . View SSH is installed. Input command:rpm-qa | grep sshNote:
Bash features1.{} and (){}: Similar collection, Mkdir-p./test/{a,b} Copy/etc/passwd{,.bak} (): the execution result of the reference command, mkdir $ (date)2. Judgment of execution resultsecho $?Success: 0Failure: 1~2553. Common shortcut keysCtrl+l:
The following experimental operations are performed based on the RHEL7.0The steps are as follows:1. Rebooting the system2. Press any key to interrupt the countdown of the bootloader. 3. move the cursor to the entry you want to start. 4. Press the E
Text viewing and editing1. Text Editing commandsVi/vim2. View File Contents command
Command
Description
Command format
Parameters
Cat
Continuously output the contents of a file on the screen
Introduction: Group of Friends in the interview of a company, the company has a problem: I have two sets of machines, a group of machines address 10.0.1.10 to 10.0.1.30,B Group machine address for 10.0.1.60 to 10.0.1.90A local AAA executable file
Tree: View directory Permissionsmkdir: Creating a Directory-P = parent Directory-v = verbose detailed procedureMKDIR-PV/MNT/TEST/{X/M,Y}MKDIR-PV/MNT/TEST/{A,D}_{B,C}Command line expansion:The first will create a directory:/mnt/test/x/m
Linux is usually installed at the time, the user needs to set the hostname, but in daily use, convenient grouping or memory, etc., may need to modify the host name, modify the hostname has 2 kinds, temporary modification or permanent modification,
Focus:
Absolute path: "must be the root directory/write"; Relative path: "Not by/written, but by relative current directory";
Special directories are:.,...,-, ~, ~account needs attention;
Directory-related directives are: CD, mkdir, RmDir,
Chmod Modify file Permissions 755 644-r is recursive let the directory also has the relevant permissionsUgo User User Group other ugo=a a+x=+xChown Modify Ask Attribution- R recursive chgrp Authorized user group now, no, because Chown contains
1. Can traverse data typeList:(1) {1..10}(2) $ (seq 1), $ (SEQ 1 2 10)(3) Cat and other command return values(4) Globbing matching value,/etc/*Array:(1) Statement:Declare-a age= (0 1 2) declares an indexed array, does not declare the default to be
On-line project to the server, sometimes some functions and local debugging is not the same, this time need to set open display_errors = on;First, CD. Go to the upper level, ll list the current directory, with the current directory of the home of
One, port occupancyLook at the logs log file under Tomcat and re-modify the port if the actual address is already occupied.Tomcat starts with 8080 by default, and if you want to change to 80, you need to modify the Server.xml file:vim $CATALINA
Linux File I/O operations (system I/O), linux
We all know that all devices in linux exist as files, so when we need these devices, we need to open them first. Next we will take a look at the file I/O operations in detail.
The file I/O used has the
CentOS6.5 format large disk, centos6.5 format
Question: during a business trip, the following problems may occur when CentOS executes the formatting command.
1 [root @ localhost ~] # Mkfs. ext4/dev/md52 mke2fs 1.41.12 (17-May-2010) 3 mkfs. ext4:
Ubuntu16 kickstart pxe installation system, ubuntu16kickstart
This article does not describe a lot of principles, but mainly explains practices.
Lab environment:
Virtual Machine: vm
Ubuntu: 16.04 (desktop installation required), as the server
Server
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