linux scripting basics

Read about linux scripting basics, The latest news, videos, and discussion topics about linux scripting basics from alibabacloud.com

LINUX Shell Scripting related

instruction (displays the exit status of the last command. 0 means no error, any other value indicates an error)$-shows the current options used by the shell, same as the SET command function[email protected] is similar to $*, but can be used as an array--------------------------------------------------------------------------------------------------#!/bin/sh##############Export lang= "ZH_CN. GB18030 "Export JAVA_HOME=/USR/LOCAL/JDKExport path= $JAVA _home/bin: $PATH:.Export classpath= $JAVA _h

Puff---------Linux bash scripting---user interaction

51200083 linuxpartition1doesnotendoncylinderboundary./dev/sda2 64 128131024000008eLinuxLVM/dev/sda3 1281314118 1048981183Linux/dev/sda4 1411915665 12426277+5Extended/dev/sda5 141191542410490413+ NBSP;NBSP;82NBSP;NBSP;LINUXNBSP;SWAPNBSP;/NBSP;SOLARIS2, error path [[emailprotected]scripts]# ./test.shenteradiskNbsp;specialfile:hownosuchfile. [[emailprotected]scripts]#echo$?1[[emailprotected]scripts]#This article is from the "Reading" blog, make sure to keep this source http://sonlich.blog.51cto.co

Shell scripting exercises for Linux

A. Triangle Square exercise1. Print triangles, method one, regular expressions650) this.width=650; "src=" Https://s3.51cto.com/oss/201711/21/ea1ad50480c4e888094441dee06b962f.png "style=" float: none; "Title=" screenshot from 2017-11-21 21-34-44.png "alt=" Ea1ad50480c4e888094441dee06b962f.png "/>Method two, loop nestingI control lineJ Control Printing symbols650) this.width=650; "src=" Https://s3.51cto.com/oss/201711/21/e08401143190fdb2eb60e1ef084e1528.png "style=" float: none; "Title=" screensho

Linux ECs: linux operation basics and linux ECs Basics

Linux ECs: linux operation basics and linux ECs Basics1. Shell Shell is the user interface of the system. The shell interpreter converts commands into system function calls and transfers them to the kernel for completion. If it is an external command or utility, then try to find the directory in the hard disk and trans

Linux basics [Article 9] and linux basics Article 9

Linux basics [Article 9] and linux basics Article 9 Architecture of adding three disks to the server Note: 1. linux caches the physical memory that is not used by the system. Therefore, 859 is not the actual memory of the system. 2. The real available system memory is 921

Linux BASICS (1), Linux BASICS (

Linux BASICS (1), Linux BASICS ( 1. Five methods available for installing linux 1. CD2. Hard Disk3. NFS Image4. FTP5. HTTP There are two scenarios for hard disk installation: A. It is installed on Win System B. The installation is started from other

Linux BASICS (6) and linux Basics

Linux BASICS (6) and linux Basics I. Samba Service The Samba service is mainly used to share files with Windows users on Linux servers. Perform the following five steps to configure the server: 1. Prepare the environment 1) disable the firewall systemctl stop firewalld 2) te

Linux basics-linux software management basics: YUM, linuxyum

Linux basics-linux software management basics: YUM, linuxyumYUM software management YUM (yellowdog Updater, modified) is an RPM front-end program designed to automatically resolve RPM dependency issues. Its features are as follows:Automatically resolves DependenciesYou can group the RPM and install the RPM based on the

Linux basics [Article 6], linux basics Article 6

Linux basics [Article 6], linux basics Article 6 What is crond about scheduled task crond? Crond is a service or software used in linux to regularly execute commands or specify program tasks. Generally, after the CentOS5/6 linux o

Linux shell BASICS (5) and Linux shell Basics

Linux shell BASICS (5) and Linux shell BasicsV. bash operations and startup script 01. history of bash commands # history ...... # Set (show all variables) | grep HISHISTFILE =/root /. bash_historyHISTFILESIZE = 1000 (number of historical files) HISTSIZE = 1000 (historical file size) # vi/root /. bash_history ...... (1016) # exit (Save the latest 1000 commands) #

