Linux Section basic commands

Source: Internet
Author: User

Linux: All Files

Fast switch Virtual terminal CTRL+ALT+F1-F6, can switch the first, the second, to the sixth unit.

Su root user, switch between ordinary users.

Date can query the time, and the-s option can set the time. S is the first letter of set.

Who queries current users working on the system

WhoAmI Query the name of the user who is currently logged in to Linux

The CAL queries the Gregorian calendar, or it can query the Gregorian calendar for a certain January of a year.

Man queries the description of an instruction. Marshal said, man ls, you can. There is another way, LS--help.

Clear function is to clear the screen. Shortcut keys are ctrl+l.

Useradd Adding a new user

passwd set the user password.

Touch New File

mkdir new folder. -P, recursively creates all the parent directories. P is the first letter of the parent.

LS browses the current file. -a command to view all the files that contain the hidden file. -L lists the details for each file.

RM Delete File

RmDir Delete the folder. The-f option, which is forced to delete, is deleted directly, and F is the first letter of force. -r option, recursive delete.

CP copies files and can rename files while copying them. -A, which indicates the details of the copied file, try to keep the structure and properties of the file, Archive (archive) the first letter. -R, recursively copying files.

Echo repeats things.

Which ways to find commands

Alias Alias

PWD find the path that is currently located

The CD switches the current directory to the destination directory. CD:, switch to the upper-level directory.

Some of the important directories in Linus.

Bin directory: Store frequently used executable files

Sbin directory: A common executable file for the storage system

Media directory and MNT directory: storage of removable hardware resources

Dev Directory: Store the device files directory. The abbreviation for device.

Etc Directory: Store the configuration file directory.

Linux Section basic commands

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.