工作中常用的命令

1.unzip zip  archive 

 

tar -cf  new.tar path

 

tar -xvf  file.tar

 

2.transfer files

 

   scp  username@ip:path   path

 

   first path  传输文件路径

 

   second path  存储的路径

 

   安装ssh服务器

 

  apt-get  install

 

3. find file content

 

  find -name   xx | xargs grep

 

4.find store

 

   df -m

 

5 find process

 

6   create  soft link

 

    ln  -s

 

7 File access permissions

 

   chown  -R  ownername  filename

   chgrp   -R  groupname filename

   chmod  -R 777

 

 

Linux 学习

 

 

I/O主要操作

 

   不带缓存的I/O

 

  open

 

  write

 

  read

 

  原子操作(atomic operation )

 

  When you append in the file,you need to select the  position of the file .switch other process  ,the process yet read

 

  the end position of the file,and write in the file, then switch process ,and wirite in the file .

 

  the  two   seek  and wirte do not atomic operation

  •   File type

          -  file  d directory  l  link   b  block 

  •  File attribute(property)

           read  write  execute 

 

           owner  group  other

     

     

     

     

     

     

     

     

     

     

     

        

     

     

     

     

    评论
    添加红包

    请填写红包祝福语或标题

    红包个数最小为10个

    红包金额最低5元

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

    抵扣说明:

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

    余额充值