"Self-learning Linux" Linux operating system and common commands

Source: Internet
Author: User
Tags parent directory

1. Command Prompt
#: Root
$: Normal User

2. Command Format
[command option parameter]
Options:
Short Options:-
Multiple options can be combined:-a-b =-ab
Long options:--
Parameters:
Action object of the command

3. User Switching
Command format:
[SU user name]

4. Common Commands
Pwd:printing Working Directory
Show Current Location

Ls:list List
-L: Long format
File type
-: Normal files (file)
D: Catalog files (directory)
B: Block device files (blocks)
C: Character device file (character)
L: Symbolic Link files (symbolic link file)
P: Command pipe file (pipe)
S: Socket file (socket)
File permissions:
9-bit, each 3-bit group, each group: rwx (Read, write, execute)
Number of hard links to files
Owner of the file
Genus Group of files
File size (size), in bytes
Timestamp (timestamp): Last Modified Time
Access: Access
Modified: Modify, the file content has changed
Change: change,metadata, meta data
-H: Do unit conversions
-A: Displays all directories, including the. Start with hidden files and normal files
. Represents the current directory
.. Represents the parent directory
-A: Show only hidden directories
-D: Display the directory's own properties
-i:inode No.
-R: Reverse Display
-R: Recursive (Recursive) display

Cd:change Directory
CD ~username: Enter the home directory of the specified user
CD-: Switch back and forth between the current directory and the previous directory

Type: shows what kind of instruction it belongs to
Command type:
Built-in commands (shell built-in)
External command: There is an executable file corresponding to the command name in a path on the file system

Date: Time Management
System clock
[Date MMDDHHMM[[CC]YY][.SS]]

Hwclock: Hardware Time
-W: Hardware time synchronization system time
-S: System time synchronization hardware time

Cal:calendar Viewing calendars
[Cal MOUTH Year]

5. Get the use of commands to help:
Internal command:
[Help COMMAND]
External command:
[COMMAND--help]
Command manual: Manual
[Man COMMAND]
Command chapters:
[Whatis 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
... : multiple times can occur
|: Choose one More
{}: Grouping

Mans:
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
BUGS:
EXAMPLES: Using the example
See ALSO: Another reference

Flip Screen:
Turn back one screen: SPACE
Turn One screen forward: b
Turn back one line: ENTER
Turn One line forward: K

Find:
/: Find backwards
N: Next
N: Previous
?: Find Forward
N: Next
N: Previous

Online Documentation:
[Info COMMAND]

Help Documentation Catalog:/usr/share/doc

This article is from the "Maskpaperman" blog, make sure to keep this source http://mrros.blog.51cto.com/9403540/1840635

"Self-learning Linux" Linux operating system and common 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.