What is an aliasIn the process of managing and maintaining a Linux system, a large number of commands will be used, and some long commands or usages are often used, and it is undesirable to repeatedly and frequently enter a very long command or
Important files in/etc directory/etc/sysconfig/network the network configuration information on the specified server/etc/rc.d/init.d/network the network configuration script information Network configuration script, Power on the script file
/boot directory, which is the startup directory, which is the startup file (the directory can not be put things)/dev Device File save directory/etc configuration File Save DirectoryHome directory for normal users/lib System Library Save
A remote connection is a remote connection to another computer. When a computer opens the Remote Desktop Connection function, we can control this computer at the other end of the network, through the Remote Desktop function we can operate the
Useradd Add/create UserUserdel-r Deleting a userID Shizhengwen View User (Shizhengwen is user name)usermod-d Modify the user's profile in the home directory, after the modification also need to copy the original home directory of the configuration
Brief introductionLRZSZ Official entrance: http://freecode.com/projects/lrzsz/Lrzsz is a UNIX communication suite that provides the X, Y, and Zmodem file transfer protocolsWindows needs to upload files to the CentOS server to execute commands
Common physical hard-disk interfaces:The same port: IDE (133MB/S), SCSI (640MB/S)Serial port: SATA3 (6Gbps), SAS (6Gbps), USB (480MB/S)Storage mechanism of mechanical hard disk:The motor drives the disc to rotate, each disc is divided into n
1 Linux performance monitoring-nmon1.1 Nmon downloadDownload path: http://nmon.sourceforge.net/pmwiki.php?n=Site.Download1.2 InstallationUbuntu:Installation: Apt-get Install NmonExecute: Nmon, enter Nmon interfaceInput C M D N T displays information
Configuring the SSHD ServiceTo modify the configuration file/etc/ssh/sshd_config, remove the following two lines of comments:Port #指定sshd服务的监听端口ListenAddress 192.168.44.242
A simple sum sumsum of tow numbers## writen by qinys## date:2018-06-26a=1b=2sum=$[$a + $b]echo "$a + $b = $sum"The above is a simple shell script summationA and B are variables, and the above script means assigning a value to a, a, a, two variables,
/USR/BIN/LD:/usr/local/ssl/lib/libcrypto.a (X86_64CPUID.O): Relocation r_x86_64_pc32 against ' OPENSSL_cpuid_setup ' Can not is used when making a shared object; Recompile with-fpic# #g + + Compile the dynamic library, using the static
1, how to see if a service is turned onService XXX Status #可以看到端口和是否开启2 You can use the $ps command to query a running process;Parameters: The parameters of PS are very many, only a few common parameters are listed here and the meaning-A lists all
1 RPM1 under the Linux operating system, almost all of the software is installed, uninstalled and managed through RPM. RPM is all called Redhat Package Manager software for managing packages under Linux.2Linux installation, in addition to a few core
Configuring IP and Cloning1.cd/etc/sysconfig/network-scripts ls VI ifcfg-eth0Vi/etc/sysconfig/network-scripts/ifcfg-eth02.ipaddr=ip 192.168.83.10netmask= Subnet Mask 255.255.255.0gateway= Gateway 192168.83.2dns1= Domain name Interpretation Server 114
#!/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
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. Permanent modification, valid for all users# Vi/etc/profilePress Keyboard [Shift + G] To add the following at the end of the profile file:Export Java_home =/home/myuser/jdk1.7.0_03Export PATH = $JAVA _home/bin: $PATHExport classpath=.: $JAVA
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