D1-linux-centos Learning to punch in

Source: Internet
Author: User

Starting from the end of January, I want to learn a new operating system while continuing to learn python.

While looking at many of the programmers ' JD, many of them require familiarity with Linux, and the Ben Method also mentions programming under Linux.

-----------------------------------------------------------------------

First installed Ubuntu, very smooth, no difficulty, and the first time found that the Linux interface is so concise, beautiful.

Later, due to the beginning of contact with the "bird's Linux Private dishes" This book, then reinstall CentOS. The installation process was tortuous, and eventually it was done on the virtual machine.

The sight book is here today, start to study happily ~ ~ ~ La La

[2016/2/3 9:48]

-----------------------------------------------------------------------

Start organizing D1 's notes

command-line mode: Terminal interface-(Terminal or Console) "Run Level 3"-#也叫作 "plain text environment"

Linux By default has 6 terminal to let the user log in: Ctrl + Alt + F1 ~ F6 Each terminal name corresponds to: tty1~tty6

Ctrl + Alt + F7: Cut into the graphical interface "run Level 5"

If you enter Linux in a plain text environment, you can enter the "startx" command to call out the graphical interface after terminal login.

Enter "exit" to unregister the system.

Shell: command-line mode after login to get the program

  echo $LANG: Displays commands for the current language

Change the language into English: Lang=en_us

Operation of some basic commands

  Date : displays dates and times

"Mon-17:02:52 CST 2009" is displayed after input

Date-related parameter features:

Date +%y/%m%d

2009/8/17

Date +%h:%M

17:04

cal:  showing the current month's monthly calendar

Cal: Show year-round annual calendar

Cal ten: October 2009 Calendar

  BC: a simple calculator

BC By default, only output integers, to output decimals, it is necessary to execute scale=number (number to fill in numbers, to show the corresponding number of digits after the decimal point)

Some important function key combinations

  Tab: features with command completion and file name completion

Enter the command CA "tab" "tab", and all the commands starting with the CA are listed.

Cat Adminstrator.log only need to enter the cat admi How to directory without the name of the file, he will automatically complete.

Ctrl + C: can immediately interrupt the currently running program

Ctrl + D: equivalent to the function of input exit, end of input or end of File EOF

Mans

  Mans=manual

Enter man date to view all descriptions of date.

In the man program enter "/" +string,#/date can be active down to find keywords,? Date can query the keyword up.

"Q" Exits the man program, page up, page down to page.

Man-f man, the query must be the full name, which is the command of any man. #命令必须完全是man

Man-k man, as long as there is a man in the system documentation will be listed. #只要说明文件包含man, it will be listed.

[2016/2/4 13:55]

--------------------------------------------------------

  

D1-linux-centos Learning to punch in

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.