English 中文(简体)
执行 mv A B : 信条会更改吗?
原标题:Executing mv A B : Will the inode be changed?
  • 时间:2012-05-22 13:13:36
  •  标签:
  • unix
  • inode
  • mv

如果我们执行命令 :

mv A B

A 文件中的字段会怎样?它会改变吗?

我不认为它应该改变 只是通过更改文件的名字, 但我不确定。

问题回答

它至少部分取决于 A 和 B 是什么。 如果您在文件系统之间移动, 信条几乎肯定会不同 。

简单地将文件重新命名在同一系统中,更有可能仅仅因为该信条属于数据而不是目录条目,而且效率会导致这一设计,而仅仅因为该信条属于数据而不是目录条目,就保留同一信条。然而,它取决于文件系统,而且完全没有标准的授权。

例如,有 may 是一个版本文件系统, 带有 neode 概念, 给您一个新的 unode 概念, 因为它想要跟踪名称更改 。

要看情况了

"上有一个很好的例子。 http://www.labtestproject.com/linuxcmd/mv.html" rel=“nofollow” >这个网站 表明该信条可能保持不变。 但我不依赖这种行为, 我怀疑它是否在任何标准中被指定 。





相关问题
Generate assembler code from C file in linux

I would like to know how to generate assembler code from a C program using Unix. I tried the gcc: gcc -c file.c I also used firstly cpp and then try as but I m getting errors. I m trying to build an ...

Function to create the array by reading the file

I am creating scripts which will store the contents of pipe delimited file. Each column is stored in a separate array. I then read the information from the arrays and process it. There are 20 pipe ...

Compare characters at the end of the string C++

This program supposed to find command line arguments entered on Unix which ends with “.exe”. For some reason it doesn t work. Here is the code: int main( int argc, char* argv[] ) { for ( int ...

Batch Job Dependencies Using Open Source/Free Software

I run a large data warehouse plant where we have a lot of nightly jobs running concerruently however many have dependencies on a extract or data load process before they start. Currently we use an ...

Writing application for both Unix and Windows

I ll write a program for Interactive UNIX (http://en.wikipedia.org/wiki/INTERACTIVE_UNIX). But in a year it will be ported to Windows. I ll write it in ANSI C and/or SH-script. When it runs on Windows ...

Development Environment in Windows [closed]

What are your recommendations for setting up a development environment in Windows, especially when not using an IDE. I am attempting to familiarize myself with Windows, and I feel a bit lost. What ...

热门标签