码迷,mamicode.com
首页 > 系统相关 > 详细

Linux_day01_primaryCommand

时间:2015-09-17 16:55:34      阅读:177      评论:0      收藏:0      [点我收藏+]

标签:

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

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

 

Linux_day01_primaryCommand

标签:

原文地址:http://www.cnblogs.com/siyi/p/4816557.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!