Well, finally, the last of the series, let's explore the final question today. Question 5: How to view the value of hostname, whichever is it? 1 [[email protected] ~] 2 # hostname 3 db-server 4 [[email protected] ~] 5 #
The group has a Linux development beauty, Linux command mastered to the point of perfection.Get this opportunity, learn some, summarize the commonly used instructions, not regularly updated to supplement.----------------------------------------------
Definition and use of variablesVariable typeStrongly typed: You must specify a type when defining a variable, the participating operation must conform to the type requirement, and calling an undeclared variable produces an error;Weak type: No need
First create a expect script ssh_expect with the following file contents:#!/usr/bin/expect-fSethostname [lindex$argv 0]SetUser [lindex$argv 1]Setpasswd [lindex$argv 2]SetTimeout -SetForce_conservative1if{$force _conservative} {SetSend_slow {
You can view the contents of the%mem directly after you use the top command. You can choose to view by process or by user, if you want to see the process memory usage of the Oracle user, you can use the following command:(1) TopThe top command is a
reference book:"Intel microprocessors" Table 1 Default 16-bit segment + offset addressing combination
Paragraph
Offset amount
Special purpose
Cs
Ip
Instruction Address
Ss
SP or BP
http://www.jb51.net/LINUXjishu/151805.htmlIf we need to perform periodic repetitive tasks on a regular basis, we will use the Timed task function to help us automate recurring recurring tasks such as daily, weekly and so on, without the need for
1. Copy the disk file, create a new virtual machine, and use the diskLocate the virtual machine source file for our Linux-made host and copy the disk.Create a new virtual machine using the disk that we copied.650) this.width=650; "src="
Disk Reset: AH = 0DL = Drive letter (00,01 is floppy; 80h,81h, ... For the hard drive)Return parameter: Failure ⇒ah = error code Read disk Status: AH = 1Return parameter: AH = status byte Read Disk sector: AH = 2The 0~5 bit in CX represents
Modified the hostname under/etc/sysconfig/network.
2. Use echo servername >/proc/sys/kernel/hostnameWhen the other terminal is opened, it will take effect immediately without restarting.Method 21. Modified the hostname under
Cat input and Output commandsCat input from standard input device, output from standard output deviceCat > file input from standard input device, output to file, overwrite source file, if append, use cat >> fileCat Cat file2 Copy the contents of
/etc/profile,/ETC/BASHRC, ~/.bash_profile, ~/.BASHRC are easily confused, what is the difference between them? What is their role in the end? /etc/profile: Used to set the system environment parameters, such as $path. This environment variable is in
1. The centos6.7 has already included the SSH service and has been running successfully since the installation was minimized. The following command restarts and verifies that the SSH service is already running.[Email protected] ~]# [[email protected]
Shell debugging and shell debugging
I. Introduction
This article comprehensively and systematically introduces the shell script debugging technology, including using echo, tee, trap and other commands to output key information, tracking variable
Use CentOS DVD1 and DVD2 for local yum Source
CentOS6 and later versions generally provide a DVD1 and a DVD2 image. You can use DVD1 to install and use CentOS. DVD2 stores some additional software packages. This article describes how to create and
CentOS server disk partitioning Solution
My server is 500 GB. The most important thing is that the/var partition must be large (whether it is a postfix email or a lamp web Server ).Preferably GB or above. The specific/boot only needs MB.The
Linux-getting started with installation, linux-getting startedLearning task:
1: after reading the process of installing linux on VMWare
2: Understand partition concepts
Learning Experience:
1: linux system hard disk type: IDE hard disk, SCSI hard
Openfire: Modify Domain value
Unlike Tigase, after Openfire is installed, its configuration attributes are not written into the XML file, but basically stored in the database table.The data table where the configuration property is located is an
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