LinuxcCentOSDebianFreeBSD1 defines the function in the shell file and references :[~ Shellfunction] catfactorialsh! Binbashfunctionfactorial {factorial1for (i1; I & lt; $1; I Linux Shell function method introduction linuxcCentOSDebianFreeBSD 1.
RedHatLinux permission management ls to check the file permissions, it should be that there is no execution permission (x), you can add: chmoda + xfilename: Display the environment variable echo $ variable name set the environment variable csh in
Shell Programming: before running shellscript tracing and debugscripts, the most feared is the syntax error! So how can we debug it? Is there a way to determine whether there is a problem without directly running the scripts? Haha! Of course there
Gzip, bzip2, tar, zip command usage details 1gzipgzip is the GNU compression program. It only compresses a single file. The basic usage is as follows: after the $ gzipfilename program is executed, the file name is changed to filenamegz, and the size
After fedora19 is installed with apache, the server webpage cannot be accessed. after the apache (httpd) service is installed in Fedora, server webpage inaccessible problem solved today I tried to use the yum command of the Fedora system on the
In Linux, modify the IP address. in Linux, edit the network configuration file and set the system IP address. of course, perform the following steps under the root permission: 1. switch the path to etcsysconfignetwork-scripts [root @
In Linux, the NTP time server 1NTP introduction NTP (NetworkTimeProtocol network time protocol) is a network protocol used to synchronize computer clock. It enables the computer to synchronize time with other servers or clock sources for
[Shell] constructs and traverses two-dimensional arrays. for a usage reference, see some operations on shell arrays. this provides a way to construct and traverse two-dimensional arrays, as shown below: [plain] the array elements are separated by
Configuration of etcvsftpdvimetcvsftpdvsftpdconfiptables in the VSFTP setting and yuminstallvsftpd-y configuration directory in LINUX: iptables-IINPUT-mstate -- stateESTABLISHED, RELATED-jACCEPT VSFTP settings and instances in LINUX # yum install
The NIS client settings and the IP address of the instance nis server server1examplecomnis use the domain examplecomnis server to use port 866 & lt; --- optional & lt; --- after mstate settings, use the account nisuser4 to log on to the system,
In LINUX, when modifying the file character set, we need to modify the file character set to solve garbled text or other problems. In linux, the operating system provides us with the ICONV command. let's take a look at the specific usage of this
Linuxshell programming ---- regular expression 1 Regular Expression 1 regular expression is a string consisting of a string of characters and meta characters, RE (RugularExpression) 2. the characters in a regular expression are divided into two
Ubuntu1010 virtual networking according to the Internet said a lot of methods, finally use the NAT method to connect and remove the static IP address in etcnetworkinterfaces, put the content autoloifaceloinetloopback and then restart Ubuntuyijun @
Shell_read reads standard input 1. The basic read command receives standard input (keyboard) or input of other file descriptors (as described later ). After the input is obtained, the read command puts the data into a standard variable. The
[Linux] su: cannotsetuserid: Resourcetemporarilyunavailable solve today sshmysqldb test server, switch to Mysql account to report the following error: login mysql error: [xxx @ xxx-c003db2 ~] $ Mysql-uroot-E [Linux] su: cannot set user id: Resource
Vim multi-row operations & lt; ESC & gt; and then press v to enter visual mode. & Lt; ESC & gt; press CTRL + V to enter the visualblock mode (Column editing ). Uniform indentation of multiple lines of text: use sw to set the indentation (number of
To solve the problem of dual-graphics laptops using Linux, you can simply turn off the independent graphics card. for example, if my Y460 uses the Mint system, run the following command to turn off the N card: 1sudoadd-apt-repositoryppa:
CentosLinux open port-solve Centos publish service internet access problems -------------- view server port status -------------------- [root @ zjxl-2etc] etcinitdiptablesstatusTable: filterChainI Centos Linux enable port-solve the problem that
Sendmail configuration detailed software package sendmaili386sendmail-cfi386sendmail-develi386sendmail-doci386m4dovecot (pop3 server) preparations before procmail configuration: 1, synchronization time 2, set the host name vimetchosts1921680249
For details about the linuxshell string operations, string operations are often involved in shell batch processing. There are many command statements, such as awk and sed, which can perform various string operations. In fact, shell has a series of
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