VI Visual Interface
Three ways of working
1. Command Method
For example, when querying/session, we press/in command mode.
2. Input Method
You can edit the file here.
3. Ex escape
They all start with a colon (:), for example, WQ: Q!
Recently, the company's machine room has a bad air conditioner, leading to frequent problems with Linux servers used for development and testing. The disk is the most vulnerable. After several crashes and brute force restarts, it cannot be started
1. Restart readhat Linux sshd
/Etc/init. d/sshd restart
2. Problem: SSH: Permission denied (publickey)
If this error occurs when you use SSH to access other machines, the Public Key is usually incorrect. You can package. SSH and transfer it
There are two methods to modify the host name in Linux: 1. Use the hostname command method: [root @ hening ~] # Hostname ABC [root @ hening ~] # Su [root @ ABC ~] # do not use this command to modify the host name. It is valid only for the
Script 1:
The starttest. Sh content is as follows:
#! /Bin/shJava-jar test. Jar & # Note: It must be executed in the background. Otherwise, no PID is generated.Echo $! >/Var/run/test. pid # Write the PID corresponding to the jar package startup
A gateway is a vro in a network and acts as an access point to access other networks. When the IP address does not match the IP address in the route table, the default gateway is used.
Use netstat-R or route-N in Linux to view the default gateway.
Method 1:
First, use Alt + F2 to open the running interface, and then enter gnome-session-properties to add the startup Item. You only need to add the absolute path of the file to be started in browsing.
And then restart to OK .....
Method 2:
The
The virtual address space in Linux is also 0 ~ 4G. The Linux kernel divides the space of 4G bytes into two parts. The maximum 1 GB (from the virtual address 0xc0000000 to 0 xffffffff) is used by the kernel, which is called "kernel space ". The lower
1. Linux is an open-source operating system, but windows is not;
2. Windows uses a backslash to separate directories. Linux uses a forward slash to separate directories;
3. Windows is case insensitive to file names and Linux is sensitive to file
Du view disk capacity and disk space
Create a new file system in mkfs
CMP compares two files and indicates the first difference
Diff compares two files, listing all different places
Cat displays the file content. If the file content exceeds one
Before reading this article, if you do not know about VI, please first read the article below.
VI. Command Input ex escape
Http://blog.csdn.net/sxzlc/article/details/7407742
Bytes ----------------------------------------------------------------------
Download and installDownload httpd-2.2.6.tar.gzfrom http://httpd.apache.org/and upload it to linuxlater.Decompress the tar-zxvf httpd-2.2.6.tar.gz, A httpd-2.2.6 directory appears in the current directory, and then run the following commands in
File function: configure information before Logon
File Name:/etc/issue
Note:
Some escape characters in this file indicate special meanings:
/D current date
/L display the number of terminals currently
/N display the host's network name
/O display
Search Path for loading the dynamic library by program execution:
[1] First, check whether the. dynamic segment contains an item named dt_rpath (which is a list of search directories of library files separated by colons ). This item is added by
Chinese characters of Websphere logs in Linux are garbled
Operating System: Red Hat 3.4.4-2Middleware: IBM WebSphere Application Server-Nd, 6.1.0.17Chinese characters can be recognized in Linux without garbled charactersEcho $ LangZh_CN.UTF-8
Echo
Hugepage refers to the large page memory management mode. Compared with the traditional 4 kb common page management method, hugepage is more efficient for managing large memory (more than 8 GB. This article describes what is hugepage and some
On the Linux bash shell single terminal interface, we often need to manage or complete multiple jobs at the same time, for example, execute compilation, implement data backup, and execute SQL queries and other tasks. All of the above work can be
To work on Linux, you often need to use the kill command to stop the process. In general, you can use the ps command to find the process ID to be aborted and directly use "kill PID. However, this command occasionally becomes invalid and the process
From: http://blog.csdn.net/wenxy1/archive/2008/12/23/3591243.aspx
/Proc//mapsView how the virtual address space of a process is used.The file has six columns:Address: Library address range in the processPermission: Virtual Memory permission, r =
Http://www.cnblogs.com/88999660/articles/1581524.html
The most powerful Editor-vi
VI is a screen editor provided by all UNIX systems. It provides a Windows device that allows you to edit files. Of course, people who know little about Unix
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