linux常用命令
linux常用命令
ls 瀏覽目錄
ll 瀏覽目錄
mkdir 創建新目錄
rm -r 刪除目錄
cd 進入某個目錄
top
clear:
拷貝目錄到:另一個目錄
cp -r /opt/temp_hosts/test /opt/
cp -r /opt/temp_hosts /opt/test
cp /opt/temp_hosts/* /opt/hosts
netstat
netstat -a
netstat -ano
netstat -ano可知占用端口的應用程序對應的PID,
查看linix ip 地址:ifconfig
top
ls
ps -aux
date
mysql服務 啟動:進入ssh: 輸入:service mysql start
關機 shutdown -h now
備份打包命令
tar -czvf /data/backup/hosts090303.tar.gz /data/hosts/
linux修改目錄屬性
chmod -R 777 /srv/www/htdocs/diguoCMS 修改整個目錄及其子目錄的權限
chmod -R 777 /srv/www/htdocs/Dedecms
啟動服務:
apache
/usr/sbin/apache2ctl start
最後更新:2017-04-02 00:06:45