Shell编程基础.doc版
3646 点击·1 回帖
![]() | ![]() | |
![]() | 第一部分 Shell基础编程
第一章 Shell简介 1.ls 2.Shell:命令解析器,类似于command.com 3.SecureCRT 4.查看所有Shell:cat /etc/shells 5.获得当前Shell:echo $SHELL 6.Bash Shell:默认Shell 7.ls –lh:可以查看所有的文件占用大小 a)第二列:硬链接数 b)第三列:文件拥有者 c)第四列:文件拥有者所属组 d)第五列:文件所占用的空间 e)第六、第七、第八:文件最后访问时间 f)最后一列:文件名 8.d:文件目录 9.b:块设备,一般放在/dev/下 10.c:字符设备文件,一般放在/dev/下 11.p:命令管道文件 12.s:socket文件 13.Putty出现乱码 一块,中文出现点 14.man chmod 15.info chmod 16.chmod u=rwx,g+w,o+r myfile 17.chmod u+s myfile(s:涉及安全问题) 18.chmod g+x,o+x myfile 19.chown root,wgb myfile 20.chmod g+s myfile 21.chmod o+t myfile(t:文件运行时,放在缓存里进行) 22.ls -l /bin | grep '^...s' 23.chmod 4744 myfile:类似于chmod u+s myfile 24.chmod 6744 myfile:类似于chmod g+s myfile 25.chmod 7744 myfile:类似于chmod o+T myfile 26.chown root enerco 27.chown -R root enerco/ 28.chgrp wgb enerco 点击下载 | |
![]() | ![]() |