小编fra*_*kus的帖子

Linux 上的哪些文件系统存储创建时间?

Linux 上是否有任何(众所周知的、可靠的)文件系统将文件和目录的创建时间存储在 i-node 表中?

如果有,“更改”时间是否被 stat 调用中的 i-node 的创建时间替换?

linux filesystems timestamps

35
推荐指数
2
解决办法
2万
查看次数

通过 ssh 重定向标准输出

我想跑

something > file
Run Code Online (Sandbox Code Playgroud)

通过 ssh 在远程系统上,但如果我运行

ssh host something > file
Run Code Online (Sandbox Code Playgroud)

重定向在本地执行为 ssh etc > file

我已经尝试过用'or''或ddor|代替管道,但我无法让它工作。如何才能做到这一点?

ssh pipe io-redirection

21
推荐指数
2
解决办法
3万
查看次数

执行共享库

某些共享库在从命令行调用时提供输出,就好像它们是可执行文件一样。例如:

$ /lib/libc.so.6 
GNU C Library stable release version 2.13, by Roland McGrath et al.
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 4.5.2.
Compiled on a Linux 2.6.37 system on 2011-01-18.
[...]
Run Code Online (Sandbox Code Playgroud)

在我自己用 C 编写的共享库中,如何提供此输出?我现在已经执行了一个我刚刚制作的库,我得到了一个segment fault.

c libraries

6
推荐指数
1
解决办法
833
查看次数

标签 统计

c ×1

filesystems ×1

io-redirection ×1

libraries ×1

linux ×1

pipe ×1

ssh ×1

timestamps ×1