(Linux184.docVIP

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
  4. 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
  5. 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们
  6. 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
  7. 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
(Linux184

Name Function Properties useradd Add a user to the system sudo useradd name addgroup Add a group to the system sudo groupadd name cat Display the contents of a file Display a file: cat myfile.txt Concatenate two files: cat file1.txt file2.txt union.txt cd Change directory Move to the sybase folder: cd /usr/local/sybase Change to another folder: cd /var/log Quickly get back: cd - Move up one folder: cd .. Back to your home folder: cd fdisk Partition table manipulator for linux 观察硬盘之实体使用情形与分割硬盘用  一、在 console 上输入 fdisk -l /dev/sda ,观察硬盘之实体使用情形。 二、在 console 上输入 fdisk /dev/sda,可进入分割硬盘模式。 1. 输入 m 显示所有命令列示。 2. 输入 p 显示硬盘分割情形。 3. 输入 a 设定硬盘启动区。 4. 输入 n 设定新的硬盘分割区。 4.1. 输入 e 硬盘为[延伸]分割区(extend)。 4.2. 输入 p 硬盘为[主要]分割区(primary)。 5. 输入 t 改变硬盘分割区属性。6. 输入 d 删除硬盘分割区属性。 7. 输入 q 结束不存入硬盘分割区属性。 8. 输入 w 结束并写入硬盘分割区属性。 chgrp Change group ownership chmod Change access permissions Deny execute permission to everyone:?chmod a-x?file Allow read permission to everyone: chmod a+r?file Make a file readable and writable by the group and others:? chmod go+rw?file Allow everyone to read, write, and execute the file and turn on the set group-ID:? chmod =rwx,g+s?file? u 表示该档案的拥有者,g 表示与该档案的拥有者属于同一个群体(group)者,o 表示其他以外的人,a 表示这三者皆是。 + 表示增加权限、- 表示取消权限、= 表示唯一设定权限。 r 表示可读取,w 表示可写入,x 表示可执行,X 表示只有当该档案是个子目录或者该档案已经被设定过为可执行。 此外chmod也可以用数字来表示权限如 chmod 777 file , 语法为:chmod abc file 其中a,b,c各为一个数字,分别表示User、Group、及Other的权限。 r=4,w=2,x=1 若要rwx属性则4+2+1=7; 若要rw-属性则4+2=6; 若要r-x属性则4+1=7。    chmod a=rwx file 和 chmod 777 file 效果相同 chown Change file owner and group Permission : root SYNTAX : chmod [-cfhvR] [--help] [--version] user[:group] file... 将档案 file1.txt 的拥有者设为 users 群体的使用者 jessie :    chown jessie:users file1.txt 将目前目录下的所有档案与子目录的拥有者皆设为 users 群体的使用者 lamport : chmod -R lamport:users * clear Clear terminal screen: clear cmp Compare two files Compare two files, and if they differ, tells the first byte and line number where they differ. cmp tnsnames.ora tnsnames.old cp Copy one or more files to anot

文档评论(0)

84537592 + 关注
实名认证
文档贡献者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档