linux file and directory

1 how to close your computer?
  step 1:sync
  step 2:shutdown -h
  step 3:reboot
  step 4:halt(=showdown -h now +power off)
2 attribute of file
  10 bits
  1:type of file
  2~4:user
  5~7:group
  8~10:others
3 chage group
  eg:chagrp [group name][file name]
4 add a user's group
  eg:groupadd
5 change user
  chown[-R] counter file name/group name file name
     where -R means all subfiles of current file
6 change authority of user's reading,writing and executing
  eg:chmod[-R] xyz(means figure) file name
     where the meaning of -R is as same as chown's
  eg:chown u=rwx,og=rx test/test2
  when add/minus some authorities,you can see that
  eg:chown a-x test/test2
     where u for user,o for others, g for group,a for all
7 umask value
  eg:umask xxx
     if you want to estabish a document,xxx's maximum is 777,
     else common file 666
8 change special attribute of file
  eg:chattr [+-=][ASaci][file or document name]
9 list special attributes of a file/document
  eg:Isattr [-aR][file/document]
10 how to search a file
  eg:which test
     where test is a file
  eg:whereis [-bmsu][file name]
  eg:locate
     if your system has not this command, you can download
     packet   mlocate by using command "yum install -y mlocate"
  eg:find [path][para]

11 linux file types
  eg: - for regular file
      d for directory
      l for link
      b for block
      c for seris device
      s for socket
12 how to estabish hard links or symbolic links
  eg:ln[-s][source file][dst file]


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值