Getting started with linux
Linux is based on some transplantation and redevelopment on the unix kernel.
*
Linux is a general term for an operating system.
There are many Vendors Based on linux. Compared For Everyone familiar with RedHat, its most commonly used should be rhel-server series, the latest version has been developed to rhel-server-7.1-x86_64-dvd.iso. Of course, there is also the well-known Linux in China. After a salary storm, we set sail again in 2015, and now the version has been updated to 8.0. It is proud of Chinese people.
Differences between linux and unix
In fact, unix is the ancestor of linux. The two are similar in some PC functions, mainly in the following aspects:
1. Open Source
Linus, a Finnish graduate student, spent three years working with linux development contributors worldwide to enable unix to run successfully on his PC. Finally, linux can run on some low-configuration PC machines. Linux has always been an open-source free software, and unix has so far been a commercial software that implements intellectual property protection.
2. Supported Hardware
It should be said that compared with the commercial version of unix, linux supports a variety of hardware platforms. Unix must be used together with hardware, such as the following large workstations. Linux has less demanding hardware requirements than unix. It is said that the Minimum Memory Used for running linux is only 4 MB, so linux has more advantages in embedded development.
3. Miscellaneous
Linux generally supports both the desktop and command line management systems, while unix only supports command line management.
Linux installation configuration is simpler and easier to operate than unix.
Linux is favored by more and more developers and even mobile phone manufacturers because of its advantages in Multi-concurrency processing and other outstanding performance plus free and open-source features. The following features are more and more popular in linux for other operating systems.
Security
Advantages of stable processing concurrency: Superior open-source performance, superior installation and configuration in memory and file management
I will learn how to use VMware 10.0.0 build-1295980.
The linux version used is:
Rhel-server-6.0-i386-dvd.iso
: Https://access.redhat.com/downloads/content/69/ver=/rhel-7/7.0/x86_64/product-downloads
Simple installation and configuration
See: http://www.baidu.com/link? Url = Yh_k7oKw7mfRknA_flZSmjTqcE962zlv7b-1affQScRHoUKYKeypAn8aQzI3xZkks9muK6ieGrd-5dJddP8z6AQQflhDqyi8GcQiBfAqbVS & wd = & eqid = 9c6baa36da-17e900000003558ec17f
Common commands
System running level
There are 7 running levels. 0: shutdown 1: single user 2: multi-user status no network service 3: multi-user status with network service 4: The system is not used reserved for the user 5: graphic interface 6: system restart
This configuration is stored in the/etc/inittab folder and the value of initdefault. The etc folder generally stores user configuration files. The common running levels are 3 and 5.
User Management:
Add User --- useradd username delete user --- userdel username delete user and user main file directory -- userdel-r username set password --- passwd Password
File and folder management:
Display the current directory --- pwd switch to another directory --- cd. (Ps: This is the same as windows) list current folder files and directories --- ls display hidden files of current folder --- ls-a display long list format ---- ls-l create directory --- mkdir Delete directory --- rmdir create empty file --- touch copy --- cp move file and change file name --- mv delete file and directory --- rm delete all content --- rm-rf * sudo setfacl-m d: g: test: rwx/home/test grant the test user the permission to read, write, and delete files and folders. Grep-n "fanglin" mytxt.txtsearch for the fanglin field in mytxt.txt
Find-name mytxt.txt
When searching for files, non-root users may cause insufficient permissions,
There are roughly 4000 linux commands and about 80 are commonly used. The command is actually a skilled program, so you can learn it in the middle. The following sections describe some practical aspects: linux Network Environment configuration, Development Environment configuration, shell usage, samba installation and configuration.