Common commands for getting started with Linux

Source: Internet
Author: User

Common commands for getting started with Linux

1. Linux entry and exit

Go to Linux:

You must enter your account. You can create the following two accounts during system installation:

1. root-Super User Account (System Administrator), which can be used to do anything in the system.

2. Common users-this account is used by common users and can perform limited operations.

Generally, Linux users are common users, while System Administrators generally use superuser accounts to perform system management. If you only need to complete some tasks that can be completed by a common account, we recommend that you do not use a Super User Account to avoid accidental damage to the system. Affects the normal operation of the system.

User logon is divided into two steps: Step 1: Enter the user's login name, and the system recognizes the user based on the login name; Step 2: Enter the user's password, which is a string set by the user, other users are kept confidential and keywords used by the system to identify authentic and false users during logon.

After you enter the user name and password correctly, you can access the system legally. Screen Display:

[Root @ loclhost/root] #

Then you can perform various operations on the system. Note that the Super User prompt is "#", and the other user prompt is "$ ".

Change Password

To better protect the security of your account, Linux allows you to change your password at any time. The command used to change the password is passwd, which will prompt you to enter the old password and new password, then, the user is asked to confirm the new password again to prevent the user from accidentally pressing the wrong key. If you forget the password, you can apply to the system administrator to reset the password.

Virtual console

Linux is a real multi-user operating system that allows multiple users to log on at the same time. Linux also allows a user to log on multiple times, because like Linux and UNIX, the virtual console access mode is provided, allowing users to log on multiple times from the console at the same time. The choice of the virtual console can be achieved by pressing the Alt key and a function key, usually using the F1-F6 For example, after the user login, click the Alt-F2 key, the user can see "login:" prompt, the user sees the second virtual console. Then you just press the Alt-F1 key to go back to the first virtual console. By default, a newly installed Linux system allows users to access the first six virtual consoles with the Alt-F1-to-Alt-F6 key. The virtual console allows users to work on multiple consoles at the same time, truly reflecting the characteristics of multiple users in the Linux system. You can switch to another virtual console to start another job when the work on a virtual console has not been completed.

Exit System

If you want to exit the system as a super user or a common user, enter the exit command at the shell prompt.

View Command help information

Man command

The man command is used to query the usage and parameters of commands and programs.

For example:

Man ls

The basic format and usage of the ls command are displayed.

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • Next Page
[Content navigation]
Page 1: Common Linux commands 1 Page 2: common Linux commands 2
Page 1: Common Linux commands 3 Page 4: common Linux commands 4
Page 5: common Linux commands 5 Page 6: common Linux commands 6

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.