linux command line and shell scripting bible

Discover linux command line and shell scripting bible, include the articles, news, trends, analysis and practical advice about linux command line and shell scripting bible on alibabacloud.com

Linux shell command line options and parameter usage detailed--getopt__linux

This article describes the use of command-line options and command-line arguments in a Linux shell, and in bash, you can use the following three ways to handle commands Row parameters, each of which has its own application scenario Question Description: How to handle command-line

The Linux shell uses the SED command to add characters at the end of a line or at the beginning of a text

option "-I", as4. It is also possible to add two commands together, adding the character "HEAD", "TAIL" to each line of Test.file, and the command: sed '/./{s/^/head/;s/$/tail/} ' test.fileIn fact, the above is OK, spend too much time yesterday, mainly because the file is processed by MySQL from the database extracted from the results of the guide, others gave me after I directly deal with, too brain remnants =-I have been a little doubt the result i

The Linux shell command line queries the external network IP

Query IP on the Web page open URLs can be displayed, but at the command line can be installed w3m/links/lynx these command-line browser, but for this and feel inconvenient, so a lot of IP site to provide unix/linux.Command line query (verbose): Unix/linux: #curl cip.ccwindows: >telnet cip.cc >ftp cip.cc command

"Linux uses" shell command line common shortcut keys

Move:Ctrl + A: Moves to the beginning of the currently edited command,Ctrl + B: Moves to the end of the currently edited command line,Ctrl + F or->: move by word aligns (toward the end of the command line, forward)Ctrl + B or Alt + F: Move right by word (toward end of command line, forward)Alt + B: Moves left by word (toward the beginning of the command, then bac

[Reading notes] Linux command line with Shell programming reading notes 04 installing software, editor notes

/cache/yumYum Create cacheYum Makecache3. Install the software from the source codeTAR-ZXVF xxx.bz2 files, etc.Then go to compile with directory./configureMaking make InstallThe./configure can be set at compile time by selecting--prefix= specific path and parameters4. The most useful tool under the configuration file is Vim's main use:Vim .... txt for editingI enter edit modeESC exits edit mode into command mode: Q Do not save exit: q! Do not save a forced exit, the user has modified the file c

A shell script that gives your Linux command line a cool look

#!/bin/bash# Modify showed marked## biaoshi.sh 207# by Wangxianzheng 2011/12/20path=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/ X11r6/bin:/root/binecho "####### #execute $ begin...##############"sysver=$ (head-n 1/etc/issue |awk ' {print $} ')function MODIFY_BASHRC () {echo "dst=$ (netcard=$ (ifconfig |grep-b1 192.168 |awk '/eth/{if ($1==" eth1 ") print" eth1 "; else print" eth0 "} ' |head-1) ; Ifconfig |awk ' {if (a) {split ($0,b, "add

Total Pages: 6 1 2 3 4 5 6 Go to: Go

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.