An error occurred while executing the script in Ubuntu system "Source command not found in sh shell"This is actually a script that executes in Ubuntu by default with dash, not bashby command#LS -l 'whichsh/bin/sh --dashWe found that the SH used by default in the script actually corresponds to dash, not bash. In order to resolve this error, we need to modify the c
I often in Linux by compiling the. sh file to build the project, has been no problem, the code has not changed, but the compilation today, but the error is prompt:Then I was very puzzled to see my. sh file, which has a lot of [], are these errors, but has been no problem.Later found, because Ubuntu default sh is connected to dash, but also because of the dash and
This article describes the VPN technology in detail from the specific concepts, solutions for different users, as well as its interfaces and implementation functions.
VPN is short for Virtual Private Network.
As the name suggests, we can regard a virtual private network as an internal private line of an enterprise. It can establish a proprietary communication line between two or more enterprise intranets co
Write down the Simple Method for installing *. sh and *. bin In Ubuntu. *. Sh File Installation Method: run the terminal to the file directory 1. enter sudosh * on the terminal *. sh directly run 2. enter sudochmod + x * on the terminal *. sh and enter sudo. /*. sh can be in
First, direct./plus file name. SH, if running hello.sh for./hello.sh "hello.sh must have x permission"Second, direct sh plus filename. sh, such as Run hello.sh for SH hello.sh "hello.sh can have no x permission"1 , CD to. sh files in the same directory cd/home/test/shell/2 ,
Always thought that in the shell script # is to represent the annotation function, also at the beginning of the script #!/bin/sh also just tell the user this is a shell script, and recently checked the next, only to find that this is not the meaning, share the following article.Transferred from: http://www.cnblogs.com/EasonJim/p/6850319.htmlFirst, meaning#!/bin/sh means that this script uses /bin/
Because today wrote a small script, dead or alive unsuccessful, always reported file or directory does not exist, asked our horse classmate's normal wording, found only the difference between the script head, that is, today this article to talk about the #!/bin/sh and #!/bin/bash.
This article references: https://www.cnblogs.com/aaronLinux/p/6885288.html and http://www.cnblogs.com/baizhantang/archive/2012/09/11/2680453.htmlOne: Explanation#!/bin/
. conf file, and remove #
Net. ipv4.ip _ forward = 1
5. Add the VPN user name and password, edit the/etc/ppp/chap-secrets file, and enter the file in the following format:
Username pptpd password *
6. Write the forwarding rule as a file, run the command vi/etc/pptpdfirewall. sh, and enter the following content:
Sudo/sbin/iptables-t nat-a postrouting-s 192.168.0.0/24-j SNAT -- to-source your VPS publ
Back up the code uploaded by svn in Ubuntu and name the backup file svn_backup + current time. dump File (for example, svn_backup20100525.dump) 1. write a script file (backup. sh) sudotouchbackup. sh create a script file and edit the file sudovimbackup. sh is the content of the configuration file. The Code is as follows :#! /Bin/shsudosvnadmin
Back up the svn up
If you only need to modify the content of a module, but you need to execute make every time, the last wait is a long time. To compile a module, you only need to execute mm in the directory or its subdirectory of your module to compile a separate APK!Build/envsetup. Sh provides several useful shell commands, which can be introduced to the shell environment by using $. Build/envsetup. Sh (note point number) o
A medium-level Linux user must always execute the. sh file. Of course, you can double-click the file under the graphic interface, but it is a waste of time.Now we will introduce the first method: (In ubuntu)First, open a terminal.Enter sudo suThen enter the password. In this way, the root user permission is obtained.Then find the file (use commands in the terminal, of course, you can choose not to open a file manager .)Execute./
Tag: Run enter to toggle its dash Linu ECIF spec systemUbuntu Toggle default sh for bash or dash1 bash and DashStarting with Ubuntu 6.10, the default is to use Dash (Thedebian almquist shell) instead of bash (the Gnubourne-again shell).But the login shell is bash. The reason is that dash is faster and more efficient, and it complies with the POSIX specification. Ubuntu runs a lot of shell scripts when it starts up, and using dash can speed up startup.
Editor's note: when building a VPN network, when your VPN connection is successful, although you can access the internal network of the Headquarters Company, you cannot access the Internet. What is the problem?
VPN virtual private network technology, for remote access to the company's information resources, compared with the dial-up connection service has been r
DX provides a set of basic functions used to operate sphereical harmonic, such as d3dshadd, d3dshdot, and d3dshevaldirection. One of them is d3dshprojectcubemap, which is used to obtain the sh coefficient from cubemap projection, it is quite useful. Generally, different sampling points need to be set when light probe is used in the game scenario, and then the corresponding probe is generated and the sh coef
When bash executes a program, it only looks for it from the path. If the program is not in the path, the specific path must be provided ,. /run. the dot before sh indicates the current directory.
Several forms of bash calling programs:
1. In Path, directly call: Run. Sh
2. if the path is not in the path, the complete path:/tmp/run. Sh is provided.
3. If it is no
I. Problem Description
Installation environment: Oracle Linux 6.1
Database: 10.2.0.1
When Oracle 10g RAC is installed, an error is reported when root. Sh is executed on the first node, as shown below:
[Root @ Rac1 ~] #/U01/APP/10.2.0/GRID/root. Sh
Warning: directory '/u01/APP/10.2.0' is notowned by root
Warning: directory '/u01/app' is not ownedby Root
Warning: directory '/u01' is not owned byroot
Checki
Introduction of the. sh file. SH is a Linux script file, and we can execute some commands through . SH , which can be understood as a. bat batch file for Windows.Second, point command (.)The . Command and source are the same command, which can be understood as the abbreviation for source , the abbreviation Point command .Iii.
With the built-in routing and Remote Access capabilities of Windows Server systems, it's no novelty to set up a VPN server, but by this method, a series of complex and cumbersome settings are required, and it is clear that the erection of "engineering" will make many novice users discouraged! In order to be able to chat between, can let you rookie friends easily set up a VPN server, this article deliberatel
When writing a script in Ubuntu, an error such as a piece may occur occasionally, probably because the sh Command Used in Ubuntu uses dsh instead of bash1. When using this script, such as shsh06.sh, errors may occur, so no errors will occur when bashsh06.sh is used. 2. You can also add the running permission to the script and use it directly. /sh06.
/bin/shwith /bin/bash the distinction, the : intercept string is not POSIX standard.Difference
shGeneral set bash of soft chains (symlink)[plain] view plain copy print?
Ls-l/bin/sh
lrwxrwxrwx 1 root root 4 Sep 04:45/bin/sh, Dash
In a generic Linux system (exceptions FreeBSD , OpenBSD etc.), using sh the call execution script
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.