I have been using wdcp (WDlinux Control Panel) for more than a year. It is a set of Linux vps developed based on php scripts in China or a Panel used on the server, using panel operations can completely discard the hassle of Using ssh commands,
What if the Ubuntu system crashes? Here are some solutions: www.2cto.com temporarily enable the shortcut key sudo su echo "1">/proc/sys/kernel/sysrq for long-term use and editing/etc/sysctl. conf sets kernel. sysrq = 1 if X is dead, Left Alt + SysRq
In Linux, how does one arrange text rows in reverse order? 1. command method: www.2cto.com nl filename | sort-nr | cut-f2 this method is very unix-like. Using a combination of multiple commands to complete a function is a typical unix feature.
One linux Command every day (25): linux File Attribute details link: One linux Command every day (1): ls command running (2): cd command http://www.bkjia.com/ OS /201210/163050.html#a linuxcommand every day (3 ): pwd command Export (4): mkdir
Linux memory usage view command view memory: free www.2cto.com total used free shared buffers cachedMem: 8126976 7609376 517600 0 447392 1268632-/+ buffers/cache: 5893352 2233624 Swap: 2928636 572388 2356248 top view process, shift + f can set the
Iptables in CentOS about ping configuration Environment Description: www.2cto.com OS: CentOS 2.6.18-308.16.1.el5 Iptables: iptables v1.3.5 I just learned how to configure iptables in linux. First, I want to start with simple ping control, although
IPTABLES Nat And Manage Nat: Network Address translation www.2cto.com SNAT: change source ip DNAT: change destination ip iptable-t nat-L: list PREROUTING: modify target ip dnat-I eh0 OUTPUT: run dnat postrouting on the data packets generated by the
Xshell connection to ubuntu via ssh solution 1. Xshell client sets www.2cto.com to modify Keep Alive Time 2. Server Side Modify/etc/ssh/sshd_config file, find ClientAliveInterval 0 and ClientAliveCountMax 3, remove the annotator ("#"), change the
In linux, the system function is implemented as a system function: www.2cto.com [cpp] # include # include # include int system (const char * character string) {pid_t pid; int status; if (character string = NULL) // return (1) directly when the
LINUX shell script strategy echo Hello world! Equivalent to echo 'Hello world! 'But not equivalent to echo "Hello world! "(! When placed in double quotation marks, escape \) www.2cto.com simple judgment Example 1 #! /Bin/bash2if [$ UID ne 0]; then3
Unzip the tar command in linuxTar commandTar [-cxtzjvfpPN] file and directory ....Parameters:-C: create a parameter command for the compressed file );-X: Unlock the parameter command of a compressed file!-T: view the files in the tarfile!Note that c/
Method for moving the cursor[Crtl] + [f] Move one page down the screen[Crtl] + [B] Move one page up0 or the function key home, move to the top character of this line$ Or function key end, move to the character at the end of the lineG moves to the
In today's case, we will judge user input.
The Code
#! /Bin/sh
# Validint -- Validates integer input, allowing negative ints too.
Function validint
{
# Validate first field. Then test against min value $2 and/or
# Max value $3 if they are
Few people may realize that after a process calls exit, the process does not disappear immediately, but leaves a data structure called Zombie. Among the five States of a Linux Process, a zombie process is a very special one. It has abandoned
1. elinks-Dump is displayed as textEg: elinks-dump http://www.google.cn-Source is displayed as source codeEg: elinks-source http://www.google.cn2. wget download-- Tries = 10 download attempts-O stores the connection in a file.-R: Enable recursive
As the system runs longer and longer, the size of log files increases. If these historical logs are stored in the system for a long time, a large amount of disk space will be occupied. You can directly Delete these log files, but deleting them
There are many articles on enabling the SSH service in Ubuntu on the Internet, but most of the methods described are not ideal after testing, and remote login to Ubuntu is not possible, the reason is that the ssh-server service is not enabled. The
1.
Use sed to insert line breaks
] # Sed's/\ (. \) {n \}/\ n/G' file
N in braces indicates that a line break is inserted after n characters.
2.
If you view a windows file under vi, the windows line break ^ M will appear. You can delete the
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