hostname%20查看主機名稱,修改主機名%20vi%20/etc/sysconfig/networkifconfig%20eth0%20192.168.0.1,重啟無效vi%20/etc/sysconfig/network-scripts/ifcfg-eth0%20修改永久有效uname%20-a%20查看系統(tǒng)的版本mount%20掛載硬盤
>>>%20mount%20-t%20iso9660%20-o%20ro%20/dev/cdrom%20/mnt/cdrom%20%20#%20%20將光驅(qū)掛載到/mnt/cdrom%20%20-t%20表示文件類型%20%20%20-o%20表示類型%20%20ro為只讀(readonly)
>>>%20mount%20-t%20cifs%20//192.168.1.100/tools%20/%20%20%20#加載windows共享%20
>>> umount /mnt/cdrom
>>> du -sh /etc # 查看文件的大小
>>> service --status-all # 查看所有的后臺服務
>>> service network restart # 重啟網(wǎng)路服務
# 系統(tǒng)的啟動級別 vim /etc/inittab
# 0 - halt (Do NOT set initdefault to this)
# 1 - Single user mode
# 2 - Multiuser, without NFS (The same as 3, if you do not have networking)
# 3 - Full multiuser mode
# 4 - unused
# 5 - X11
# 6 - reboot (Do NOT set initdefault to this)``
# 一般就是3
>>> chkconfig iptables --list # 查看iptables的啟動級別
>>> chkconfig iptables off # 關閉iptables自動啟動
>>> mkdir aaa
>>> mkdir -p aaa/bbb/ccc #循環(huán)創(chuàng)建目錄,父目錄不存在則創(chuàng)建
>>> rm -rf aaa
>>> mv aaa anglebaby
>>> echo "i miss you,my baby" > somefile.1
>>> tail -10 install.log
>>> tail -f install.log
>>> tail -F install.log
>>> chmod u+x aaa # 給aaa的擁有者添加一個可執(zhí)行權限
>>> chmod g-r aaa # 給aaa的所屬的組刪除一個可讀權限
>>> chmod o+w aaa # 給其它的用戶添加一個可寫權限
useradd angela 新增用戶
passwd angela 添加密碼,按照提示輸入
上一個教程:Linux之a(chǎn)t命令
下一個教程:LINUX常用命令