LinuxSh script exception: Bad Interpreter: no such file or directory
From: http://huangchaobiao111.blog.chinajavaworld.com/entry/4484/0/
Run the. Sh script in Linux./bin/sh ^ m: Bad Interpreter: no such file or directory is abnormal.
Analysis:
MAN: manual refers to the manual. You can use this command to query the usage of other commands.
PWD: Print working directory indicates a password.
Su: Switch the swith user to the root user.
CD: Change directory switch directory
Ls: List
Today, Rm-RF. * deleted an important email directory. Fortunately, it was restored through extundelete.Write down the operation process:1. PreparationsMainly throughExtundelete 0.2.0 Recovery completedDependent on two packages
Sudo aptitude
Ubuntu 8.04 was tested on the virtualbox virtual machine. 1. Download the kernelSource code Http://www.kernel.org/ Download the latest stable version of the Linux kernel is: 2.6.25.7. Click "F" to download it.Http://www.kernel.org/pub/linux/kernel/v2
When a new server is deployed, No matter what parameter-F is added or whether the request is overwritten, this is intolerable when a large number of CP overwriting operations are performed.
Copy the files under directory A to directory B
CP-r a/*
1) count the number of files in the current folderLs-L | grep "^-" | WC-l
2) count the number of directories in the current folder
Ls-L | grep "^ d" | WC-l 3) count the number of files in the current folder, includingLs-LR | grep "^-" | WC-l 4)
ArticleDirectory
Parameters
Option
Example
Tips
Compare two files
CMP [Options]File1 file2
CMP is used to compare two files in bytes. If the two files are the same, CMP does not display any content. Otherwise, CMP
View disk space, DF command
DF-lH
You can use netstat to view network port information.
Display netstat-N with IP Address
Netstat-N | grep Reg can add some filtering information
Netstat-N | WC-l count the total number of net stat-n
Some netizens said that the log I wrote was too simple. Well, I will give it a little more details. In fact, it is very difficult: For details, don't want to see it. For simple reasons, you can't understand it!
InHomezzIn the data transfer process
In March 31, Linux founder Ranas torvalz advocated increasing the number of regular performance tests on the Linux kernel to promptly identify the causes of performance degradation.
Currently, only a few of the latest linux kernels have
For Linux systems, whether it is a central processor, memory, disk drive, keyboard, mouse, or user, it is a file. Linux system management commands are the core of its normal operation. After familiarizing yourself with common Linux File Processing
This section describes the installation and configuration of some common plug-ins and tools.
1. eaccelerator
Eaccelerator is a free and open source PHP accelerator that optimizes and dynamically caches content,
This improves the cache
I. kernel Introduction
Kernel is the core of an operating system. It manages system processes, memory, and device drivers.
Program File and network systems determine the system performance and stability.
An important feature of Linux is its
Source
Http://blog.chinaunix.net/space.php? Uid = 20587912 & Do = Blog & id = 405022
Windows Souce insight is a very classic C compiler. Both application development and compilation are quite good. Linux has kcodes, but the function is not as good as
To install L I n u X, you must prepare hard disk space for it. This hard disk space must be used with other operating systems installed on your computer (such as wi n d o w s, o s/2 or another version of L I n u X) the disk space used is separated.
Summary of common Linux commands:
I. Common commands:
1. Date: print or set the system date and time
2. stty-A: You can view or print control characters (CTRL-C, Ctrl-D, Ctrl-Z, etc)
3. passwd: print or set the system date and time (view with passwd-
Reference :《Analyze the Linux Startup Process"
Appendix:Analyze the Linux Startup Process
Taking redhat9.0 and i386 as examples, this article analyzes the Linux Startup Process from user power on to command line prompt on the screen. It also
Despite many similarities, there are still many differences between Linux file systems and Windows file systems like MS-DOS:
In a MS-DOS, a drive letter represents a different storage device (for example, a: floppy disk and C: Hard Disk ). in
The stat System Call series include fstat, stat, and lstat, which are used to return "Related File status information". The difference between the three is that the source file setting method is different.
1
First, I would like to introduce a very
In windows XP and linux, Ubuntu is uninstalled. Many students use the method of directly formatting and deleting linux partitions in windows, however, unfortunately, if you delete the linux partition and restart the computer, the grub> symbol will
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