1. x switching between winsows and text mode
● [CTRL] + [alt] + [F1] ~ [F6]: text interface to log on to tty1 ~ Tty6 terminal.
● [CTRL] + [alt] + [F7]: graphic interface desktop.
In the two login modes of Linux, a logon environment with only plain text interfaces (the so-called execution level 3) can have tty1 ~ Tty6 Terminal interface, but there is no graphical window interface environment. The other is the graphical interface login environment (the so-called execution level 5), which
Tty1 ~ Tty7, where tty7 is the default graphical environment after the boot is complete.
The command to start the X Window in Linux in plain text is startx.
2. Command for displaying time and date: Date
// 1. Use Finlay @ finlay-Lenovo-G470 directly :~ /Download $ date Friday July 12, 2013 17:33:04 CST // 2. format the output Finlay @ finlay-Lenovo-G470 :~ /Download $ date + % Y/% m/% d2013/07/12
3. display time and date: Cal
// 1. Output calendar Cal of the current month // 2. Output calendar Cal of the year 2013 // 3. Output calendar Cal of a Month 7 2013
4. Simple calculator: BC
finlay@finlay-Lenovo-G470:~$ bcbc 1.06.95Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006 Free Software Foundation, Inc.This is free software with ABSOLUTELY NO WARRANTY.For details type `warranty'. 4+9*(3-2)13
To calculate decimal places in BC, use scale to set the decimal places.
finlay@finlay-Lenovo-G470:~$ bcbc 1.06.95Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006 Free Software Foundation, Inc.This is free software with ABSOLUTELY NO WARRANTY.For details type `warranty'. scale=61/8.125000
5. Use of the tab key
6. Online Help System
● Man page
● Info page
The usage of info is similar to that of man. It is used to query command usage or file format. Info page splits the file data into one paragraph, and each section is written on its own page, in addition, there is a "HYPERLINK" similar to a webpage in each page to jump to different pages. Each Independent page is also called a node ).
7. Ultra-simple text editor: Nano
8. Correct shutdown Method
● Write data synchronously to the sequence in the hard disk: sync
● The usual shutdown command: Shutdown
● Restart and shut down: reboot, halt, and poweroff
● Switch execution level: init
Run level 0: Shutdown
Run level 3: plain text mode
Run level 5: graphic interface mode
Run level 6: restart