首页 > 代码库 > linux基础命令

linux基础命令

1

① 命令行切换图形界面:startx &

② 显示文字转换命令行输入:localectl list-locales

            localectl set-locale LANG=zh_CN.utf8(反之en-US)查看语言locale
③ 查看所用shell类型:
】#echo $SHELL

2

① ssh协议secure shell:

      【root@test~】#ss -tnl

        (查看系统是否监听于TCP协议的22端口)
查看ip(ifconfig)
3
① 确保防火墙是否关闭:
~】#iptables -L -n
centOS 7:(执行)
~】#systemctl disable firewalld.service(先禁用下一步再停止)
#systemctl stop firewalld.service
centOS 6:
]#service iptables stop
]#chkconfig iptables off
4
①,基础命令:
关机命令:
centOS 7:
】#systemctl poweroff(关机)
]#systemctl reboot(重启)

②普通命令语法格式:/bin,/usr/bin,/usrlocal/bin
管理命令语法格式:/sbin,/usr/sbin,/usr/local/sbin

共享库:/lib,/lib64,/usr/bin,/usr/local64,/usr/local/lib,/usr/local/lib64
32tits的库:/lib,/usr/lib,/usr/local/lib
64bits的库:/lib64,/usr/lib64,/usr/local/lib64

linux基础命令