Redhat basic operation of Linux

Source: Internet
Author: User


############### #虚拟机基本操作 ##########################


[[email protected] desktop]$ rht-vmctl start Desktop # # # #开启desktop虚拟机

# # # #操作命令 (hostname +virtual machine control) + operation mode + Operation Object ######
Starting desktop.
[Email protected] desktop]$ rht-vmctl View Desktop # # # #显示开启的虚拟机desktop
[[email protected] desktop]$ rht-vmctl Reset Desktop # # # #重置desktop虚拟机
Is sure you want to reset desktop? (y/n) y # # # #确认是否重置desktop虚拟机
Resetting desktop.
Powering off desktop.
Creating Virtual machine disk overlay for Rh124-desktop-vda
Creating Virtual machine disk overlay for RH124-DESKTOP-VDB
Starting desktop.
[[email protected] desktop]$ rht-vmctl start Desktop
Error:desktop not started (is already running)
[Email protected] desktop]$ rht-vmctl poweroff Desktop # # #关闭desktop虚拟机
Powering off desktop.
#################################### #end ###############################################

[Kiosk @ foundation19 Desktop] $
User name Host name directory identity prompt
Kiosk # # #使用这台主机的用户名称, (who is the user who started bash)
Foundation19 # # #运行bash的主机名称, (which host bash is running on)
Desktop # # # #在这台主机的那个目录下运行bash, (in your system directory)
$ indicates that the user running bash is a normal user prompt

# indicates that the user running Bash is a super user prompt

... Is any length
[] The brackets are optional and
<> angle brackets are required to be added.


LS # # # list View
ls-l/test
How commands (parameters) are viewed to see which directory

passwd Student # # #修改student用户密码
passwd # # #为修改用户密码命令
1, the password must be an unordered combination of alphanumeric, and at least 8 bits, the normal user password can not be duplicated with the past
Watch-n 1 passwd-s Student One second monitoring user password information
Passwd-s Student # # #查看用户密码信息
-L # # #锁定用户密码 Lock
-U # # # #解锁用户的密码unlock
-E ##### #强制使用户密码过期 enforce
-N ###### Minimum password expiration minimum
-X ##### #最大用户密码有效期max
-D ##### Remove user password Delete
-W # # # password warning period waring
-I # User password inactive period inactive
################ #end #####################
Gedit Hello.exe Editing the contents of a file
Cat Hello.exe Viewing the contents of a file
Head Hello.exe View the first 10 lines of the file contents
Head-n 5 Hello.exe View the first 5 lines of the file contents
Tail Hello.exe View the following 10 lines of the file contents
Tail-n 5 Hello.exe View the following 5 lines of the file contents
The file type is determined by the contents of the file, and the suffix of the file is unimportant.

File hello.exe### #查看hello. exe files type

File for view ask Price type command

################################

1 Kanji for 3 bytes,
There is one character (bytes) at the end of each line.

Wc-l Test Line count rows
-M statistic character number
-C Statistics byte number
-W Count Count
########################################
History View Enter historical commands
! Number # # # #为执行第几行
! Letter # # # #执行最近以这个字母开始的命令行
Ctl+r # # #查找有关键字的命令行执行

TAB key # # # #可以补全历史命令

Kernel # # #你出门逛街之前要打扮, why to dress up, this is the kernel, this is your mind, is the program of control programs, the mother program
OS # # #提供给应用程序运行的环境
UNIX Linux Windows # # # #都是指的内核
UNIX has iOS, IBM's AIX, etc.
Linux has Android, Redhat, etc.
Lib Library # # # #是 (Machine language statement) shorthand set and
CD switch path relative path # # #在一个相对的空间目录下中找到的文件
PWD shows the absolute path to start with the root directory

This article is from the "12086672" blog, please be sure to keep this source http://12096672.blog.51cto.com/12086672/1855170

Redhat basic operation of Linux

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.