2-4 Linux Partitions
- Partitioning: Dividing a large hard drive into small logical partitions
- Format: Write to File system
- Partition device file name: Defines the device file name for each partition
- Mount: Assign a mount point to each partition
2-6 System Installation
- CentOS 6.3
- sda20g,[/home]2g,[/boot]200m,[/swap]1g,[/] remaining maximum
- 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:
- Input Vi/etc/sysconfig/network-scripts/ifcfg-eth0
- Modify the corresponding location in the content to:onboot=yes/mm_controlled=yes/bootproto=dhcp
- Restart Services Service network restart
- Enter ipconfig you can see the eth0, you can also see the IP
3-1 format
- [[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 $
- 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:
- Using absolute paths is not error prone
- Table Click Completion, double-click Show All Files
- 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)