remove .nfs and .swp files


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting remove .nfs and .swp files
# 1  
Old 09-24-2009
remove .nfs and .swp files

Hi,

I'm very new to Unix and trying to work on a file. But when I try to close the file, a .swp file is being created. And when I try to delete the .swp file, a new .nfs file is created.
drwxr-xr-x 7 r226124 xyzAPP 1024 2009-09-24 18:19 ./
drwxr-xr-x 4 r226124 xyzAPP 1024 2009-09-24 18:38 ../
drwxr-xr-x 2 r226124 xyzAPP 80 2009-09-24 15:42 bad/
drwxr-xr-x 2 r226124 xyzAPP 1024 2009-09-24 16:00 ctl/
drwxr-xr-x 2 r226124 xyzAPP 1024 2009-09-24 17:47 data/
drwxr-xr-x 2 r226124 xyzAPP 80 2009-09-24 15:43 discard/
drwxr-xr-x 2 r226124 xyzAPP 80 2009-09-24 15:43 logs/
-rw------- 1 r226124 xyzAPP 12288 2009-09-24 17:51 .nfs00000000005037b900000004
-rw-rw-r-- 1 r226124 xyzAPP 12288 2009-09-24 17:52 .nfs0000000000642e1b00000005
-rw------- 1 r226124 xyzAPP 12288 2009-09-24 18:06 .nfs0000000000644e4c00000007
-rw------- 1 r226124 xyzAPP 12288 2009-09-24 17:56 .nfs00000000007de6da00000006
-rw-rw-r-- 1 r226124 xyzAPP 2519 2009-09-24 17:50 Split.ctl
-rw------- 1 r226124 xyzAPP 4096 2009-09-24 18:02 .Split.ctl.swp
-rw-rw-r-- 1 r226124 xyzAPP 11002 2009-09-24 17:50 Split.log

What could be the issue?

I'm unable to work on the original file (ie Split.ctl).

when trying to edit the file, I'm getting the following message
/home/r226124/Split1
r226124@<host>:266> vi Split.ctl
[6] + Stopped vi Split.ctl

How can I delete the .swp files and the .nfs files.

Thanks.
# 2  
Old 09-25-2009
This looks like more than one edit session is active on the file. Try killing all the things using the file. The fuser command will find the processes using the file. Then kill them all.
You can try to recover stuff using

Code:
vi -r Split.ctl

Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. SCO

Backup of files using NFS a faster way

Hi All! i am trying to copy files from a SCO Openserver 5.0.6 to a NAS Server using NFS. I have a cron job that takes 1.5 hours to run and most of the data is static. I would like to find a faster way. In the event I needed to running manually or avoid an issue with taking down the servers... (9 Replies)
Discussion started by: trolley
9 Replies

2. UNIX for Dummies Questions & Answers

Unable to obtain lock on NFS files

Hello , I am creating a controlfile of database in linux and below is the error coming: SQL> CREATE CONTROLFILE REUSE set DATABASE "newdbcln" RESETLOGS NOARCHIVELOG 2 MAXLOGFILES 5 3 MAXLOGMEMBERS 5 MAXDATAFILES 100 4 5 MAXINSTANCES 1 6 MAXLOGHISTORY... (2 Replies)
Discussion started by: admin_db
2 Replies

3. UNIX for Dummies Questions & Answers

Rsync Can I delete .NFS and .fuse files

Hello, I have some files in a local directory and perform an rsync command with the files in a remote directory, Now when I checked the files in the local and the remote directory, I found some strange filetypes such as this: .nfs0000000001d0c8e000002ff2 , .fuse_hidden000014da00000001 etc etc,... (3 Replies)
Discussion started by: ajayram
3 Replies

4. AIX

NFS files after reboot

i Have a mount point from NAS and i mount it My AIX manually the system get rebooted by its self and it did not get mounted , how can i make it mounted with the system up in automated way ? (1 Reply)
Discussion started by: thecobra151
1 Replies

5. Solaris

NFS mounted files

If I am not a system admin. How can I tell where a particular mounted file is mounted from. (12 Replies)
Discussion started by: Harleyrci
12 Replies

6. UNIX for Advanced & Expert Users

NFS Files system and df command

How can I get the available file system in a given box. Example : When I give df -kh * from /apps I get this out megatron% df -kh * Filesystem Size Used Avail Use% Mounted on fltrinfs1:/fltrinfs1/triapps1/subversion/Linuxx86_64/CollabNet_Subversion ... (1 Reply)
Discussion started by: dashok.83
1 Replies

7. Linux

/var/tmp/slapd.log.swp delete?

Hi All, Can I delete the above file? It's big, about 1G. It's on a redhat ent 4 with ldap on it. Is that safe to delete? It wasn't been used for already a month and it's in the backup storage. Thanks for any comment you may add. (1 Reply)
Discussion started by: itik
1 Replies

8. High Performance Computing

sharing web files via NFS mount

I'm planning to load balance 2 web servers. I'm considering mounting an NFS share between the 2 servers so they can share the data. My question is: does this setup offset some of the benefits of load balancing? although there are 2 web servers, they both still access a single NFS server. Wouldn't... (2 Replies)
Discussion started by: gaspol
2 Replies

9. Filesystems, Disks and Memory

How to manage the .nfs files generated by the system

I'm running a UNIX application on HP-UX which generated logs files every few seconds. Now at times these log files are replicated as .nfs files and sometimes cannot be deleted. Now it reaches a point that i'm not even able to list any files on the logs directory. Normally i restart that server... (0 Replies)
Discussion started by: dowell
0 Replies
Login or Register to Ask a Question