![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Unix
文章平均质量分 72
chuanshuo16
这个作者很懒,什么都没留下…
展开
-
tar命令如何排除某些文件或目录
环境:solaris 5.10背景:在用tar打包目录下的文件时,有时希望排除某些文件或文件夹。假设现有目录结构如下:>ls -1empty/general/genreport.sh*main.cfgprinthel.perlsample.txttouchdate.txt使用tar进行打包,但是希望不包含文件sample.txt和目录empty/。指定excludefile.txt文件内容>echo sample.txt > excludefile.txt>echo empty/ >> excludefil原创 2011-01-27 11:56:00 · 6393 阅读 · 0 评论 -
如何查看solaris版本号
<br />1. cat /etc/release<br /> <br /> Solaris 10 8/07 s10s_u4wos_12b SPARC<br /> Copyright 2007 Sun Microsystems, Inc. All Rights Reserved.<br /> Use is subject to license terms.<br />原创 2011-01-26 18:27:00 · 1521 阅读 · 0 评论 -
如何删除连字号‘-’开头的文件或文件夹
今天无意中在solaris中创建了一个文件 -exclude.tar, 试着删除它才发现有点麻烦开始用rm:>rm -exclude.tarrm: illegal option -- erm: illegal option -- xrm: illegal option -- crm: illegal option -- lrm: illegal option -- urm: illegal option -- drm: illegal option -- erm: illegal option -- .rm原创 2011-01-26 19:04:00 · 1157 阅读 · 0 评论