Linux major distributions are Debian, Slackware, RedHat. which
Debian:ubuntu
Knoppix
Slackware:s.u.s.e
OpenSuSe
Redhat:fedora
Centos
We study mainly in the CENTOS7 version of the main, download link http://isoredirect.centos.org/centos/7/isos/x86_64/CentOS-7-x86_64-Everything-1611.iso.
Select Http://mirrors.163.com/centos/7/isos/x86_64/CentOS-7-x86_64-Everything-1611.iso.
Install with virtual machine (VMWARE12), detailed installation steps do not describe, note the points:
1. Network mode select bridging mode.
2. Configure the network:
(1) cd/etc/sysconfig/network-scripts
650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M00/8F/88/wKioL1jkdOiSBnEeAAAkzuqcnnM978.png "title=" QQ picture 20170405123811.png "alt=" Wkiol1jkdoisbneeaaakzuqcnnm978.png "/>
(2) vi ifcfg-ens33, the Onboot "no" to "yes", the last input: Wq save and exit, and then restart the network 650) this.width=650; src= https://s1.51cto.com/wyfs02/ M02/8f/8a/wkiom1jkdepinziuaabnhdz5uua365.png "title=" 1.png "alt=" Wkiom1jkdepinziuaabnhdz5uua365.png "/> (3) Restart Network Command # Service network restart
3. Make sure the firewall is off:
(1) iptables-l-N View firewall rules
(2) Iptables-f Clear firewall rules, currently valid
(3) Systemctl Stop firewalld.service Temporary prohibition rule
(4) Systemctl Disable Firewalld.service Permanent prohibition rules
4. Use the system via Xhell remote connection (because the mouse directly using the virtual machine loses focus and needs to be Ctrl+alt switched out).
To complete the above steps, log in to the system with the following interface:
650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M00/8F/8A/wKiom1jkeTnha3rhAAAfbAt9MOI669.png "title=" 2.png "alt=" Wkiom1jketnha3rhaaafbat9moi669.png "/>
[email protected] ~]#
Root: currently logged in user
localhost: Host name of the current host, non-full format
~: User's current directory, also known as working directory
#: Command Prompt
#: Administrator account, root, with maximum permissions, can perform all operations
$: Normal user, non-root user
Syntax common format for Linux commands:
~]# Command Options arguments
Command option Parameters
The commands are divided into two categories:
commands from the shell program, also called built-in commands
Standalone executable program file, file name is command name, also known as external command
View command type: Type command (built-in or external command)
Get help with using the command:
Internal command: Help command
External command: (1) command use Help with a brief format
#command--help
(2) User manual
Manual path:/usr/share/man/
#man command
The user manual is a compressed file, with sections such as
The/usr/share/man/directory has man1, man2 、......
1. User commands: Commands that can be used by both ordinary users and administrators
2. System calls
3.C Library Call
4. Equipment files and special documents
5. File format (configuration file format)
6. Game Use Help
7. Miscellaneous
8. Management tools and Daemons
Note: Not every command has a manual under all chapters
The man command to open the manual after the operation method:
Flip Screen: Space bar to the end of the file to flip a screen
B: Flip a screen to the file home page
Ctrl+d: Turn half screen at the end of the file
Ctrl+k: Turn half screen to file header
Enter: Flip a line to the end of the file
K: Flip a line to the file header
G: Jump to the last line
#G: Jump to a specified line
650) this.width=650; "src=" Http://blog.51cto.com/e/u261/themes/default/images/spacer.gif "style=" border:1px Solid RGB (221,221,221); Background-image:url ("http://blog.51cto.com/user_index.php?action=addblog_new"); background-position:50% 50%;background-repeat:no-repeat; "alt=" Spacer.gif "/>
Linux Basic configuration and view command Help