启动图形界面:

#startx &    

调整语言为中文 (中文字符编码)

#localectl -h    查看帮忙

#localectl list-locales  查看有哪些语言

#localectl set-locale LANG=zh_CN.utf8 

#locale                 查看当前语言环境

ssh 登陆:  远程连接 :ssh协议: secure shell

查看ssh的22端口有没有开通

#ss -tnl         TCP 数值监听    tcp  numeric  listening

                      查看系统是否监听于TCP协议的22号端口   :22

查看IP地址:

#ifconfig

#ip addr list  

查看防火墙有没有开启:

#iptables -L -n   查看防火墙开启情况

#iptables -F 清空防火墙    (只对当前有效)

#systemctl stop firewalld.service  停止防火墙服务 (当前有效)

#systemctl disable firewalld.service  禁用防火墙服务(永久有效)

#service iptables stop  (centos6当前有效)

#chkconfig iptables off  (centos6 禁用)

# chkconfig iptables off (设置自动启动为关闭)

# chkconfig --del iptables (移除开机自动启动)

查看当前使用的SHELL

#echo $SHELL

终端切换:

ctrl+alt +f[1-6] 虚拟终端6个

ctrl+alt +f7 图形终端  (centos6固定)

centos7 在哪 个虚拟终端启动,即位于哪 个虚拟终端。

物理终端:console

虚拟终端:tty

串行终端:ttys

伪终端:通过远程的终端即伪终端   pty

linux哲学思想之一:一切皆文件。

物理终端文件:/dev/console

虚拟终端文件:/dev/tty#

串行终端文件:/dev/ttys#

伪终端文件:/dev/pts/#