Linux installation, command (i)

Source: Internet
Author: User

2-4 Linux Partitions

    1. Partitioning: Dividing a large hard drive into small logical partitions
    2. Format: Write to File system
    3. Partition device file name: Defines the device file name for each partition
    4. Mount: Assign a mount point to each partition


2-6 System Installation

    1. CentOS 6.3
    2. sda20g,[/home]2g,[/boot]200m,[/swap]1g,[/] remaining maximum
    3. Preferred minimal. Use basic Server during learning


2-8 Network Configuration and Xshell
Refer to http://www.cnblogs.com/fuly550871915/p/4949513.html If it is not yet displayed:

    1. Input Vi/etc/sysconfig/network-scripts/ifcfg-eth0
    2. Modify the corresponding location in the content to:onboot=yes/mm_controlled=yes/bootproto=dhcp
    3. Restart Services Service network restart
    4. Enter ipconfig you can see the eth0, you can also see the IP


3-1 format

    1. [[email protected] ~]# on behalf of the user @ host name current location, the administrator initial location is/root, ordinary user is/home/[user name]. The administrator's prompt is # (sharp), the average user is $
    2. Command format: command [options] [parameter], note: Individual commands are not followed by this format; when there are multiple options, you can choose together; you can simplify options such as-a equals--all


3-2 Directory processing commands

    • mkdir:mkdir-p [Catalog]: Recursive creation
    • Cd
    • Pwd
    • RmDir
    • Rm
    • Cp
    • MV: Renaming the same directory, cutting different directories
    • LN: Hard link cannot cross partition, soft link source file must write absolute address

Some tips:

    1. Using absolute paths is not error prone
    2. Table Click Completion, double-click Show All Files
    3. Ctrl+l Qing

4-1 commands to search for files
-Locate
-Update
> configuration file:/etc/updatedb.conf

4-2 commands for searching for commands
-Whereis
-Whatis, WhoAmI, which
-Find
>-size Note lowercase k and uppercase M
Find and Locate:locate speed fast, occupy less, weak function. Find is slow, high-performance, and powerful
-grep

Linux installation, command (i)

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.