iT邦幫忙

1

Linux 檔案相關指令

檔案相關指令

  1. chgrp: 改變檔案所屬群組
  2. chown: 改變檔案擁有者
  3. cp: 複製檔案
  4. chmod: 改變檔案的權限
  5. ls: 顯示目錄下之檔案

指令用法

  • chgrp

chgrp group file

  • chown

chown user file

※更改擁有者與群組

chown user:group file

  • cp

cp source file

  • chomd

chmod authorized file

※更改擁有者與群組

chmod u=rwx,go=rx file

※所有(a=all)身分皆有w權限

chmod a+w file

※所有(a=all)身分皆無w權限

chmod a-w file

  • ls

查看目錄檔案(顯示隱藏檔 a)

ll(=>ls -l) -a


圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言