Linux learning to pick up the suffix

Source: Internet
Author: User

This period of time to learn python at the same time back to learn the next Linux, mainly to see video tutorials, based on RHEL6 learned a lot of things, summary records, so as to avoid a period of time and forget. Perseverance!

First, learn Linux best with the text command interface, to understand the use of relevant commands, understand the Linux system structure

Application Client
*.com (direct-operating hardware) shell (client calls system API via Shell)
API GLIBC Library API
Kernel core Modules BIOS
Hardware layer CPU RAM disk

Switch the shell, the first time you can use ctrl+alt+f* (1...8)? Follow direct alt+f*, start the system by default into the text command interface to modify Inittab parameters Initdefault change 5 to 3

Enabling the Xwindow interface can be started with the STARTX command

Second, installation

Third, the system IP configuration

1, system-config-network or Vi/etc/sysconfig/network-scripts/ifcfg-eth0

2. Restart Service networkmanage Restart->service network restart

3, if the machine starts automatically enable network equipment with Chconfig

The virtual machine defaults to bridging mode, but with the current experience it is possible to implement IP assignment in LAN

If the dial-up bandwidth used can be connected through NAT mode, the virtual machine system can ping the external host while the host pings the different virtual machines.

Iv. Document-related commands

Ls-alf can display file formats, such as directories and executables, with associated identifiers, and executable files ending with a * number

ls/dir/name* displays files or directories that begin with name

V. System commands

Hostname,uname,file,date +%y%m%d Touch Date +%y%m%d. Log

Id,stat Show File modification time

Su,sudo Switch User Environment Su-username,su There is a certain security risk, sudo can control the current user to use another user's partial permissions, need to be configured in sudo related files sudoers, through Visudo configuration

Mount mount external files and system directories, such as load u disk, insert USB stick dev Display related device files if SDB, but should be mounted with sdb1 when mounted, or file type error

This problem has not always been successful in the past, and today finally mounted, mount-t vfat/dev/sdb1/mnt/u/

Also use Fdisk-l to view device file system Information

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.