ChinaUnix.net
相关文章推荐:

shell命令 touch

touch 命令怎么 用??我的书上介绍的不明白啊,越看越乱啊, 越具体越好啊,谢了~!~!~

by xiaojian365 - 系统管理 - 2006-09-12 17:55:59 阅读(1060) 回复(7)

相关讨论

touch 命令怎么 用??我的书上介绍的不明白啊,越看越乱啊, 越具体越好啊,谢了~!~!~

by xiaojian365 - Linux系统管理 - 2006-09-12 17:55:59 阅读(1423) 回复(7)

我想用touch命令在系统里的每个分区建一个文件,检查有没有分区所属的磁盘有无只读情况发生。 假设我有/home1-/home5共5个分区,每个分区代表一块磁盘。 我使用touch /home[1-5]/1命令,想一次性在每个分区建立一个名为“1”的文件,但执行命令后的结果并不是我想要的,如下: [root@cu tmp]# touch /home[1-5]/1 touch: cannot touch `/home[1-5]/1': No such file or directory 我执行ls /home[1-5],却可以正常显示每个分区的...

by windbadboy - Linux系统管理 - 2012-12-31 15:31:47 阅读(2184) 回复(11)

在NFS服务器端的共享磁盘空间里, 不想让别人在客户端通过touch 命令更改 共享磁盘里文件的时间属性, 有没有高手知道是否可以禁用touch命令。 我在NFS服务器上把touch命令删了,但在客户端上,还是能用touch

by leozhengw - Shell - 2008-11-05 22:20:40 阅读(1903) 回复(5)

先man touch一下,可以看出touch命令主要用来修改文件的access and modification time [root@test test]# date Sun Sep 21 15:53:37 CST 2008 [root@test test]# touch test.txt [root@test test]# ll total 0 -rw-r--r-- 1 root root 0 Sep 21 15:54 test.txt [root@test test]# touch -m -t "0808091252" test.txt [root@test test]# ll total 0 -rw-r--r-- 1 root root 0 Aug 9 12:52 test.txt -t 后面加的是修改时间,格式...

by szszszsz - Linux文档专区 - 2008-09-21 16:02:36 阅读(1369) 回复(0)

功能说明:改变文件或目录时间。 语  法:touch [-acfm][-d ][-r ][-t ][--help]   [--version][文件或目录...] 或 touch [-acfm][--help][--version][日期时间][文件或目录...] 补充说明:使用touch指令可更改文件或目录的日期时间,包括存取时间和更改时间。 参  数:  -a或--time=atime或--time=access或--time=use  只更改存取时间。  -c或--no-create  不建立任何文件。  -d  使用指定的日期时间,而非现在的时间...

by ximiff - Linux文档专区 - 2007-07-31 23:32:56 阅读(991) 回复(0)

touch命令很常用,但是有些参数总是记不住。最近几天在看日志的时候,发现实际上可以用touch修改系统时间戳,销毁一些证据。 用途 更新文件的访问和修改时间。 语法 touch [ -a ] [ -c ] [ -m ] [ -f ] [ -r RefFile ] [ Time | -t Time ] { File ... | Directory ... } 描述 touch 命令更新由 Directory 参数指定的每个目录下的由 File 参数指定的每个文件的访问和修改时间。如果没有指定 Time 变量值,touch 命...

by CUDev - Linux文档专区 - 2007-03-12 13:17:38 阅读(576) 回复(0)

touch /dir1/file.tmp在一个job里运行经常失败,出错信息是touch: cannot stat /dir1/file.tmp: Permission denied 但是接着马上重启job又可以运行成功 这个大概是什么问题?用户权限什么的肯定没问题,实在诡异,大牛指点一下吧。 google到一个网页有类似问题http://www.unix.com/unix-dummies-questions-answers/19047-cannot-stat.html 但是觉得下面的回答有些牵强 谢谢了

by sdtzsheng - Shell - 2009-12-10 11:27:25 阅读(3362) 回复(11)

[oracle@~/kamus/tmp]$ touch -t 06100930 a.txt [oracle@~/kamus/tmp]$ ls -l total 4 -rw-r--r-- 1 oracle oinstall 0 Jun 10 2009 a.txt [oracle@~/kamus/tmp]$ touch -t 01100930 b.txt [oracle@~/kamus/tmp]$ ls -l total 8 -rw-r--r-- 1 oracle oinstall 0 Jun 10 2009 a.txt -rw-r--r-- 1 oracle oinstall 0 Jan 10 09:30 b.txt [oracle@~/kamus/tmp]$ 为什么用06100930 做时间戳 显示 2009 结果不正确 而用 01...

by lottery009 - Linux系统管理 - 2009-04-10 14:25:21 阅读(854) 回复(0)

[oracle@~/kamus/tmp]$ touch -t 06100930 a.txt [oracle@~/kamus/tmp]$ ls -l total 4 -rw-r--r-- 1 oracle oinstall 0 Jun 10 2009 a.txt [oracle@~/kamus/tmp]$ touch -t 01100930 b.txt [oracle@~/kamus/tmp]$ ls -l total 8 -rw-r--r-- 1 oracle oinstall 0 Jun 10 2009 a.txt -rw-r--r-- 1 oracle oinstall 0 Jan 10 09:30 b.txt [oracle@~/kamus/tmp]$ 为什么用06100930 做时间戳 显示 2009 结果不正确 而用 01...

by lottery009 - Linux系统管理 - 2009-04-11 00:02:10 阅读(2017) 回复(16)

touch命令是做一个和时间有关系的文件,这个命令和一般的建立文件的命令有什么不同?新做一个文件系统直接将硬盘MOUNT上去是不是就可以直接用了呢?

by 轻絮微痕 - 其他UNIX - 2005-07-20 09:52:23 阅读(1099) 回复(0)