How did I learn about Linux?

Source: Internet
Author: User

Why do you want to learn Linux?

There must be a motivation, I learn Linux because of background development, as well as work needs, there is a learning experience, forced to use Linux, no way, learned.

Characteristics of Linux Learning

First of all: Linux is certainly no Windows studious, Linux learning curve is very steep, just start easy to lose information, also on the program ape with Linux, most of the office with Windows and Mac OS, so Linux is the program ape necessary skills, If you're a daemon ape, then you have to. In addition, Linux and Mac OS are homologous to UNIX, and their command-line operations are very similar.
Linux above the entertainment ecosystem is far less than the Windows and Mac OS, at least I think so at present, so work with Linux, entertainment or Windows-based.

How do I start learning Linux?

How do I start learning Linux? Starting with a Linux installation, it's certainly unrealistic to start with a Linux computer directly, unless you're an old driver. I tried it once and failed, so I still play Linux in the virtual machine, the tool is VirtualBox (virtual machine tool) +ubuntu16.0.4 (Linux OS)
How to install, please refer to my essay, http://www.cnblogs.com/notfresh/p/8486655.html

Here are a few modules I know about Linux operations, all on the command line, and assist in my understanding to help you quickly identify and remember

I will use from shallow to deep task-driven to share my experience and knowledge, considering the content of more, and I am also in constant learning, so some do not write first.

1. User creation and assignment of rights. 2. View directory and file movement, copy, delete 2.1 text File View, edit 2.2 vim using 3. View disk size 4. Process view, search and close

Say a few commands, daily use of the most frequent commands, I believe that beginners can be used.

5.linux and windows are not the same, no sub-disk, there is only one root directory, so there is no C-disk, D, e-disk, the root directory with a/, a slash. The most frequently used command when switching directories is CD + ' file path ', which can be automatically complete by pressing TAB.

6. File path switch: CD entry,., two points, go back to the previous level directory, go to the current Path subdirectory Direct CD + folder name

7. Execute the file at the current location, using the./xxx.

8.linux is a file-centric operating system, and he thinks that everything is a file, so the operation of the file is very important. In addition to the path switch just now, there are many Linux file commands. For example the LS command, LS can show all files under the current path.

This is the LS command, I explained in detail, after LS execution, found that the current folder has 3 files, green, plus a blue folder, it is clear that we found that the simple ls command can provide me with too little information, we need to know more, so we need to give the LS command plus other options command, Make it display more detailed information. I often use ls–l (horizontal plus l,l lowercase letters)

Let me explain the information we see.

Total dosage Indicates how large this folder is, the size of this file is 52924kb, assuming 1000KB=1MB, that is, 52M or so, (actually 1024KB=1MB)

The first line I'll explain, what does-rwxrwxr-x mean?

The outermost-indicates that this is a file.

RWX represents read, write, execute, read, write, execute, respectively

Look carefully, divided into 4 parts, followed by-| RWX |rwx |r-x, which represents the permissions owned by other users of the normal file file Master group. The owner of this file is the Web, the name of his user group is also the Web, it has permissions to read and write execution, full permissions, and his group of users also have the same permissions rwx, and other users only have read and execute permissions, no write permission, that is, edit the permissions.

The unit of 40960 is B.

Ls–l command does not show hidden files, Ls–all Show All Files

    1. And then share the details of some shortcut keys,

CTRL + C: This is the shortcut to terminate the current command, of course you can also enter a large string of characters, do not want it to run directly CTRL + C, the cursor will jump into the next line.

Tab: This key is the most useful key, but also the author of the highest probability of hitting a key. Because when you hit half a command, it will help you complete it. Not only the command, when you hit a directory, the same can be complete, do not believe you try.

Ctrl + D: Exit the current terminal, and you can also enter exit.

Ctrl + Z: Pause the current process, such as you are running a command, suddenly feel a bit of a problem to pause, you can use this shortcut. After pausing, you can use FG to recover it.

Ctrl + L: Clear the screen so that the cursor moves to the first line.

10. In the black window, that is, the command window, no desktop operating system right-click Copy paste and delete,

CP command

Format: CP [option] source file or directory destination file or directory

Option Description:-B with the same name, prepared to divide the original file

-F Force overwrite files with the same name

-R plus a copy of the folder--including sub-folders at the next level, and subfolders within subfolders

For example Cp-r/tmp/a/*/root/a

It means to copy all the files under the/tmp/to/root/a.

RM command

The Linux Delete directory is simple to use the RM-RF command.
Direct RM is available, but add two parameters-rf that is: RM-RF directory name
-R is recursive down, no matter how many levels of directory, delete
-F is directly forcibly deleted, without any hint of meaning

Delete File Direct RM file name

MV Command

Format

MV [options] source file or directory destination file or directory

[Options] Main parameters (several important parameters)

    • -I: Interactive mode operation. If the MV operation will result in overwriting an existing target file, then the system asks whether to overwrite it, asking the user to answer "y" or "n", which avoids overwriting the file by mistake.

    • -F: Disables interactive operation. MV operation to overwrite an existing target file without giving any indication, after specifying this parameter the I parameter will no longer work. -R instructs the MV to move all directories and subdirectories listed in the parameter recursively.

This time first write here, the knowledge of the back continues to write.

How did I learn about 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.