Linux Learning Notes-basic commands, shortcut keys, and understanding virtual machines

Source: Internet
Author: User

Virtual machines
[[email protected] desktop]$ rht-vmctl start Desktop # # #开启
Starting desktop.
[Email protected] desktop]$ rht-vmctl View Desktop # #显示
[[email protected] desktop]$ rht-vmctl stop Desktop # #正常关闭虚拟机
[Email protected] desktop]$ rht-vmctl poweroff Desktop # # #强行关闭

[[email protected] desktop]$ rht-vmctl reset Desktop # # #重置虚拟机
[Email protected] desktop]$ rht-vmctl fullreset Desktop # # # #完全重置


Gnome-terminal gnome:linux System Desktop Terminal: Terminal


Not list-----> username:root--------->passwd:redhat



############################ #shell ############################
What is a shell? Interpreter for protecting the kernel.
Bash (Bource again shell) is a shell of many types, is the Bourne shell extension, feature-enhanced version.
[Email protected] desktop]$ gnome-terminal # # #用命令开启bash
[[Email protected] desktop]$ Exit # # #关闭当前的shell

[Email protected] desktop]$
Kioks # #开启shell的用户
@ # #分隔符
Foundation0 # #主机的短名称, which means the shell is open on that console.
Desktop # #表示你在系统的什么位置
$ # #身份提示符中的普通用户, the Super user's prompt is: #


################## #切换用户 #################
[[email protected] desktop]$ Su-the user name # # # already exists in the system #切换用户身份



##################### #虚拟控制台 ###################
CTRL+ALT+F2-F6 # # #进入虚拟控制台
ctrl+alt+f1| F7 # # #回到图形



################### #在shell中如何使用命令 ###################
1. Commands must be entered after the prompt
2. How to enter the command
Command parameter target
Parameters are specified for the command function
-Parameter # # # #单词的缩写
--Parameter # # # #单词的全拼
3. Help
Command--help
"Content" # # #内容选加
< content > # # #内容必加
Content ... # # #内容个数任意
4.
CTRL +c # # #撤销未执行的命令



############################# #gnome中的常规操作 ###########
1.login
For GUI
For text

2.
ctrl+alt+ | Down # # # #切换工作界面

3.
Ctrl+alt+l # # #锁屏

4.
Shell Open Mode
Right Jian
Applications--> commonly used---->shell
Set shortcut keys Gnome-terminal

5. System New Initialization
Shutdown
Poweroff|init 0|shutdown-h now ###-h power off
Restart
Reboot| Init 6 |shutdown-r Now ###-r restart after shutdown


############################## #简单命令 ########### #33
Date

Watch-n 1 Date # #监测date命令每秒钟执行一次
-N Interval time
-D Change where highlight

Date Month month every day hour minute. seconds seconds # #更改时间


passwd

passwd Username # # #更改用户密码 (only Superuser root can)

passwd # # #普通用户修改自己的密码

Ordinary users can only modify their own password, and must know their original password, the change password must be greater than 8 bits, can not be duplicated with the original password characters

Passwd-l Username # # #冻结普通用户
Passwd-u Username # # #解锁冻结帐号



File # # #查看文件类型

Cat file name # # #查看文件所有内容到文件的最后, displayed to the current terminal
Less file name # # #查看文件所有内容从文件的开始, press Q to exit
Head-Digital file name # # #文件内容前多少
Tail-Digital file name # # #文件内容后多少

Wc-l # # #行数
-C # # #字节数
-M # # #字符数
-W # # #单词数
-L # # #显示最长行的长度


TAB key
File names, commands, and command parameters that exist in the system

#################### #历史调用 #################
! Number # # #执行第多少条命令
! keyword # # #执行最近一条以关键字开头的命令
ctrl+r+ Keyword # # #调出最近一条含有关键字的命令
Up and Down keys # # #从最后一条命令开始向前查看或者向后查看
History # # #查看历史
HISTORY-C # # #清除历史

##################### #快捷键 ###################
CTRL + A cursor moves to the beginning of the line
+ e cursor moves to end of line
+ u cursor position deleted to beginning of line
+ k cursor position deleted to end of line
+ R to bring up the most recent command with a keyword
+ left | Right cursor moves in Word units
+ C undo to enter the command
+ D Close the current environment
+ SHIFT + t # #在现有shell中重新打开一个table
+ SHIFT + pageup|pagedown Toggle Table
+ ALT + L lock screen
+ ALT + up | down switch Work interface
+ ALT + F1|F7 into the graphical interface
+ ALT + F2-f6 into Virtual Console

This article is from the "12148275" blog, please be sure to keep this source http://12158275.blog.51cto.com/12148275/1896940

Linux Learning Notes-basic commands, shortcut keys, and understanding virtual machines

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.