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.
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
Recently handle an OracleGridinfrastructure (GI) installation problem, failed during the execution of root. sh, and displays the following error: DiskGroupOCRcreationfailedwiththefollowingmessage: ORA-15018: diskspecificationdevvxrdskdg_db01lv_vote1m
Recently, an Oracle Grid infrastructure (GI) installation problem was solved. sh process failed and the following error is displayed: DiskGroupOCRcreationfaile
Linux execution. sh error: badinterpreter: Nosuchfileordirectory problem when you start tomcat on a Linux system, encounter the following error message: badinterpreter: Nosuchfileordirectory.30/bin/catalina...
Linux execution. sh: bad interpreter: No such file or directory: When you start tomcat on a Linux system, the following error message is displayed: bad interpreter: no such file or directory.30/bin/ca
Solve the problem of "[: XXXX: unexpectedoperator" when compiling the. sh file in linux.
I often compile a. sh file in linux to generate a project. It has never been a problem before, and the code has never changed. However, when compiling today, an error is prompted:
Then I thought it was hard to understand. I checked my. sh file, and many [] of them repor
Tags: style HTTP color using OS strong file dataIn the process of software development, it often involves the problem of changing the database script file from SH format to SQL format under Linux. This article takes an actual script file as an example to illustrate the process of format conversion.1. sh File contentsThe file name in this article is example.sh, which reads as follows:#!/bin/bashfunction Init
This is a creation in
Article, where the information may have evolved or changed.
Mac Tool Home Brew install go
First you need to install home brew and ruby Environment (because home brew relies on Ruby )
If not, please install the link yourself
Start installing go when you're ready.
Brew Update Install install go
Yo
SVG is a two-dimensional vector image format. It is a standard proposed by W3C and 3GPP to implement built-in interactivity. It supports scaling across the display environment, file size ratio BMP, JPEG, GIF and other formats are smaller. The SVG editing tool is very easy to use. It is easy to create and modify Based on XML format, and supports Rich Text options.
Starting from Brew 3.1.4, the imediasvg interface supports SVG playback, pause, stop, fas
When we recently compiled spark, we encountered a problem:
After spark_hadoop_version = 0.20.2-cdh3u5 spark_hive = true SBT/SBT assembly is executed, an error is returned:
Error: Protocol HTTPS not supported or disabled in libcurl while accessing https://github.com/apache/spark.git/info/refsFatal: http request failed
A problem occurred during git clone. It is suspected that curl does not support HTTPS. After checking, I found that curl supports HTTPS.
The problem is located. Git and git estimate
Brew is Homebrew, is the software package management tool on Mac OSX, it can easily install the software or uninstall the software in Mac, it is very convenient to use only one command.Brew is similar to the Apt-get function under Ubuntu system.To install Brew:CURL-LSSF Http://github.com/mxcl/homebrew/tarball/master | sudo tar xvz-c/usr/local--strip 1Install software: Brew Install CgdbUninstalling software:
Installation method: Command line Input/USR/BIN/RUBY-E "$ (curl-fssl https://raw.githubusercontent.com/Homebrew/install/master/install)" Enter (there is a hint that the directory does not exist, to create the need to press RETURN, if using the Windows keyboard, is the Enter)The use of itBrew Update updates Brew;Brew Install {application name, such as Git} installation softwareBrew Cask Install {app name, su
It's a pleasure to use Yum or apt-get to install software online for people who are accustomed to Linux systems. These tools can solve dependency problems. Makes the installation process simple and fast.When using a Mac, you also think: Is there a similar software on Mac OS? Often investigation found that there is a similar software brew, also known as homebrew. We will describe the installation and usage of the software in detail below.1. Installatio
Mac SystemMacOS High SierraVersion 10.13.4Mac system comes with Apache, config file in/etc/apache2/httpd.confAlthough I installed the php72Order with Brew Install PHP72Input Php-vShow PHP 7.2.9 (CLI) (Built:aug 2018 02:08:27) (NTS)But in the local project code, PHPINFO ()The php5.6.29 version is always displayed.At first, I followed the online tutorial to modifysudo vim/etc/apache2/httpd.confNote: #LoadModule php5_module libexec/apache2/libphp5.soIncr
MongoDB installation has a variety of installation methods, there is a direct use of homebrew mode, but also the source code compiled way. The simplest homebrew are used here.
1 using Brew to install MONGODB, you first need to make sure that you have homebrew installed on your computer and enter the following command at the terminal:
Ruby-e "$ (curl-fsskl raw.github.com/mxcl/homebrew/go)"
Install homebrew. (If you have already installed homebrew, y
Tags: BSP and home round article technology sharing software project FSSCocoapods is a common tool used by iOS to manage third-party class libraries. However, it was found that many articles on the Web were installed directly using Ruby and needed to modify the image. So this article speaks directly about using brew to install Cocoapods.1, Installation homebrew:If you have already installed homebrew, you can skip it.Homebrew is a software package mana
The android build system can compile different products from the same source code with different packages and options. To implement this function, we need some environment variables to control which compilation is required and how to compile it.
Envsetup. Sh is one of the methods. envsetup. Sh will generate some tools that can be used to conveniently compile the source code. envsetup.
A ORA-15031 error is prompted when root. sh is executed
Recently, an Oracle Grid infrastructure (GI) installation problem was solved. The problem occurred while executing root. sh and the following error was displayed:
Disk Group OCR creation failed with the following message:ORA-15018: diskgroup cannot be createdORA-15031: disk specification '/dev/vx/rdsk/dg_db01/lv_vote1' matches no disks ORA-15031: disk
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.