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 ...
- 04-09-2007 #1Just 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 !
- 06-08-2007 #2Linux 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)


Reply With Quote