Linux basics: Linux user basics

Linux basics: Basic users of Linux users. when using Linux, users must run as one user. Users can restrict the resources that users or processes can use or cannot use. Group to facilitate organization and management. each user has a UserID, which is actually used by the operating system...

Linux entry notes: 14. Network basics and linux Network Basics

Linux entry notes: 14. Network basics and linux Network BasicsI. IP Address An IP address is a globally unique identifier of each network node on the Internet. an IP address uniquely identifies a host (strictly speaking, it identifies a network interface card ). IPv4 addresses are currently the most widely used and have been switched over to IPv6 addresses. The I

Linux shell BASICS (7) and Linux shell Basics

Linux shell BASICS (7) and Linux shell BasicsVII. Process Control Condition judgment control in the bash script-[] ([] expression is true) (execute the following command when the result of the front side is true) | (if-case loop control-while-utile-for-break-continue # [abc] # echo $? 0 (true) # [] # echo $? 1 (false) # ["$ USER" = "byf"] ('$? * 'Indicates remov

Linux shell BASICS (6) and Linux shell Basics

Linux shell BASICS (6) and Linux shell Basics6. Detailed description of Shell script programming links the content of the above five parts to increase understanding of Shell 01. shell script shell: ## perl # python # php # Different jsp scripts execute different texts, and the roles of execution are different. # shell scripts (the UNIX Like system has one princip

Linux BASICS (1), linux BASICS (

Linux BASICS (1), linux BASICS (Linux Command:/root directory. current directory .. files starting with "·" in the upper-level directory are hidden files, and files starting with "d" are folder man + query content or commands: view the help (external command) query content o

Linux Shell Script Basics Learn More (full version) 1th 2 page _linux Shell

Linux Shell Scripting Basics Here we first talk about the shell's grammatical basis, beginning, annotation, variables and environment variables, to do a basic introduction, although not involved in specific things, but lay a good foundation for later learning easy premise.1. Linux

This may be useful-Linux Quick Start, basic commands, C Programming basics, and Embedded System Basics

This may be useful-Linux Quick Start, basic commands, C Programming basics, embedded system basics (to)-Linux general technology-Linux programming and kernel information. The following is a detailed description. [I = s] This post was last edited by kkkdang

Basics of Linux Basics (i)

Novell after acquiring SuSE Linux. Its focus is on creating the applicable open source tools for software developers and system managers, as well as providing an easy-to-use desktop environment and a feature-rich server environment. openSUSE is a series of optimizations for desktop environments that are more friendly to Linux novices.Third, the philosophical thought of Linux1. All documents: The abstractio

08-linux Basics (vi)-file types, file extensions, and file permissions basics for files and directory properties and permissions

installation package file. Iv. the basis of file permissionsIn the Linux file permissions, there are 10 bits in total, the No. 0 bit represents the file type, and the latter 9 bits represent the file permissions.1, about the interpretation of each part of the authority:The first part (第1-3位): A sovereign limit (user permission bit) for the owner (own) to use.Part II (第4-6位): A group of permission bits (groups permission bits) for use by the gro

2nd Day "Introduction to OS Linux distributions, Getting Started with Linux system basics, Linux command Help, Linux basic Commands"

relevant properties of the directory itself, typically used with-L.-R: Reverse mode display-R: Recursive display-rw-r--r--. 1 root root 41364 June Install.log-,d,l,b,c,p,sNumber 1: Number of times a file has been hard linkedLeft Root: Owner of FileRight root: Group of files41364: Siize of filesJune 14 14:32: Last modified time for a fileInstall.log: File nameFile View commands: Cat, TACCat: ForwardCat/etc/fstabCat/etc/fstab/etc/issueTAC: Reverse OrderCat/etc/fstabCat/etc/fstab/etc/issueFile con

Total Pages: 15 1 .... 6 7 8 9 10 .... 15 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.