1. 程式人生 > >linux基礎命令

linux基礎命令

iptable bit top 類型 基礎命令 list 共享庫 轉換 start

1

① 命令行切換圖形界面:startx &

② 顯示文字轉換命令行輸入:localectl list-locales

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

2

① ssh協議secure shell:

[email protected]~】#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基礎命令