In Linux, to see if a process is consuming memory, execute the following command to replace the [PID] with the corresponding process's PID number:
The code is as follows:
Cat/proc/[pid]/status
Description
In addition to memory information, the
The SAR (System Activity Reporter report) is one of the most comprehensive performance analysis tools available on Linux, and can be used to report the activities of the system in many ways.Includes read and write files, usage of system calls, disk
GNU GRUB (Grand Unified bootloader "Grub") is a multiple operating system startup program from the GNU Project. Grub is an implementation of the multiple-boot specification, which allows users to have multiple operating systems in the computer at
1, prohibit the root user login ssh
The code is as follows:
#vi/etc/ssh/sshd_config
Put
The code is as follows:
Permitrootlogin Yes
To
The code is as follows:
Linux file structure, there is a very magical directory--/usr. has not been how to pay attention to it before, anyway, the program is installed in the inside, and there is nothing to be traced to things. Until one day, fedora to simplify the entire
After a certain treasure purchased the monthly payment of the VPS, installed Linux under the CentOS system, installed a Web server environment impressively found only 10G partition available (df-h), but when the original purchase, package there is
The Little devil has just come back from a field trip. Also finally can restore the update ~ today and you share is how to Mount Aliyun's "Data Hard Disk" (Aliyun opened after the default only mount the "system disk"), to this so-called "data disk",
Internal commands are transferred into memory when the system is started, and are resident memory, so the execution efficiency is high.The external command is the software function of the system, which is read into memory from the hard disk when the
When the Inux is installed, its default hostname is localhost.
It takes 3 steps to modify the Linux host name:
1. Modify the current host name using hostname.Hostname new-hostname
2. Modify the/etc/sysconfig/network configuration file so that the
Top command: TopThe display is as follows:The three values after the load average are 1 minutes, 5 minutes, and 15 minutes of load. The data is checked for an active number of processes every 5 seconds and then calculated from that number. If this
The Log settings for the FTP server can be implemented by modifying the primary configuration file/etc/vsftpd.conf. Options related to log settings in the main configuration file include Xferlog_enable, Xferlog_file, and
Recently, the company has a need to use multiple ADSL access to a Linux server and do NAT use, but also to achieve bandwidth load balancing. After searching for some information on the Internet. Record the important points in the process and stay in
Intranet machine Power Add account, no echo, set password is difficult to get, the following is to add a root level account and set password commandUseradd-p ' OpenSSL passwd-1-salt ' lsof ' admin '-u 0-o-G root-g root-s/bin/bash-d/usr/bin/lsof lsof
The most important thing is the meaning of each parameter in the result, here the simple list is as follows:
①mem is your physical memory, such as my server is 8G, that total is: 8107;used + free = total.
Note here the understanding of used and
When installing the client, the package and server are the same, but the Configure configuration parameters are different.
Add users, user groups, unpack packages
The code is as follows
Copy Code
tar [-cxtzjvfppn] files and directories ....
Example:
Example one: Package all the files in the/etc directory into a/tmp/etc.tar
[Root@linux ~]# tar-cvf/tmp/etc.tar/etc [Root@linux ~]# tar-zcvf/tmp/etc.tar.gz/etc [Root@linux ~]#
Linux Delete Folder command
Linux Delete directory is very simple, many people are still accustomed to using rmdir, but once the directory is not empty, into deep distress, now use the RM-RF command.Direct RM is OK, but add two parameters-rf namely:
When we're using Linux for a while, we're not going to be satisfied that we're always working on a system without any changes, but we are eager to upgrade our Linux as we do in Windows. Linux, on the other hand, is an open system, with new software
Find large filesEg: Find files larger than 10MB in current directory
The code is as follows:$ find. -type f-size +10000k-exec ls-lh {} \; | awk ' {print $ ': ' $} 'Sample output:./.kde/share/apps/akregator/archive/http___blogs.msdn.com_mainfeed.aspx?
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