Linux knowledge
- is actually based on some porting and re-development on the UNIX kernel.
*
Linux is a generic term for an operating system
Linux is based on a number of vendors today. More familiar to the Redhat, its most often used should be the Rhel-server series. The latest version number has been developed to Rhel-server-7.1-x86_64-dvd.iso. Of course, our domestic famous red Flag Linux, after experiencing a pay storm, in 2015 again set sail, and now the version number has been updated to 8.0. I am proud of my countrymen.
The difference between Linux and Unix
In fact, Unix is still the ancestor of Linux. The two are very similar in function to some PCs, mainly in the following points:
1. Open source
Linus was a Finnish graduate student in order to enable UNIX to execute successfully on its own PC. 3 years plus the efforts of the world's Linux development contributors. Ultimately, Linux can be executed on some low-profile PC machines. Linux has always been the free software of open source code. To date, Unix is also a commercial software for the protection of intellectual property rights abroad.
2. Supported hardware
It should be said that Linux supports a variety of hardware platforms compared to the commercial version of Unix,linux.
UNIX needs to be used with hardware, such as the following large workstations. Linux is less demanding than Unix for hardware. Linux is said to be using only 4m of the smallest memory for Linux, so it has an advantage in embedded development.
3. Other
Linux is typically a management system that supports two desktop and command line types. UNIX is only supported by the command line management method.
Linux's installation configuration is simpler and more operational than UNIX.
Linux because of its advantages in multi-concurrency processing and other performance excellence plus free and open source features. More and more are favored by developers, and even mobile phone manufacturers. The following feature is the reason why Linux is becoming more and more popular with other operating systems.
- Safety
- Stability
- Benefits of handling concurrency
- Open source
- Superior performance
- Superior in memory and file management
Installation and Configuration
I'm learning to use VMware 10.0.0 build-1295980 here.
The Linux version number 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
Easy to install and configure
See: Http://www.baidu.com/link?url=Yh_k7oKw7mfRknA_ Flzsmjtqce962zlv7b-1affqscrhoukykeypan8aqzi3xzkks9muk6iegrd-5djddp8z6aqqflhdqyi8gcqibfaqbvs&wd=&eqid= 9c6baa36000017e900000003558ec17f
Use commands frequently
System Execution Level
执行级别一共分为7个。0:关机1:单用户2:多用户状态没有网络服务3:多用户状态有网络服务4:系统未使用保留给用户5:图形界面6:系统重新启动
This configuration is stored in the/etc/inittab folder, Initdefault the value. The ETC folder typically holds the user's profile. The regular use of execution levels is 3 and 5 levels.
User management:
加入用户---useradd username删除用户---userdel username删除用户及用户主文件文件夹--userdel -r username设置password---passwd password
File and folder management:
显示当前文件夹---pwd切换到其它文件夹---cd。(ps:这个和windows是一致的)列出当前文件夹文件和文件夹---ls显示当前文件夹的隐藏文件---ls-a显示长列表格式----ls-l建立文件夹---mkdir删除文件夹---rmdir建立空文件---touch复制---cp移动文件和改文件名称---mv删除文件和文件夹---rm删除全部内容---rm-rf *sudo setfacl -m d:g:test:rwx /home/test给test用户赋予文件和文件夹的读写和删除权限。
Grep -n "fanglin" mytxt.txt在mytxt.txt中查找fanglin的字段
Find-name Mytxt.txt
may use non-root user to cause insufficient permissions when looking for files.
Configuring permissions See: http://www.maybe520.net/blog/489/
There are roughly 4,000 commands for Linux. Approximately 80 are used frequently.
The command is in fact a skilled program. Use to learn to be proficient in it. Later, we'll cover a few useful parts: Linux network Environment Configuration, development environment configuration, shell usage, samba installation and configuration.
Getting Started with Linux