V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
katte
V2EX  ›  macOS

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

  •  
  •   katte · Nov 14, 2015 · 3043 views
    This topic created in 3820 days ago, the information mentioned may be changed or developed.
    文件在 NTFS 的移动硬盘里, txt 格式,其中某行是
    tdef 1460 linear 00Z01jan1982 6h

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

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

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

    救命。
    2 replies    2015-11-15 12:05:13 +08:00
    hackpro
        1
    hackpro  
       Nov 15, 2015   ❤️ 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
       Nov 15, 2015 via iPhone
    @hackpro 谢谢,我把写文件的程序重跑了一遍,又正常了。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2649 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 49ms · UTC 02:27 · PVG 10:27 · LAX 19:27 · JFK 22:27
    ♥ Do have faith in what you're doing.