Laruence's Linux private house dish-Basic Learning 1

Source: Internet
Author: User

The hard disk is divided into two areas: one is the information area for storing the hard disk, which is called the primary boot partition (MBR) and the other is the place where the actual file data is stored.
MBR is the most important part of the entire hard disk and records two important information: boot program and disk partition table.
 
1. Command for displaying date: date
# Date + % Y/% m/% d
# Date + % H: % M
 
2. Run the "cal" command to display the calendar.
# Cal 2011
 
3. Easy to use calculator: bc
 
4. Important hotkeys: [Tab], [Ctrl]-c, and [Ctrl]-d
[Tab]: Command completion key
[Ctrl]-c: Command termination key
[Ctrl]-d: Enter the end key.
 
5. Online Help: man page/info page
Meanings of common numbers in man commands:
1: commands or executable files that can be operated by users
2: Functions and tools that can be called by the system core
3: some common functions and libraries)
4: Device File description
5. Set the file format or the format of some files.
6: games)
7. Conventions and protocols, such as Linux standard file systems, network protocols, and ASCII codes
8: Available management commands of the system administrator
9: Kernel-Related Files
 
Man page components:
NAME: brief command and data NAME Description
SYNOPSIS: Brief introduction to the command syntax (syntax)
DESCRIPTION: A complete DESCRIPTION. Take a closer look at this part.
OPTIONS: For the SYNOPSIS section, list all available parameters
COMMANDS: COMMANDS that can be issued in this program when the program is being executed
FILES: FILES used, referenced, or linked to by this program or data
See also: Other References related to this command or data
EXAMPLE: Examples for Reference
BUGS: whether there are related errors
 
[Page Up], [Home], [End],/string ,? String, n, N, q
 
Man-f, man-k
 
Info is similar to man
 
6. Correct shutdown method (shutdown, reboot, init, halt)
Observe the system Usage Status: who command to check who is online. Nestat-a checks the online status of the network. Ps-aux
Synchronize data to disk: sync
 
7. Enter single-user mode
 
8. Linux User identity and user group Record Files
/Etc/passwd,/etc/shadow,/etc/group,/etc/gshadow
 
9. File Permission
Change User Group chgrp
Change the file owner chown
Change 9 attributes chmod

Author "allenhu0320"
 

Related Article

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.