The existing two-segment code is basically the same, except that the variable is changed and nothing else is changed, but there are different results during execution.Code One:vi back.sh#backup Import File,such as/etc/rc.local/var/spool/cron/Rootip=$
1. File permission processing (ll command to see the permissions of the current file)Drwxr-xr-x. 2 root root 12288 Dec 11:49 binUser file Size file last modified by owning groupDrwxr-xr-x: (d represents a folder, followed by three groups
1. Review the ProcessPs-ef | grep keyword/* keyword for service name */NETSTAT-UNLTP | grep keyword/* keyword is a service name or a port */2. Kill the ProcessKILL-9 Process Number/* Operation be cautious */3. Paging to view filesCat file name |
using the Ifconfig command to see the Linux system has three network cards, in fact, I only need one of the enabled on it, with what command to view or switch the network card, or disable the other two network cards?
Watch
FdiskFDISK-L # Find new disk name/dev/xvdeFdisk/dev/xvde # Edit Disk/dev/xvdeP # View partition statusN # Add a new partitionP # New partition as Primary partition1 # New partition number is 1[Enter] # Default starting from 1 cylinders[Enter] #
Here are a series of procedures for creating users, setting user passwords, and viewing file permissions to set permissions for users.#查看当前用户的信息[[Email Protected]_64_7_centos tmp]# IDUid=0 (Root) gid=0 (root) groups=0 (root)#查看是否存在test用户, and user
Purpose: To record the daily commands used by Linux[20171222] View the hardware component model in a Linux environmentCat/proc/cpuinfo and Lspciview Cpu[[email protected]-redhat- on~]# cat/proc/Cpuinfoprocessor:0VENDOR_ID:AUTHENTICAMDCPU Family:
The following are based on CentOS6.3, where some of the commands are obsolete and are no longer used in CentOS7, please note "Update": CentOS7 change:Centos7one of the major changes in. 0 is the switch to SYSTEMD. It is used to replace SYSV and
0. IntroductionIncident emergency refers to the first time the system problems, error troubleshooting, intrusion process restore forensics, intrusion source trackingand other emergency treatment.Knowledge point 1, the common analysis start point(1)
1. Introduction to SEDSed, stream editor, line editor, because of its character syntax, is equivalent to a specialized language.Sed is a stream editor that processes a single line of content at a time. When processing, the currently processed rows
Linux system is a typical multi-user system, different users in different positions, with no permissions, in order to protect the security of the system, the Linux system for different usersAccess to the same file (including directory files) is
1.touch command for creating blank files and modifying file time: (Touch [Options] [file])There are three kinds of times for files in Linux:Change Time (mtime): Content modification time (not including permissions)Change Permissions (CTime): Change
ISCSI:(Iscsi:internetsmallcomputersysteminterface) Internet Small Computer system interfaceiSCSIis a set of SCSI instructions that can be run on the upper layer of the IP protocol for use by hardware devices, which can be implemented inIP
Total: directory operations; file operations; process operations; packaging compression; system view; user actions1. Directory operationView: Ls;ls,ll--ls-lAccess directory: CDNew Catalog: mkdirMove: MV moved files to the directory name last
Common directivesLS Display file or directory-l list File details L (list)-a lists all files and directories under the current directory, including Hidden A (all)mkdir Creating a Directory-P Create directory, if no parent directory, create p (parent)
Under Linux, how to rename a garbled fileMethod One:Command format:MV $ (ls | Egrep"[^a-za-z0-9.-]"ls | Egrep"[^a-za-z0-9.-]"? °-?ˉ? MV $ (ls| Egrep"[^a-za-z0-9.-]") tandao.txtMethod Two:Command format:find411380mv {} new name \; 41
Linux command line shortcut keysInvolves fast cursor movement under the Linux command line, command editing, post-editing execution history commands, Bang (!) commands, control commands, and so on. Make basher more efficient.
Common
Loaded in: https://www.jianshu.com/p/81b648b1d572 build Environment1, Ubuntu14.04.5 Server, other versions are also available.2, Python3.5.2.3, theCentOS system installation Python3 in this tutorial also did the corresponding explanation.Building
Environment:Server side: Linux + jdk1.7.0_75 + Tomcat 7Local: Win + jdk1.7.0_55First, modify the/etc/hosts fileHostname-i if 127.0.0.1 is displayed, modify/etc/hosts to replace 127.0.0.1 with the real IP of the Linux serverIi. Modification of
Linux and Windows inter-pass filesFirst install a package Lrzsz yum install-y lrzszLinux testb.txt to WindowsWindows transfers RZ to LinuxView/ect/passwd, Box is the newly added userThe first field is the user name, which is a string representing
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