Linux heaven Road (iv) introduction of Linux interface

Linux interface

linux provides a graphical interface for the user interface and text, but many operations still need to operate in order to complete the text interface, many people use more crappy, but also because of the relatively small linux platform of personal applications APP, so that everyone's personal PC installed after inconvenient to use linux, linux so there has been no major breakthrough in terms of a personal PC.

But the servers relative to the server are generally professionals to carry out maintenance. linux application provides a number of services in relation to windows and linux is free and the system is more efficient, it is widely application server, and uses less memory because the text interface, in order to pursue the maximization of resources, so a lot of linux operating system installed when leaving only the text interface.

graphic interface

  • Features: fast chips, friendly interface, large flow mouse operation, waste of resources
  • Common GUI: Gnome KDE

Text interface

  • Features: friendly interface of the poor need to know to use Linux commands, command line operation, saving resources

Interface switching

  • Text to graphics: ctrl + alt + F1 init5 (ubuntu: startx)
  • Graphics to text: ctrl + alt + F2 - F6 init3

terminal

  • Window users and computers to interact command, similar to the windows cmd window

Detailed text interface prompt

[zhangyafei@centos ~]$
zhangyafei 当前用户
centos 计算机名称或部分名称
~ 当前路径  表示家目录
#当前为管理员   $普通用户
使用PS1命令修改提示符
PS1有那些配置,或者说PS1里头都能配置些命令提示符的什么东西:
   \d :代表日期,格式为weekday month date,例如:"Mon Aug 1"
   \H :完整的主机名称。例如:我的机器名称为:fc4.linux,则这个名称就是fc4.linux
   \h :仅取主机的第一个名字,如上例,则为fc4,.linux则被省略
   \t :显示时间为24小时格式,如:HH:MM:SS
   \T :显示时间为12小时格式
   \A :显示时间为24小时格式:HH:MM
   \u :当前用户的账号名称
   \v :BASH的版本信息
   \w :完整的工作目录名称。家目录会以 ~代替
   \W :利用basename取得工作目录名称,所以只会列出最后一个目录
   \# :下达的第几个命令
   \$ :提示字符,如果是root时,提示符为:# ,普通用户则为:$
 PS1='\[\e[32;40m[\u@\h \W]#'

Guess you like

Origin www.cnblogs.com/zhangyafei/p/11579594.html