Basic Linux knowledge

Source: Internet
Author: User
Basic Linux knowledge-general Linux technology-Linux technology and application information. For more information, see the following section. 1. Linux stands for [li: n sans ks] with the accent "li"

2. Linux and UNIX
Linux is a UNIX version. More hardware is supported by UNIX, and more hardware is supported by Linux. A prominent point is that Linux is at least as stable as commercial UNIX. For many users, the most important factor is price. Obviously, Linux is dominant. Linux enables users to run a complete UNIX program on a PC. Therefore, Linux provides a cheap opportunity to learn UNIX.

3. Linux kernel naming mechanism:
Num. num. num
The first digit indicates the primary version number, the second digit indicates the minor version number, and the third digit indicates the minor version number. if the minor version number is an even number, the kernel is a stable version. If the minor version number is an odd number, the kernel is a development version. the first two digits can be combined to describe the kernel series. for example, the stable version 2.6.0 is the kernel series of version 2.6. the latest kernel source code can be downloaded as a tar package or incremental patch at kernel.org.

4. Gnome and KDE are "desktop systems", a collection of many programs and function libraries. They not only contain Window managers, but also many utilities and applications, such as configuration programs, tool bars, editors, and drawing tools. Gnome can actually work with many Window managers, the KDE window manager is kwin.

5. Linux kernel supports the following main Protocols:
TCP/IP communication protocol.
Ipx/spx communication protocol.
Appletalk communication protocol. X.25, frame-relay.
Isdn communication protocol.
Ppp. Slip, plip, and other communication protocols.
Atm communication protocol.

6. in Linux, the IDE device is named after hd. The first ide device is hda, and the second is hdb. And so on. Generally, there are two IDE interfaces on the motherboard. you can install four IDE devices in total. The two devices on the primary IDE correspond to hda and hdb respectively, and the two devices on the second IDE port correspond to hdc and hdd respectively. Generally, the hard disk is installed on the main interface of the primary IDE, so it is hda. The optical drive is usually installed on the main interface of the second IDE, so it is hdc (hdb should be used to name the slave interface on the main IDE ).
The SCSI interface device is named after sd. the first device is sda, and the second is sdb. And so on
A partition is named by a device name and a number. For example, hda1 represents the first partition on the hda hard disk device.
Each hard disk can have a maximum of four primary partitions. The role is to name the primary partition of the hard disk from 1 to 4. Logical partitions start from 5. Each time you have multiple partitions, you can use numbers. For example, a general system has a primary partition used to guide the system. This partition is named hda1. Next we will divide the three logical partitions into D, E, and F, which are commonly referred to as hda5, hda6, and hda7 in linux.

7. Common file extensions in Linux
. Bz2 ------ compressed bzip2 File
. Gz ------ compressed gzip file
. Tar ------ tar package file (package file is not compressed file)
. Tbz ------ package tar and compress the file with bzip
. Tgz ----- files packaged with tar and compressed with gzip
. Au ----- audio file
. Gif ----- gif Image File
. Html/. htm ----- HTML file
. Jpg ----- JPEG Image File
. Pdf ------ electronic document (in PDF format)
. Png ----- PNG Image File
. Ps ------ postscinpt file (print format file)
. Txt ------ plain text file
. Wav ----- audio file
. Xpm ----- Image File
. Conf ------- configuration file
. Lock ------- LOCK file (used to determine whether a file or device is used)
. Rpm ------ REDHATPackage. Manager file (package or package)
. C ------- C source code file
. Cpp ------ C ++ source code file
. H ------- header file of C or C ++ Program
. O ------ program target file
. Pl ------ perl script file
. So ----- class library file

8. linux running level (you can modify the/etc/inittab file to set it)
0-system shutdown status
1-single user working status
2-multi-user status (no NFS)
3-default running level of multi-user status (with NFS) Redhat
4-The system is not used and left for users. It is generally used when the system fails.
5-X11 Console (xdm, MCM or kdm)
6-The system is shut down normally and restarted
The common running levels are 3 (character mode after linux is started) and 5 (graphical mode after linux is started)

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.