Linux 新手的學習筆記

來源:互聯網
上載者:User

標籤:style   http   color   檔案   html   linux   

1、ln命令 例: /bin/ln -snf /var/www/html/test /var/www/test

2、cp命令 例: cp -r 地址1 地址2

3、rm命令 例: rm -rf 地址

4、vi命令

5、chkconfig命令 例: chkconfig httpd on  (開機自啟動httpd服務)

6、/etc/inittab 在這裡修改是否預設進入圖形介面,3為命令列,5為圖形介面

7、/etc/sysconfig/network-scripts/ 在這裡修改網路相關的內容

8、useradd -d 目錄名 使用者名稱(添加使用者)

  passwd 使用者名稱 (修改使用者密碼)

  userdel -r 使用者名稱(刪除使用者,-r代表刪除使用者目錄,一般為/home/使用者名稱)

  cat /etc/passwd (查看所有使用者,第三列大於500的為手動添加使用者)

9、crontab -u 使用者名稱 (查看使用者的crontab檔案)

  crontab -l (查看目前使用者的crontab檔案的詳細資料)

  crontab -e (編輯目前使用者的crontab檔案)

與php相關的命令

1、exec命令 例:exec(命令,數組,返回狀態)

2、system_exec命令 例: system_exec(命令)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.