Restricted bash
If Bash is started with Rbash as the program name or if the command-line argument has the-r option, the startup Shell will be limited in some features. The performance is not to do the following actions:Change working directory by
chmod, this Linux command in the previous VPS host installation environment and compile the script also need to use, used to set the site, file directory permissions, such as we give the site a directory and file set readable, read-only, etc., to
Requirements: All files in the/data directory are CP to the/var/backups directory, and the file is named on the day's date. For example (/var/backups/data.20151103). And to determine the day before the file in the directory and the difference, if no
The website is not open, SSH is not connected, this is a lot of webmaster pain. The following example 3 ways to determine if the IP is blocked.
1, routing Analysis method
# traceroute 212.239.8.22//linux downTraceroute to 212.239.8.22 (212.239.8.22
Vulnerability backgroundA very serious security vulnerability (vulnerability reference https://access.redhat.com/security/cve/CVE-2014-6271) has been found in the Linux official built-in bash. Hackers can exploit this bash vulnerability to fully
Ubuntu contains 2 types of Remote Desktop: Vino-server and VNC Server.
Where Vino-server is Ubuntu's self-contained Remote Desktop server, which is easy to open under System-> Preferences (Preferences)-> Remote Desktop, and can then be used with
Use syntax:
Chkconfig [--add][--del][--list][System Services] or Chkconfig [--level ][system Services][on/off/reset]
Each service managed by Chkconfig needs to be annotated with two or more lines of script under the
Create a file (Touch) command
The Linux Create File command is primarily used for touch commands, which can be used to modify the access time of the file, modify the time, or, if no time is specified, the current time, and if the specified file
Cron is a regular execution tool under Linux that can run jobs without human intervention. Because Cron is a built-in service for Linux, it does not automatically get up and you can start and close this service in the following ways:/sbin/service
Order to enter VI
VI FileName: Open or create a new file and place the cursor at the beginning of the first line
VI +n FileName: Open the file and place the cursor at the beginning of nth
VI + FileName: Open the file and place the cursor at the end
Several useful Unix command shortcuts
1.!$ Bash or zsh represents the last parameter of the previous command, for example, where the!$ represents file-b, it is convenient to view the contents of the File-b file;
Copy Code code as follows:
$
Table-driven method for data-driven programming the sample code in this article is in C language.Previously introduced data-driven programming
talking about: What is the detailed explanation of data drive programming》。 It introduces a simple
A brief introduction of the decompression command
Tar command
-C: Set up compressed files
-X: Decompression
-T: viewing content
-R: Appending files to the end of a compressed archive
-U: Updating files in original compressed package
These five are
User-space programs cannot execute kernel code directly. They cannot directly invoke functions in kernel space because the kernel resides on a protected address space. If a process can read and write directly to the kernel's address space, system
For the context of Linux has been no special attention to its reasonable scope should be how much (about the concept of context switching, there are a lot of explanations on the Internet, again no longer repeat), the occasional notice during the day,
(1) Get help information: ManMan command get command Help info 1.gzMan profile file name get profile Help (no path required) 5.gzExample: Man lsMans ServicesView Profile man 5 passwd(2) Get command Short message: WhatisExample: Whatis ls(3) Get
This article is limited to recording your own memory leak tracking notes. may not be very well suited to the situation with everyone. And the method is not very smart. Only record, can provide a better idea. first, to ask the debug program what
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