LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-17-2002, 09:11 AM   #1
KrazyKid
LQ Newbie
 
Registered: Jun 2002
Location: Northern, NJ
Distribution: Slackware
Posts: 20

Rep: Reputation: 0
Angry Read Only File


I dont know how to open a read only file and edit it. Please Help.
 
Old 06-17-2002, 09:17 AM   #2
pk21
Member
 
Registered: Jun 2002
Location: Netherlands - Amsterdam
Distribution: RedHat 9
Posts: 549

Rep: Reputation: 30
Just use vi. Then when you want to save the file use wq!
 
Old 06-17-2002, 09:29 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
change the attributes using chmod. then use whatever editor you want to.

pk21... is that drawing *really* necessary?
 
Old 06-17-2002, 09:34 AM   #4
KrazyKid
LQ Newbie
 
Registered: Jun 2002
Location: Northern, NJ
Distribution: Slackware
Posts: 20

Original Poster
Rep: Reputation: 0
I dont understand what you mean by '"vi" and "wq".

Last edited by KrazyKid; 06-17-2002 at 09:35 AM.
 
Old 06-17-2002, 09:38 AM   #5
pk21
Member
 
Registered: Jun 2002
Location: Netherlands - Amsterdam
Distribution: RedHat 9
Posts: 549

Rep: Reputation: 30
Just use "vi [filename]", then edit your text.
Press "escape", then ":"
Now write "wq!"
That should work!
 
Old 06-17-2002, 09:40 AM   #6
pk21
Member
 
Registered: Jun 2002
Location: Netherlands - Amsterdam
Distribution: RedHat 9
Posts: 549

Rep: Reputation: 30
Talking

acid_kewpie... what drawing???
 
Old 06-17-2002, 09:47 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
vi is a very common text editor. also a very unfriednly one. personally i prefer pico. but you'd possibly be happier with a notepad clone like gedit, kedit and a million others.

drawing.. erm.. i guess i imagined it... oh well.
 
Old 06-18-2002, 02:38 AM   #8
X11
Member
 
Registered: Dec 2001
Location: Brisie, Australia
Distribution: Slackware 8.1
Posts: 324

Rep: Reputation: 30
You can download something very similar to pico called nano from here.

To install it:
At the command-line/console type:
Quote:
rpm -ivh <package-name>
NOTE: <package-name> is where you type the name of the file.
 
  


Reply


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
Read parameters from config file (file parser?) alaios Programming 8 07-09-2012 12:29 PM
How to read .chm file in fedora, can't mount ntfs file system ishti_du Linux - Newbie 12 03-06-2007 04:27 AM
How to read variable from one file & update its value in another file minil Programming 1 03-22-2005 01:12 AM
how do I make a read-only file NOT read-only? robster Linux - General 1 02-17-2004 10:11 PM
Change from Read only to Read Write File System? justiceisblind Linux - Newbie 3 03-03-2002 08:23 PM


All times are GMT -5. The time now is 02:38 AM.

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