linux系統管理命令

id,groups

[root@CentOS6 ~]# id

uid=0(root) gid=0(root) groups=0(root) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023

w, who,last

image.png

image.png

image.png


-----------
history



--------------------------

cat -n

more,less,tail,head

tail -n 10 install.log 最後 10行

tail  -n +10 install.log 第10行到最後一行

head -n 10 前10行



-------------------------

[root@CentOS6 ~]# which httpd

/usr/sbin/httpd


updatedb,locate

[root@CentOS6 ~]# updatedb

[root@CentOS6 ~]# locate httpd

/etc/httpd

/etc/httpd/conf


-------------------------

ip a

ifconfig

image.png

image.png


curl www.baidu.com

image.png

curl -i -v  www.baidu.com

[root@CentOS6 ~]# curl -k -v  www.baidu.com

image.png

image.png

image.png





發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章