Linux commands basic

Source: Internet
Author: User


1.ls: List Folder directory

-A lists all files (including hidden files)

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/7D/90/wKioL1brXhWAt1iQAAARG5jXOxc820.png "title=" 3.PNG " Style= "Float:none;" alt= "Wkiol1brxhwat1iqaaarg5jxoxc820.png"/>

- L list files and folders for more information

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/7D/93/wKiom1brXYWQ6wPTAAAQt8g5ayg637.png "title=" 4.PNG " Style= "Float:none;" alt= "Wkiom1brxywq6wptaaaqt8g5ayg637.png"/>

More information:

1) The meaning of the first number of digits in the front

-: Normal file

D: Catalog file

B: Block device files

C: Character device file

L: Link Device files

P: Command Pipeline file

S: Socket file

2) The following 9 digits are the permissions for the file or folder, and 3 are a set of

R: Read permissions

W: Write permission

X: Executable Permissions

The first three are the permissions of the current host, the permissions of the middle three genera, and the last three permissions for the other users

3) The number after the permission is the number of times the file or folder has been linked

4) The first root represents the current file owner, the second root represents the group of the current file

5) Size of the file or folder (in bytes),-H: can be converted to size units

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/7D/91/wKioL1brY9GRPm41AAARPJdDyEI003.png "title=" 5.PNG " alt= "Wkiol1bry9grpm41aaarpjddyei003.png"/>

6) Date the file was created

7) Name of the file or folder


2. Man Command: User manual for this command (manual)

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/7D/93/wKiom1brXYWjamhaAAAilNadS8o936.png "title=" 2.PNG " Style= "Float:none;" alt= "Wkiom1brxywjamhaaaailnads8o936.png"/>

Meaning of the symbol:

< > must give the content; [] Optional content

... Can be used more than once; {} group

Man: There are a few commonly seen

Name: command names, brief description

Synopsis: Usage Notes

Description: Detailed description

Options: Explaining the meaning of each option

Examples: Using the example

File: The configuration file associated with this command

Instructions for using man:

Flip Screen:

Front Turn (b) turn backward (space) by one line (Enter) and turn forward (k)

Find:

(/keyword) in the past to look for (? Keyword) looking forward (n) the next (n) Previous

Exit: Q

3.whatis command: You can see the chapter that the command appears

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/7D/90/wKioL1brXHmgwyY8AAASviZYQlo840.png "title=" 1.PNG " alt= "Wkiol1brxhmgwyy8aaasvizyqlo840.png"/>

(1) User command (/bin/,/usr/bin,/usr/local/bin)

(2) System call

(3) Library call

(4) Special documents (equipment files)

(5) file format (configuration file syntax)

(6) Games

(7) Miscellaneous

(8) Management order (/sbin,/usr/sbin,/usr/local/sbin)


4, Linux has two clocks, one is the hardware clock (Real time Clok, referred to as RTC), and the other is the system clock

hwclock/clock: Hardware time

Set Hardware time:

Hwclock--set--date= "03/03/13 10:56" (Month/day/year: minutes: seconds)

Clock--set--date= "03/03/13 10:56" (Month/day/year: minutes: seconds)

Date: System time

Date--set "03/03/13 10:56" (Month/day/year: minutes: seconds)

Sync Time:

Hardware time and System time synchronization: HWCLOCCK--hctosys/clock--hctosys

System time and Hardware time synchronization: Hwclock--systohc/clock--SYSTOHC

5.cal: Calendar

Usage: cal [Options] [[[Day] month] year]

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/7D/93/wKioL1brczuwauyNAAAUaQOep7s102.png "style=" float: none; "title=" 6.PNG "alt=" Wkiol1brczuwauynaaauaqoep7s102.png "/>

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/7D/96/wKiom1brcqyAkZl-AAAzTJXlw1s347.png "style=" float: none; "title=" 7.PNG "alt=" Wkiom1brcqyakzl-aaaztjxlw1s347.png "/>

6, online documentation;

Info Command: A detailed description of the origin of the command

7,Echo "": Output character

-E: color can be displayed

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/7D/96/wKiom1brdCKR1FctAAALf8gfUVU108.png "title=" 8.PNG " alt= "Wkiom1brdckr1fctaaalf8gfuvu108.png"/>

8. File: View files Type

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/7D/93/wKioL1brdX7B9wVYAAAS_7AvtpY026.png "title=" 9.PNG " alt= "Wkiol1brdx7b9wvyaaas_7avtpy026.png"/>

Linux commands basic

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.