Tuesday, December 11, 2012

NFS client for Windows

Have you tried using NFS on Windows. I have mentioned below some of the ways to use NFS on windows.
 It may be useful to access a Unix share on windows.

1 .Built-in NFS client : Only for Win7 Ultimate / Enterprise. It doesn't work for Win7 Professional
 To enable NFS Service:
Control Panel > Programs and Features > Tun Windows Feature on or off > Services for NFS > click Client for NFS > ok

eg: net use <mount to drive>: <IP addr>:/share /persistent:no   // to connect
     net use <drive>: /delete          // To disconnect

http://support.microsoft.com/kb/324055
http://technet.microsoft.com/en-us/library/cc772015.aspx
http://www.microsoft.com/en-us/download/details.aspx?id=2391
http://technet.microsoft.com/en-us/library/cc754350.aspx

For Windows XP/2000/2003 : http://www.microsoft.com/en-us/download/details.aspx?id=274

2. Nekodrive :

3. nfsAxe :

Please let me know if you find any other ways to use NFS client on windows.


Monday, December 3, 2012

deleting all files except except one

I came across a situation where i wanted to delete all files and directories in current directory and just leaving one of the files.
You may have other solutions as well. I used xargs for this purpose as:

#ls |grep -v symantec.tar.gz | xargs rm -rf -

It will list all files then do a "grep -v" to filter out a given file. Then piped that output to xargs to delete the files and directories.