Find the answer to your Linux question:
Results 1 to 2 of 2
hi, i was trying to use the test command to test for the existence of a file. when i used it on a file located on the linux drive it ...
  1. #1
    Just Joined!
    Join Date
    Apr 2007
    Posts
    5

    Problem with (Test -f ) command

    hi,
    i was trying to use the test command to test for the existence of a file. when i used it on a file located on the linux drive it works fine but when i try to use it with a windows file it does'nt work. can anyone help !

  2. #2
    tpl
    tpl is offline
    Linux User
    Join Date
    Jan 2007
    Location
    cleveland
    Posts
    452
    I've tried "if test -f <filename>;then echo OK; fi" on my fat32
    partition, mounted in the *nix file heirarchy as /xp--and this works
    fine--also "-d" for directories. The kernel has modules "fat" and
    "vfat" both loaded. So if you're having problems:

    1. does the kernel have compiled in or as modules, the read of yr W* file
    system (fat32, ntfs,....)

    2. is the W* partition mounted in yr *nix file system?
    the sun is new every day (heraclitus)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...