• Linux_day01_primaryCommand


    ----------------------------------------

    ls           //list

        ls -la    //long all    ll

    drwxr-xr-x        //directory 

    ----------------------------------------

    file  a.txt     

    ----------------------------------------

    cd            //change directory

    ----------------------------------------

    midir        //make directory

    -------------------------------------------

    pwd         //print word directory

    -------------------------------------------

    touch   a.txt      //creat file

    -------------------------------------------

    cp test2 test3        //copy

      cp "*.txt" dir2        

      cd mydir/

        cp -r ../mydir  ../mydir2  //copy -recursive

    ------------------------------------------

    mv test2.txt b.txt         //rename move

    ------------------------------------------

    rmdir             //remove directory

    -------------------------------------------

    rm             //remove

      rm -r             //remove recursive 

      rm -rf            //remove recursive force

    -------------------------------------------

    echo  "Hi"     

    echo "hi">a.txt     

    echo "hi,hello">>a.txt

    ------------------------------------------

    tree mydir

    ------------------------------------------

    tar -v                 //verbose

    tar -cf                   //create file

    tar -xvf                  //exclude

      tar -cf  1.tar  a.txt b.txt

      tar -cvf  md.tar mydir

    tar -xvf md.tar

    tar -cvfz  a.tar.gz    a.txt b.txt

    ------------------------------------------  

    chmod  777  b.txt

    chmod 755 b.txt

    chmod u-r b.txt        //user    rwxrwxrwx -->  -wxrwxrwx

    chmod a=x b.txt         //all     rwxrwxrwx ---> --x--x--x   111

    chmod g+w b.txt         //group rwxr-xrwx---> rwxrwxrwx

    chmod o-x b.txt         //other  rwxrwxrwx---> rwxrwxrw-  

    ------------------------------------------

    mount  /dev/cdrom  /mnt/cdr    //将光驱中的内容 以目录的形式挂载到 /mnt/cdr中

    umount  /dev/cdrom        //卸载

    ------------------------------------------

    ifconfig    //interface configeration

    ------------------------------------------

    setup             //改变地址之后  (修改配置文件) 要重新启动服务

    ------------------------------------------

    service network restart  //start stop restart status

    ------------------------------------------

    ping 192.168.1.200    //ping不通: 1.防火墙  2.桥接模式 3.network重启 

    ------------------------------------------

    rpm -ivh  telnet-server-0.17-38.e15.i386.rpm    //install verbose horizontal

        Failed dependencies: xinetd is need by telnet-server-0.17-38.e15.i386.rpm

    rpm -ivh  xinetd-2.3.14-10.e15.i386.rpm

      service xinetd restart 

      service xinetd status

  • 相关阅读:
    COGS 577 蝗灾 线段树+CDQ分治
    BZOJ 1305 二分+网络流
    BZOJ 1066 Dinic
    BZOJ 3544 treap (set)
    BZOJ 3940 AC自动机
    BZOJ 1503 treap
    BZOJ 3172 AC自动机
    BZOJ 2553 AC自动机+矩阵快速幂 (神题)
    BZOJ1901 ZOJ2112 线段树+treap (线段树套线段树)
    BZOJ 3196 线段树套平衡树
  • 原文地址:https://www.cnblogs.com/siyi/p/4816557.html
Copyright © 2020-2023  润新知