Shell script if statement nested instance

Design a prompt menu for user selection, and perform operations and display based on user selection. Menu: 1. start vi editor 2. start x-windows and enter the GUI 3. start the background printing process. 4. exit ctrl + c #! /Bin/bash // indicates

Basic linux learning (1)

(1) Linux distribution companies: redhatsuseredflag (2) storage media: the Iide interface is automatically recognized as/dev/hdaScsi interface and/dev/sdaStata (serial hard drive) the soft drive is automatically recognized as/dev/fd0Usb and

Openswan serves as the Linuxipsecvpn server (I)

Section 1 VPN introduction and its classification 1PPTP-BasedVPNPPTP (PointtoPiontTunnelingProtocol) is a Microsoft-initiated protocol that can work on multiple Microsoft operating systems, including Windows 95. although it has been used for a long

Openswan serves as the Linuxipsecvpn server (2)

II. RSA authentication method (I). net-to-net connection method 1. Leftnetwork & amp; szlig; --- & amp; agrave; leftGateWay & amp; szlig; ----- | ------ & amp; agrave; RightGateway & amp; szlig; ---- & amp; agrave; Rightnet   II. RSA authentication

Create the most streamlined and distinctive linux

One of the highlights of linux is open-source. compared with Windows, we can use more imagination on linux to build a linux system with its own characteristics, first, we start with creating the most basic micro-linux system. through the experience

Disk Management in linux (2)

Blkid is used to view the unique identifier UUID and file system of the hard disk. when the file system is not specified during mounting, the system will automatically use blkid to detect the file system used by the partition to be mounted. Mke2fs-b

Linux Kernel upgrade steps and solutions

Linux kernel is the core of the system, so upgrading the kernel is a basic skill of the Linux system administrator. so I shared an article on system O & M practices, of course, I have added some content to the source file, that is, I have added the

Disk quota on RHEL6 system

In a production or work environment, you may encounter the following situation: in a multi-person, multi-task environment, multiple people share a disk space, some people may put a lot of or a lot of files in the same space, resulting in a sharp

Linux command favorites-Process Management

Linuxnice command function description: set priority. Syntax: nice [-n & lt; priority level & gt;] [-- help] [-- version] [execution command] Supplement: nice commands can change the priority level of program execution. Parameter:-n & lt; priority

Dual-Nic routing settings in linux

During the work test, the software implements a routing forwarding function and requires relevant configuration tests. The actual situation is as follows: PC1 is CentOS5.5 and has two NICs eth0 and eth1. Eth0 Internet, assuming 75.58.2.1; eth1

Nginx installation and configuration

From now on, learn nginx # install pcre [root @ svr3 ~] #Tar-xjfpcre-8.02.tar.bz2-C/usr/src/[root @ svr3 ~] # Cd/usr/src/pcre-8.02/[root@svr3pcre-8.02] #./configure & amp; make Learn nginx from now on# Install pcre[Root @ svr3 ~] # Tar-xjf pcre-8.02.

Linux apacheweb server startup, stop, and restart commands

If the installation directory of apahce is/usr/local/apache start:/usr/local/apache/bin/apachectlstart stop:/usr/local/apache/bin/apachectlstop restart: /usr/local/apache/bin/apachectlrestart, If the installation directory of apahce

Installing Firefox5 in linux (redhat, centos)

Put the downloaded file under/root/, decompress it, and generate the firefoxfolder tarjxvffirefox-latest.tar.bz2 to the specified directory, the/usr/lib/has the original default version of firefox-3.0.5 cp-r/root/firefox // usr/lib/next step is to

Nginx automatic log function and automatic log cutting script

For automatic logs of nginx variables, note the following when using automatic logs: 1. nginx log directory permission. take my installation path as an example/usr/local/nginx, then, my log directory is in/usr/local/nginx/logs. if the automatic log

Linux mount command details

Linux is an excellent open-source operating system that allows you to mount disk image files, mobile hard disks, USB flash drives, Windows, and NFS, it can run on various computer systems from the largest to the smallest. with the increasing

Differences between ctime, atime, and mtime in Linux

I learned how to get started every day. I cheated on the book & quot; unix Super Tool & quot; from mmmmn yesterday and understood a problem that I had been puzzled for many years, now, when you talk to skilled UNIX users, you will often hear them

Linux server cannot be started, INIT: NOinittabfilefound

The linux server rented by a friend cannot enter the system when it is restarted. stay on this page: Restart the server, use the RHEL5 CD, and set the boot from the optical drive, enter linuxrescue in rescue mode to enter rescue mode. use # The

Basic vsftpd configuration

EnvOS: centos5.4finalftp: vsftpd-2.0.51, you can first create a user through newusers or scripts, the required user name needs to be written in a document in advance in the format of one per line, then, execute useradd. shUseradd. sh content :#!

Linux study notes

I. There are 7 running levels in linux. they are: 0halt system shutdown status 1singleusermode single user mode 2multi usermodewhitoutnetwork no network multi-user mode 3multi usermode normal mode 4multi userm... I. There are 7 running levels in

Install DHCP in liunx

Configure dhcp server 1. create the disk mount location mkdir-p/media/cdrom2, mount/dev/cdrom/media/cdrom3, and enter cd/media/in SERVER mode/ cdrom/Server4, view the DHCP file lsdhcp * 5, cp file /... Configure DHCP server1. create the disk mount

Total Pages: 2732 1 .... 2106 2107 2108 2109 2110 .... 2732 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.