LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 08-25-2010, 01:00 PM   #1
Sumguy
Member
 
Registered: Jul 2010
Location: Rural Kentucky, USA.
Distribution: Slackware; Crunchbang.
Posts: 409
Blog Entries: 2

Rep: Reputation: 98
How Do I undo This Command?


Hi Again, Everyone,

I've been trying to tweak my boot processes and in trying to edit the framebuffer in /etc/initramfs-tools/conf.d/splash from "n" to "y". Having no clue as to how to do this, I entered this command which I found in a tutorial:


Code:
echo FRAMEBUFFER=y >>echo FRAMEBUFFER=y >>/etc/initramfs-tools/conf.d/splash
I now have TWO lines that say framebuffer- one says "Y" and the other "n" -that can't be good!

What I need to do is get rid of the one that says "n".

If someone could please post the exact command? (Ubuntu 10.04)

Also, in the future, what would be the proper code to just edit that file, so that I could have simply changed the n to y? (I tried gedit with the filepath, but it didn't work- Nautilus would open, but there would be no text to edit.....)

I'll get the hang of this before too long....
 
Old 08-25-2010, 01:06 PM   #2
rgdacosta
Member
 
Registered: Jun 2007
Location: South Africa
Distribution: Linux Mint,Fedora, openSUSE, RHEL, SLES, Scientific Linux
Posts: 70

Rep: Reputation: 25
If you don't know how to edit the file to remove the culprit line then I suggest 2 things:

1) learning VIM by typing vimtutor
2) using this command to remove the line in question:

Code:
sed -i '/FRAMEBUFFER=n/d' /etc/initramfs-tools/conf.d/splash
That will find the line in question and remove it from your file
 
Old 08-25-2010, 01:23 PM   #3
Sumguy
Member
 
Registered: Jul 2010
Location: Rural Kentucky, USA.
Distribution: Slackware; Crunchbang.
Posts: 409
Blog Entries: 2

Original Poster
Rep: Reputation: 98
Quote:
Originally Posted by rgdacosta View Post
If you don't know how to edit the file to remove the culprit line then I suggest 2 things:

1) learning VIM by typing vimtutor
2) using this command to remove the line in question:

Code:
sed -i '/FRAMEBUFFER=n/d' /etc/initramfs-tools/conf.d/splash
That will find the line in question and remove it from your file
Thanks. I had tried something before you posted- and inadvertently ended up removing the /splash file (!!!!) - I then was able to regenerate it with the proper parameter. So just by dumb luck, I'm back to where I need to be. I will stop messing with this until I read the tutorial!!
 
Old 08-25-2010, 02:35 PM   #4
Sumguy
Member
 
Registered: Jul 2010
Location: Rural Kentucky, USA.
Distribution: Slackware; Crunchbang.
Posts: 409
Blog Entries: 2

Original Poster
Rep: Reputation: 98
I see that I don't have VIM installed.

I also learned that I can simply use

Code:
gksudo nautilus
and do it the GUI way- which seems a lot easier than trying to learn a bunch of commands for very occasional use.
 
Old 08-25-2010, 03:14 PM   #5
rgdacosta
Member
 
Registered: Jun 2007
Location: South Africa
Distribution: Linux Mint,Fedora, openSUSE, RHEL, SLES, Scientific Linux
Posts: 70

Rep: Reputation: 25
the commands = power :-)

Try learning a few!

Code:
gnomesu gedit
will open a really easy to use editor whereby you can open and edit text files. It pretty much looks and feels like MS notepad.exe
 
  


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
How do undo MV or RM command? pogromca Linux - Newbie 8 11-26-2013 07:25 AM
To undo a given bash-command HULLU Linux - Newbie 6 02-21-2010 11:06 PM
Undo a mke2fs command. phoenixfire Linux - General 6 02-02-2010 06:40 AM
Undo a chmod command? WingnutOne Linux - General 3 06-23-2008 06:20 PM
How do I undo last command executed? Elfking Linux - General 4 02-05-2004 02:18 AM


All times are GMT -5. The time now is 08:42 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