1.linux view CPU and memory usageView memory consumption percentage:[Email protected] ~]# Free-m | Sed-n ' 2p ' | awk ' {print ' used mem is "$" m,total Mem is "$" m,used percent is "$3/$2*100"% "} 'Used mem is 15765m,total mem are 15949m,used
http://freeloda.blog.51cto.com/2033581/1189084
1. To see if LM is available in the Cpuinfo, LM means long mode, if LM indicates support for 64 bits, the specific command is as follows:
1
#cat /proc/cpuinfo | grep flags
Increasing the load capacity of the server is an eternal topic. In the case of a server with limited CPU and memory resources, the maximum performance of the crushing server is the ultimate goal. To increase the load capacity under the Linux system,
Cat Command IntroductionThe original meaning of the cat command is connection (concatenate), which is used to connect multiple file contents and output to the standard output stream (the standard output stream defaults to the screen). In practice,
3. Rescue modeWhen booting into the BIOS, the disc boot set to the front, start the computer, see the following screen, select the third line;650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/5B/24/wKioL1UAaW6DRwIXAAJoar1c8hs953.jpg "style="
What about forgetting the root password with Linux? Restart the host before the physical host into single-user mode and change the password.First, enter the single-user mode,1. Restart the machine, press any key in the interface650) this.width=650; "
It's just a summary of some common commands, and the rest will be done later on in the Kali to gain insight intopwd This command prints out the current directoryCD entry to a directory./ refers to the current directory.. / refers to the top-level
#su [OPTION] USERNAME switch users[OPTION]-Change the current working environment PWDNull default switch to root userBy default, SU only switches paht and users to username and does not change pwd. Use-and landing in username is essentially the same.
rpm Common Command parameter list
1. Install a Package# RPM-IVH2. Upgrade a Package# RPM-UVH [Note u must capitalize]-I Installation-U Lift Line installation-H to # Displays the installation progress-V Show additional information3. Remove a
Pip is similar to Yum in Redhat, and it's easy to install software. This section details the installation of PIP and how to use it, and I hope the article will help you understand the installation and use of PIP.1. Pip Download and install1.1 Pip
Title: Convenient john crack Linux password batch processing--2011-11-23-17:31Custom file hash name and dictionary name batch processing (single file):@echo offColor 0aSetlocal enabledelayedexpansionTitle Cracker the password!Echo is backing up the
Use of anti-quote$ echo ' basename \ ' pwd\ ' # The command substitution based on the anti-quote is embeddable, but the inverted quotation marks of the embedded command need to escape the root $ d=$ (date) #除了反引号可以用于命令替换 with a backslash
tested successfully under Rhel 5How to disable IPv6 under Linux:From: Yangzhigang blog (http://yangzhigang.cublog.cnWhat I do here is Redhat Linux, in the system ifconfig or Netstat-an will show IPV6 results, such as: [[email protected] conf]#
Cut log files at 11 o'clock 50 and delete logs for more than 30 days every night# VI log.sh#!/bin/bashlog_path=/doiido/apps/tomcat/logsd= ' date +%y-%m-%d ' d90= ' date-d ' 30 Day ago ' +%y-%m-%d ' CD ${log_path} && cp catalina.out $log
To turn off the firewall:
Firewall can be used to restrict the use of some ports, can be through the Linux command relationship to it, the corresponding instructions:To view firewall information:#service iptables StatusYou can see the state of the
The problem with binding (BIND) ports mentions that a network application can only bind to one port (one socket can only bind one port).In fact, by default, if a socket for a network application is bound to a port (8000), the port (8000) cannot be
directive: pushdSwitch between different directoriesIn the command-line mode, when you need to switch between different directories to find the constant input directory is very troublesome, this time need to use the PUSHD functionpushd working
Add your own kernel and ramfs based on the existing Linux LiveCD
Objective: to add your own kernel and ramfs based on the existing Linux LiveCD
Original LiveCD: install-amd64-minimal-20130711.iso (gentoo)
Working System: CentOS
1. Copy the content
View the Linux version and linux version
How can I view the version information used in Linux? The following articles collect and organize some common methods for viewing the Linux system version. Since only Oracle Linux, Centos Linux, and Redhat
Installation and configuration of the Linux NFS serverI. Introduction to the NFS service NFS is short for the Network File System, that is, the Network File System. An agreement for the use of distributed file systems, developed by Sun, was
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