20141206 Study Notes

Source: Internet
Author: User

Basic principles of Linux:

1, consisting of a small program with a single purpose; a combination of small procedures to complete complex tasks;

2, all documents;

3, try to avoid capturing the user interface;

4, the configuration file is saved in plain text format;


Command prompt, Prompt,bash (shell)

#:root

$: Normal User

Command format:

Command option Parameters

Options: Short Options-Multiple options can be combined:-a-b =-ab; Long option--

Parameters: The Action object of the command

Virtual Terminal (terminal): Ctrl_+atl+f1-f6

User switch command: su [-l] User name

Change Password command: passwd original password New password

Gui:gname KDE Xface

Cli:sh bash CSH ksh zsh tcsh

LS: Lists files under the specified path

-L: Long format

File type: the

-: Normal file (f)

D: Catalog file

B: Block device files

C: Character device file

L: Symbol Connection File

P: Command Pipeline file

S: Socket file

File permissions: 9-bit, every 3-bit group, each group: rwx (Read, write, execute)

Number of hard links to files

The owner of the file

Group of files

File Size: Unit bytes

Timestamp: The last time it was modified

Access: Access

Modified: Modify, File content changed

Change: change,metadata, meta data

-H: Do unit conversions

-A: Show hidden files starting with.

. Represents the current directory

.. Represents the parent directory

-A

-D: Display the directory's own properties

-i:index Node,inode

-R: Reverse Display

-R: Recursive display

PWD: Show work current directory


Cd:

CD ~username: Enter the designated home directory

CD-: Switch back and forth between the current directory and the previous directory

Command type:

Built-in commands (shell built-in)

External command: There is a command name corresponding executable file under a path in the file system

Type: display specifies which type to belong to

Environment variables: named memory space

Name=jerry

Path: Paths separated by colons

Date: Time Management

Get command Use Help

Internal Command help command

External command--help

Command manual: Manual

Whatis command to see which chapter

Man:command

Sub-chapters:

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

2: System call

3: Library User

4: Special files (device files)

5: File Format (configuration file syntax)

6: Game

7: Miscellaneous (Miscellaneous)

8: Management Command (/sbin,/usr/sbin,/usr/local/sbin)

<>: Required

[]: Optional

...: can occur multiple times

| : Choose one More

{}: Grouping

Name: command names and features brief description

Synopsis: Usage notes, including available options

DESCRIPTION: A detailed description of the command function, which may include the meaning of each option

Options: Explaining the meaning of each option

Files: The configuration file associated with this command

BUGS

EXAMPLES: Using the example

See ALSO: Another reference

Flip Screen:

Turn back one screen: SPACE

Turn One line forward: b

Turn back one line: ENTER

Turn One line forward: K

Find:

/keyword: Backwards

N: Next

N: Previous

? KEYWORD: Forward

N: Next

N: Previous

Q: Exit

Hwclock

-W: System time to hardware time

-S: Hardware time to System time

Online Brochure

Info COMMAND

Document:/usr/share/doc

Cal: Calendar


20141206 Study Notes

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.