LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-17-2016, 07:38 AM   #16
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,604

Rep: Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241

You should be able to edit the file unless the filesystem it is on is mounted read-only.
 
Old 10-17-2016, 08:31 AM   #17
P.G.Krish
Member
 
Registered: Jun 2016
Distribution: Ubuntu
Posts: 58

Original Poster
Rep: Reputation: Disabled
Smile

Quote:
Originally Posted by keefaz View Post
Maybe vim opens the file as read only if a swap file is present and option v:swapchoice = "o" is set in vimrc
You can use ' :set noro ' to exit read only mode in vim
Hai keefaz,
It solved readonly problem, Afterthat i replace
Quote:
:%s/xxA/..\//g
I save it using
Quote:
x!
.

After reopening it have no change , Its have only one it original content, There is no change happen in this zip file

Thanks for valuable help
 
Old 10-17-2016, 08:34 AM   #18
P.G.Krish
Member
 
Registered: Jun 2016
Distribution: Ubuntu
Posts: 58

Original Poster
Rep: Reputation: Disabled
Talking

Quote:
Originally Posted by jpollard View Post
You should be able to edit the file unless the filesystem it is on is mounted read-only.
Hai Jpollard,
How to solve this?
 
Old 10-17-2016, 08:57 AM   #19
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,028

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
Quote:
Originally Posted by P.G.Krish View Post
Hai Jpollard,
How to solve this?
you already did, n'est pas ?
Quote:
Originally Posted by P.G.Krish View Post
Hai keefaz,
It solved readonly problem, Afterthat i replace
I save it using .
...
 
Old 10-17-2016, 09:04 AM   #20
urbanwks
Member
 
Registered: Sep 2003
Distribution: Slackware64-Current, FreeBSD 11.0
Posts: 107

Rep: Reputation: 86
The article you reference deals with essentially creating a trojan in a very specific environment: one that automatically decompresses zip files when uploaded.

If your purpose isn't this, what is your ultimate purpose? Perhaps there's a better way to do it.

http://xyproblem.info/
_
 
Old 10-17-2016, 01:49 PM   #21
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 5,387

Rep: Reputation: 397Reputation: 397Reputation: 397Reputation: 397
Quote:
Originally Posted by P.G.Krish View Post

After reopening it have no change , Its have only one it original content, There is no change happen in this zip file
Maybe there is no ' xxA ' in the file?

BTW how can you edit a zip file in vim, I tried opening a zip file and vim asks me which file to edit from a list of files contained in the archive. When I choose the file, I get the file text content...
 
  


Reply

Tags
vim


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to edit a .spec file in vim (E212: Can't open files for writing) subharaj Linux - Software 1 02-14-2012 04:14 AM
VIM: Split open same file and edit only 1 window encore4444 Programming 8 05-14-2011 11:40 PM
LXer: vimdiff - Edit two or Three versions of a file with Vim and show differences LXer Syndicated Linux News 0 04-09-2009 01:21 AM
mc(midnight commander) - using vim to edit does not change the file on ftp rlee923 Linux - Software 2 10-18-2007 06:08 AM
How to edit UTF-8 file in VIM ? naihe2010 Programming 6 09-28-2006 02:36 AM


All times are GMT -5. The time now is 12:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration