Four ways to learn Linux

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

I believe that a lot of beginners who want to learn Linux are worried about what to look at Linux learning Tutorials Good, the following small series for everyone to collect and organize some of the more important tutorials for everyone to learn, if you want to learn more words, can go to wdlinux school to find more tutorials.

1, Linux system hard disk partition tool Fdisk

Fdisk is a Linux hard disk partition tool hard disk partitioning principle, but the tool format, etc. are different, one is in the system when the partition, one is installed after the system partition

Install the system partition, after the system is generally unable to modify or adjust, in the installation of the system is not partitioned hard disk space, installed system can be operated or partitioned loading

The main point here is that the operation of an unpartitioned free hard drive or a new hard drive

Here will be used to Fdisk, but this can only be within 2T of hard disk operation, greater than 2T, you can not use, have to use another parted tool

Also, Linux's understanding of hard drives is

/DEV/HD|SD (A|B|XXX) in this way

HD is primarily for the IDE's hard drive, which has rarely been seen

Most of them are in the beginning of the SD, including STATA,SAS,SCSI and other interfaces such as

HDA is the first hard drive

HDB is the second hard drive.

SDA is the first hard drive

SDB is the second hard drive.

The order here, but also related to a factor, that is, interface sequence or jumper, you should know that the hard drive interface is a jumper or something, that is, a master hard drive, etc.

Here's how to use Fdisk

Fdisk-l is a list of all the hard drives, as follows

[ROOT@HNWT ~]# Fdisk-l

disk/dev/sda:320.0 GB, 320071851520 bytes

255 heads, Sectors/track, 38913 cylinders

Units = Cylinders of 16065 * 8225280 bytes

Device Boot Start End Blocks Id System

/DEV/SDA1 * 1 104391 Linux

/dev/sda2 38913 312464250 8e Linux LVM

FDISK/DEV/SDA indicates that the operation of the hard drive, after running this will enter the interactive state of Fdisk, as follows

[ROOT@HNWT ~]# FDISK/DEV/SDA

The number of cylinders for this disk is set to 38913.

There is no wrong with then, but this is larger than 1024,

And could in certain setups incorporated problems with:

1 software that setupcl in boot time (e.g., old versions of LILO)

2) booting and partitioning software from the other OSs

(e.g., DOS fdisk, powering fdisk)

Command (M for help):

Prompts you here, press M will prompt a help, such as

Command (M for help): M

Command Action

A toggle a bootable flag

b Edit BSD Disklabel

C Toggle the DOS compatibility flag

d Delete a partition partition

L list known partition types lists all of the supported partition types

The M Print this menu displays the menus

n Add a new partition additional partition

o Create a new empty DOS partition table

P Print the partition table displays partition information

Q Quit without saving changes exit not save

s create a new empty Sun Disklabel

t change a partition ' s system ID changes partition type

U Change display/entry units

V Verify the partition table

W Write table to disk and exit writes the partition table and exits

X Extra functionality (experts only)

Command (M for help):

All the parameters are listed here.

Depending on the prompts above, you can continue with the following simple instructions

New Plus Zoning

1 Press N New plus

2 Select Primary partition/Extended partition

3 starting value, the default carriage return can

4 Partition Size value

Complete

Delete Partition

1 Press D

2 Select the appropriate partition number, enter the

Change Partition type

1 Press T

2 Select partition

3 Select partition type (press L to list all partitions and IDS)

Linux is primarily a swap partition where you need to operate

The general operation, like on the three

At the end of all operations, also ensure that the correct, you can press the W Save and exit

If the operation is incorrect, press Q to exit directly

Above the operation, do not online environment/production environment test, or the consequences of the ego

For testing machines or virtual machines, you can do more than a few times, practice makes perfect

2, Linux system Software installation of the source code compilation

Source installation, that is, to get or download the source file or source program, need their own configuration, compile, and then install

This is also a benefit and advantage of Linux, open source

As long as you have enough strength or ability, you can make it better, more suitable for their

What is the advantage of the source installation?

In the first section, it is simple to say

The biggest advantage is flexible, customizable and optimized

For example, custom compilation parameters, according to the platform, business needs, custom-related compilation parameters can be compiled to optimize the most suitable for their own environment or services

The disadvantage is trouble, complexity, high demand, there may always be some such or inexplicable problems

Code installation three steps

In other words, generally only need three steps on it, that is Configure,make,make install

When configured, the difference is great, and all of the optimizations and customizations are done in this step

Like installing the Apache server

wget http://dl.wdlinux.cn:5180/soft/httpd-2.2.22.tar.gz

Tar zxvf httpd-2.2.22.tar.gz

CD httpd-2.2.22

./configure

Make

Make install

It's over, start the service when it's done, like

/usr/sbin/httpd

These are the default configurations and options, where you can customize directories, parameters, modules, etc.

It depends on your needs and business.

3, Linux system Software installation method

Linux Software Installation, there are two main

1 package Installation

2 Source Code compilation installation

Package installation In fact, is someone else or company, for a specific platform, the system version compiles well, and then pack

Source code compiled, is completely through the source code, manual hand, configuration, compilation, installation

Each has its own length and advantages

Package Installation

1 simple, convenient, fast

2 need to select different packages for specific environments

Source Code Compilation Installation

1 flexible, customizable and optimized

2 relatively complex and has a certain basic requirements for operators

3 time is also relatively long, especially some software or larger software, such as MySQL

In the software package installation, different Linux branches, the package is also different

For example, Wdos,centos,redhat use the RPM package.

Like Ubuntu,debian, these are Deb's.

But the source installation, basically all Linux, as well as UNIX are the same, in addition to the parameters

Which is better? No standards, depending on the needs and circumstances

This tutorial is excerpted from Wdlinux forum http://www.wdlinux.cn/bbs/, reproduced please specify ~

Related Article

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.