The introduction
This article has participated in the “Digitalstar Project” and won a creative gift package to challenge the creative incentive money.
Today, we learn Linux, most of our programmers have multiple skills, the most important is the general skills, because the general skills can be transferred, not limited by the environment, Linux is one of them, as the prevailing operating system, you can do without some technology, but you can not do without Linux server, Today, I will briefly introduce the command line of Linux. There are many command lines, so I will pick a few interesting ones.
The user login
One of the things you have to do to operate Linux is enter a user name and password, which I’m sure you’ve seen:
On the left is the Windows login interface, and on the right is the Linux login interface. From the interface, you can see the essential difference between Linux and Windows. Windows is presented in a graphical interface, which is more user-friendly and easier to use. Linux, on the other hand, is all command operation, you will not play the command will inevitably rest, even into the operating system can not do, get started is not so easy, but the advantage is free.
Radish cabbage, his taste, essentially all belief is different, which one do you feel better, which one you prefer to use, but I think you’d better keep an open and inclusive mentality, once you for Linux learning attitude is closed, a powerful operating system that will be lost and your links, this is a very great loss.
Once I was such, of course, you can completely close the door and the world contact, only open a small port, as long as happiness is no problem.
Password change
Once you’ve logged in with your password, you’ll come to this screen and you’ll be like, gee, what if I forget my password? No matter, Linux has figured it out for you. You can change your password with the passwd command.
To help you understand, let me do this:
Create account
Isn’t it amazing that not only that, we can also create an account with the command userAdd, so we can create a CoCaCoder account:
Directly returned, that instruction is successful or not? Let’s try creating a password for our account using the passwd command:
Add a password
Can see ah, turn over a long record, Linux on your input password for a series of tests, so hard operating system is not worth you for its point 👍, of course, you like Linux can not see, but if you give me a point, I can see, open a joke, no matter how to say it has been successful.
Group to add
Just like our society, more people will constitute a group, the account has, but also can’t be lonely, must join the group, yi, I just didn’t join the group ah, didn’t join the group as a rogue, what does that mean? Means you didn’t join the group, the operating system will default to your group, group name is your user name, the entire group is yourself, also called private user groups, and then a few days later, xiao Ming, a good relationship with you also want to join your group, then your group from private groups into ordinary users, and users of the system, there are users of the system.
See yet? What kind of circle to know what kind of people, so we should be more optimistic about the article, you can enter the high-quality circle, ha ha, just say not practice false handle, since it is experience, I will take you to experience in the end, first see if there is, and then engage in.
See yet? I marked it all out for you. Can we play? I’m going to do that, I’m going to go back, and we’ll see in a second.
User files
Linux operates on command lines and files, so to see if this works, we need to find the corresponding file. The group information is put in the /etc/group file, and we need to look at the account information in the /etc/passwd file.
The user Id should be the same as the group name. The user Id should be the same as the group name. The /bin/bash location is used to configure the default interactive command line after login.