linux命令及Shell

mkdir   -p    /home/hello/hello        -p表示递归创建            

rmdir只能删除空目录 

rm   aa.jpg

rm -r   hello

 

cp   /home/hello/11.txt    /temp

cp  -r  /home/hello   /temp    -r表示复制目录

 

mv  移动或者改名

mv  ./aa/jpg   ./bb.jpg

mv   /home/usb/pvas_web     /home/apach-tomcat8.0/webapps/

 

touch   创建文件

cat   tac    more   less  查看文件

ln  -s   源文件    生成的文件名

 

chmod    -R    755    pvas_server

 

wall     给登陆的其他用户发消息

 

locate  

 

grep    -i   www.baidu.com  hello2/file.list           (在file.list这个文件中查找www.baidu.com 的行,不区分大小写)

 

gzip   2.txt      

 gunzip  2.zip

 

tar -zcvf   hello.tar.gz   hello4       c创建  v详细  f制定文件

tar  -zxvf  hello.tar.gz      x解压

 

shutdown  -h now 关机

shutdown  -r  now 重启    init 6     reboot

 

posted on 2017-05-21 23:13  编世界  阅读(104)  评论(0编辑  收藏  举报