Getting Started with Linux

Source: Internet
Author: User

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-based now has a lot of vendors. Compared to everyone familiar with the redhat, its most commonly used should be the Rhel-server series, the latest version 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 to set sail again, now the version 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 similar in function to some PCs, mainly in the following points:

      1. Open source

      Linus, a Finnish graduate student, worked for 3 years to enable UNIX to run successfully on its own PC, along with the efforts of the world's Linux development contributors. Finally, Linux is able to run on some low-profile PC machines. Linux has been an open source free software, and Unix has so far been the commercial software for the protection of intellectual property.

      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 on hardware than Unix, which is said to run Linux with the smallest memory with only 4m, so Linux has an advantage in embedded development.

      3. Other

      Linux is generally supported by the desktop and command line two management systems, UNIX is only supported by the command line management mode.
      Linux's installation configuration is simpler and more operational than UNIX.

Linux is becoming more and more popular with developers and even handset makers because of its advantages in multiple concurrency processing and other performance plus free and open source features. The following features are the reason why Linux is becoming more and more popular with other operating systems.

    • Safety
      1. Stability
      2. Benefits of handling concurrency
      3. Open source
      4. Superior performance
      5. Superior in memory and file management
Installation and Configuration

I'm learning to use VMware 10.0.0 build-1295980 here.

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

Easy to install and configure

See also: Http://www.baidu.com/link?url=Yh_k7oKw7mfRknA_ Flzsmjtqce962zlv7b-1affqscrhoukykeypan8aqzi3xzkks9muk6iegrd-5djddp8z6aqqflhdqyi8gcqibfaqbvs&wd=&eqid= 9c6baa36000017e900000003558ec17f

Common commands

System Run 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. Common run levels are 3 and 5.

User management:

添加用户---useradd 用户名删除用户---userdel 用户名删除用户及用户主文件目录--userdel -r 用户名设置密码---passwd 密码

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.
Configure permissions See also: http://www.maybe520.net/blog/489/

There are roughly 4,000 commands for Linux, and about 80 are commonly used. The command in fact lies in the proficiency program, use to learn to proficiency can be. Later, we will introduce the contents of several practical parts: Linux network Environment Configuration, development environment configuration, shell usage, samba installation and configuration.

Getting Started with Linux

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.