V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
katte
V2EX  ›  macOS

求助: mac 里文件的内容显示不正确

  •  
  •   katte · 2015-11-14 22:29:15 +08:00 · 2149 次点击
    这是一个创建于 3056 天前的主题,其中的信息可能已经有所发展或是发生改变。
    文件在 NTFS 的移动硬盘里, txt 格式,其中某行是
    tdef 1460 linear 00Z01jan1982 6h

    然后修改为
    tdef 1460 linear 00Z01jan1982 6hr

    文本预览显示的内容是修改后的
    但我在终端里使用"vim *****.txt",显示的是修改前的"*** 6h"。

    PD 虚拟机装的是 WIN8.1
    选择硬盘连接在 MAC 上,写字板打开,显示的是修改前的"*** 6h"。
    选择把移动硬盘连接到虚拟机上,写字板打开,显示为修改后"*** 6hr"。

    救命。
    2 条回复    2015-11-15 12:05:13 +08:00
    hackpro
        1
    hackpro  
       2015-11-15 10:36:24 +08:00   ❤️ 1
    1. ls -l "*****.txt" check the modification time
    2. might due to NTFS format as OS X does not support inherently.
    3. check whether you have own right and save by vim successfully.
    katte
        2
    katte  
    OP
       2015-11-15 12:05:13 +08:00 via iPhone
    @hackpro 谢谢,我把写文件的程序重跑了一遍,又正常了。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3522 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 10:51 · PVG 18:51 · LAX 03:51 · JFK 06:51
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.