- Basics of getting Started with Linux
- Linux birth
- Linux Release Notes
- Linux official website
- Linux Kernel official website
- A more famous Linux distribution
- Virtual machine (VM), a virtual system, system installed in the system
- Linux differs from windows
- Getting Started with Linux basic commands
- Getting Started with Windows command line (search cmd lookup)
- Cygwin installation and use
- The Linux environment complements
- User groups
- Owner
- The group where the files are
- Other groups
- Folder Permissions
- Change folder permissions
Linux Birth
- The Linux operating system was born on October 5, 1991 (This is the first time the official outward announcement).
- There are many different Linux versions of Linux, but they all use the Linux kernel.
- Linux can be installed in a variety of computer hardware devices, such as mobile phones, tablets, routers, video game consoles, desktops, mainframes, and supercomputers.
Linux Release Notes
- The Linux distribution says that the simple point is to pack the Linux kernel with the application software.
- The more well-known distributions are: Ubuntu, RedHat, CentOS, Debain, Fedora, SuSE, OpenSUSE, Turbolinux, Bluepoint, Redflag, Xterm, Slackware, etc.
Linux official website
- Ubuntu and CentOS are used more
- Debian in the domestic use of relatively few, in foreign countries in Europe and the United States market share is relatively large
- Fedora is very mature and the teacher is using this.
- Source of other versions:
- Part of it is evolving from one built-in operating system to another.
- The other part is for special purposes, for example: Kali is a release that has been developed specifically for security, with many network security tools, many hacking tools, and a dedicated operating system
- CentOS and Red hat have a very large share of the server market
- Ubuntu, Debian, Fedora have a larger share of desktop systems
Linux Kernel official website
- There is only one kernel in the world, and this kernel is maintained by Linux himself.
- There are a lot of programmers who are contributing the source code for this kernel, but the kernel's dominant maintainer is Linux himself.
A more famous Linux distribution
- centos , maintained by the community, Three image downloads available:
- dvd ISO contains the graphical interface of the operating system
- everything ISO in addition to the graphical interface, including all of his own maintenance of the software
- minimal ISO does not provide a graphical interface, generally the mini version of iOS installed on the server, with a graphical interface instead of reducing the server's operational performance
-
- redhat
-
- download more trouble on the official website
- ubuntu, very popular in China, also provides a Chinese version of the Linux Ubuntu The release version of
Virtual machine (VM), a virtual system, system installed in the system
- A complete computer system that runs in a fully isolated environment through software simulations with full hardware system functionality. The popular virtual machine software is VMware, Virtual box, and virtual PC, all of which can be virtualized on a Windows system with multiple computers.
Vmware/virtual box/virtual pc Three differences:
- Commercialized by VMware, which is charged
- Fusion is a Mac system
- Workstation Pro is a Windows system
- Virtual Box Open-source VMS, maintained by Oracle
- Virtual PC is not open source, but can be tried for free and is maintained by Microsoft
Linux differs from Windows
- Linux file names are strictly case sensitive
- All content in Linux is saved as a file, including hardware
- Linux does not differentiate file types by extension
- Depending on the permissions, here are some of the conventions that are used to manage files for administrators (that is, easy to manage)
- Compress package: '. Gz '. bz2 '. tar.bz2 ' *.tgz ' etc.
- Binary packages: '. RPM '
- Web page file: '. html '. php '
- Script file: ' *.sh '
- Configuration file: ' *.conf '
- Programs under Windows cannot be installed and run directly in Linux
Getting Started with Linux basic commands
- LS display short format; ls-l Display long format
- Ls-l Display Information Explanation (drwxr-xr-x+ 5 Liufeifei Staff 8, 15:56 public)
- First column: drwxr-xr-x+ access rights
- Second column: 5 current directory memory in the number of files
- Columns three and fourth: Liufeifei staff indicates which user and user group the current file belongs to
- Column Five: 170 indicates the size of the current directory or file
- 8 18 15:56 creation time for a directory or file
- The last column is the name of the directory or file
- Ls-a Show all files, including hidden files
- Under Linux, as long as the file name is preceded by a dot, it is a hidden file
- There are two file names are very special, the first one is a point, the second is two points
- A point: Represents the current directory
- Two points: Represents the previous level of the directory
- mkdir Creating a directory (make directories)
- mkdir-p [directory name]: recursive creation
- -P is to establish a multilevel directory mkdir-p a/b/c, no-P return: No such file or directory
- The directory where the CD is switched
- CD [directory] (change directory)
- CD ~ or CD into the current user's home directory
- CD-Go to last directory
- Cd.. Go to the top level directory
- Cd. Go to current directory
- CP Copy Command (copy), formula: CP [Options] [Original file or directory] [target directory]
- -R Copy Directory
- -P Joint File attribute copy
- -D If the source file is a linked file, copy the link property
- -A equals-RPD
- Copy file cp is OK, if the copy directory needs to have the-R, the default copy file
- CP-A Copy all the hidden properties are the same, cheer up, happy
- PWD Query directory location (print working directory)
- rmdir [directory name] Delete empty directory (remove empty directories)
- RM-RF [File or directory] (remove)
- -R Delete Directory
- -F Mandatory
- RM-RF/This is a Linux suicide command, will be more than 90% of computer files deleted, will not affect the normal operation of the computer, very individual files can not be deleted
- MV (move) Cut or rename command; MV [original file or directory] [target directory]
Getting Started with Windows command line (search cmd lookup)
- View all files in the current directory, using dir
- The folder under Windows is the directory, and the two are equivalent
- Switch directories, use CD [folder name]
- Create directory MD [folder name]
- Copy the command copy [file to be copied] [Copy location]
- Delete command del [delete file name]
- Use this command system will not give hints, use time special attention
- Files deleted using del will not appear in the Recycle Bin, be careful
- Rename Word command: Rename [name to be changed] [name to change]
Cygwin Installation and use
- Cygwin is a UNIX simulation environment running on the Windows platform
- Use this environment under Windows to learn Linux commands
- Cygwin is an open source project
- Install the default can be selected, the last choice, select the fastest (that is, the first), then select the component installation method, select Full installation
The Linux environment complements
- CD/is to enter the system's root directory
- touch [filename] New file, such as: Touch index.js
- vi or vim [filename] enter into the corresponding file
- cat [file name] View file contents
- esc +: Wq save file and exit
- init 3 into full multi-user mode, standard run level, i.e. into a full command environment
- init 0: Shutdown  
- < Span class= "S1" >init 1: Single-user mode &NBSP;
- init 3: Full multi-user mode, standard run-level &NBSP;
- < Span class= "S1" >init 5: Start to enter X-window system, i.e. graphical interface
- init 6: Restart
User groups
- Each user in Linux must belong to a group and cannot be independent of the group. Each file in Linux has the concept of owner, group, and other groups
Owner
- Typically the creator of the file, who created the file, becomes the owner of the file naturally
- You can see the owner of the file with the Ls-al command
- You can also use the Chown user name file name to modify the file owner
The group where the files are
- When a user creates a file, the group where the file is located is the group that the user is in
- All groups of files can be seen with the Ls-al command
- You can also use the CHGRP group name file name to modify the group in which the file resides
Other groups
- Other users of the system are other groups of files, except for the owner of the file and the user in the same group
Folder permissions
Drwxr-xr-x Liufeifei admin 510 11:38 demo
- Drwxr-xr-x 10 characters determine what different users can do with a file
- The first character represents a file (-), a table of contents (d), a link (l)
- The remaining characters are set per 3 (RWX), read (R), write (W), execute (x)
- First set of rwx: The permissions of the file owner are read, write, and execute
- Second set of R-x: Permissions for users of the same group as the file owner are read, execute, but not writable
- Third group R-x: permissions for other users who are not in the same group as the file owner are read, execute, but cannot be written
- can also be represented by a number as: R=4 w=2 x=1, so rwx = 4+2+1 = 7
- 15 indicates the number of files connected
- Liufeifei indicates that the user
- Admin indicates the group where the user resides
- 510 indicates the size of the file (bytes)
- 11 23 11:38 indicates last modified date
- Demo indicates file name
Change folder permissions
chmod change the permissions of a file or directory chmod 777 user name (that is, the file name of the permission to modify)
chmod 777 Index.js: Give Index.js permission rwxrwxrwx
chmod 755 test.js: Give Test.js permission Rwxr-xr-x
chmod u=rwx g=rx o=rx test.js: Ibid. u= User Rights g= group permissions o= different groups other user rights chmod u-x, g+w test.js: Give test.js Remove user-executed permissions, increase group Write permissions chmod a+r test.js : Add Read permissions to all users
Basics of getting Started with Linux