Fedora :: Command For Overwrite Menu.lst?
Mar 6, 2011I've modified by mistake my menu.lst file. Both menu.lst and grub.conf are empty. how to fix this? Is there any command to quickly rewrite those files?
View 2 RepliesI've modified by mistake my menu.lst file. Both menu.lst and grub.conf are empty. how to fix this? Is there any command to quickly rewrite those files?
View 2 Repliesthere's a command to overwrite a directory.
View 6 Replies View RelatedFor example I want a file to be processed by sed, and then overwrite the file with sed's output. I would try this:
Code:
sed '<regex goes here>' myfile > myfile
But it doesn't work as expected, instead it empties the file (I am thinking that as the first byte comes out of sed, it overwrites the whole file and sed has nothing more to do). How can I make this work?
I am writing a shell script that unzips a ZIP file into an existing hierarchy of files, potentially overwriting some of the files. The problem is that the unzip command asks for confirmation: replace jsp/extension/add-aspect.jsp? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
This is unacceptable for a script.I need an option to force unzip to overwrite the files.I did not find in the man page nor with Google.
ing Fedora 15 x86 with gnome 3.Here is the problem with "open with" menu.I cant indicate custom command. here is screenshot:
View 3 Replies View RelatedHow to suppress "Do you want to overwrite" prompt while using cp command. I tried "cp -fr", but it isn't worked
View 4 Replies View RelatedIt looks like firefox 3.6 was released today - fantastic, except for those of us who develop/test websites (yeah, usually FF is pretty stable between versions, but still...). I'd like to be able to install 3.6 under F12 alongside my current FF 3.5 , running under separate profiles (preferably with a 64-bit build). Is my only option to download it from mozilla.org, and just install it under /opt/ or somesuch place? Is there an RPM that I can install somewhere which won't overwrite my current 3.5 installation?
View 1 Replies View RelatedI have problem with bootloader , mean to say , after installing fedora 13 my windows 7 bootloader will overwrite, and when i install windows7 boot loader my fedora 13 bootloader will overwrite vice versa
View 7 Replies View RelatedI am working on a bash script which among its operations creates directories using the mkdir command. However, when the directory already exists mkdir mentions that in the command line output.
Is there any way I can make mkdir silently overwrite any existent directory? (no messages in the output). For the same price, could it be done with other commands such as cp or mv?
Code:
grub-install -v
grub-install (GNU GRUB 0.97)
I loaded GRUB, and now when I reboot it goes straight into the 'grub>' command line. Initially GRUB had the root as (hd0,2), whereas the boot is on (hd0,1)...(hd0,2) is my '/home' partition, and (hd0,1) is my '/' partition... So on a bootup I ran...
Code:
root (hd0,1)
setup (hd0)
Now when I boot I still get the 'grub>' command line, but now the root is correct.
From 'grub>' I can type...
Code:
grub> configfile /boot/grub/menu.lst
GRUB will then show the menu, and I can click the listings to load them. All's fine, but why doesn't GRUB just load the menu.lst without my prompting? How can I automate this process of typing 'configfile /boot/grub/menu.lst' each time I boot?
How do I add/delete modify the menu system on the Fedora Menu Bar, i.e. If I want to add a custom menu to the "Applications/Office" menu how do I do it?
Fedora Core 14 On Gnome 2.32.0
(Linux xxxxx 2.6.35.6-45.fc14.i686 #1 SMP Mon Oct 18 23:56:17 UTC 2010 i686 i686 i386 GNU/Linux)
Iam pretty new to Linux.I installed fedora 10 on my pc recently.I wanted to add a program to the startup menu but I cant find Preferences menu in the Settings menu. Iam writing to this form after a lot of googling.Hope I can find some answer here
View 2 Replies View RelatedI just installed avg85flx-r732-a3168.i386.deb, but I can't start AVG from any menu or command. (Not even in System Menu). So, how can I start it?
View 5 Replies View RelatedI,m using Fluxbox and I would like to add a system command to the menu,
Code:
du -h --max=1 | sort -h
I have it partly configured but when I start it, it runs for about 2 seconds then the term disappears you dont get time to see output is there some way to keep it open till I close it or stay open longer? Top is configured and that stays open.
is there a way to add a 'run as root' command to the right click menu? so i could right click on a launcher, or a file in /usr/bin(or some other no editing folder) and easily run as root?
View 5 Replies View RelatedI want to find a way to bring up the session menu without using the Indicator Applet Session in the default gnome panel. I've figured out how to do this for the main menu with a keyboard shortcut (Alt+F1). And I found Ubuntu documentation here that says Super+Esc will bring up the Sessions Menu in Lucid but it doesn't work for me. I could create a custom launcher if I knew what command would bring up this menu but I can't find any info on this. Basically I want to get rid of the default gnome panel but still have the functionality of the Sessions Menu.Note: I removed the Me Menu from my Indicator Applet Session by running sudo apt-get remove indicator-me in a terminal. Would this be interfering with the keyboard shortcut?
View 2 Replies View RelatedI explain in with an example:
Imagine you want to know which command is carried out when, after executing gnome-mouse-properties, you go to the Touchpad tab and click on "Enable mouse clicks with touchpad".
Another example:
Imagine you want to know the command that is executed when, after running gnome-appearance-properties, you go to the "Visual Effects" tab and click on None.
I've had a look via gnome-system-log in all the log files of the left with no success. Perhaps the commands that run when one changes things in the GUI menus are logged in some other file. Or perhaps they are not stored in any log. In this case there is probably some terminal command to know it, or some program for this.
I think that know that no xorg.conf is used by default this is something to have into account.
I have fc12.x86_64, installed wireshark yum install wireshark.x86_64 and wireshark.i686but can't see in kde menu or in command prompt (wireshark) but can see dir whereis wiresharkwireshark: /usr/lib64/wireshark /usr/share/wiresharkAny help/url to install and run in fc12 kde environment
View 4 Replies View RelatedI would like to use the keyboard shortcut of <Super>Tab to open the main applications menu.
What is the command for opening the main applications menu? I have searched but cannot find it.
I was wondering, is it possible to open Ubuntu's main menu from the command line? I've been searching for the answer for about 30 min's now but no luck.
View 3 Replies View RelatedI had a problem with viewing webcams on Skype, and after searching I found out that running Skype through the terminal with this command "export XLIB_SKIP_ARGB_VISUALS=1 && skype" makes the webcams work perfectly. What I wanted to do was to integrate this command into the main menu so that I won't have to type it into the terminal (and thus keep the terminal open all the session) every time I want to use Skype. So I edited the command of the Skype button in the Applications menu and put that line instead of "skype", but it gives me "Failed to execute child process "export" (No such file or directory)". I tried editing .bashrc and added the following line:
alias skp='export XLIB_SKIP_ARGB_VISUALS=1 && skype'
Now the command 'skp' works through the terminal, but it gives me the same error message when I put it into the command line of the applications menu.
Running Debian Squeeze and OpenBox. I added the command: "gdm-control --suspend" to my OBmenu but nothing happens. When I run the command from the terminal, also, nothing happens. Yes, I did actually Google. Anyway, proper suspend command from the OpenBox menu?
View 14 Replies View RelatedI'm wanting to be able to run the Open Suse start menu from the command line.king remotely, I have found that I have faster response time by only running specific X components instead of an entire desktop (particularly useful under Windows 7 Cygwin). Specifically, I'd like to invoke the start menu from a ssh command line.On Linux Mint,line command is:mintmenuWhat is the equivalent command to bring up the Slab Start Menu on Open Suse?
View 8 Replies View RelatedI was trying to run a jar file, so after using the "Open With..." context option to bring up "Choose Application", and I opened the "Custom Command Line" tab; I typed "java %f" and set Application name..My problem is that, I was left with an option in the File Properties "Open with:" drop-down box, and more annoyingly, a context menu option above "Open With..." to run .jar files with this useless option I created.
View 2 Replies View RelatedI have been playing around with Avant Navigator Bar and Gnome Menu Bar and was wondering how to add the run command to these items?
View 4 Replies View RelatedHow to use cp command without to overwrite target file permissionsFor examplecp /tmp/file /home/fileI dont want to change chown and chgrp on /home/file
View 2 Replies View RelatedI have this deb from a package in unstable...
It calls for libhdf5-openmpi, which is not compatible with libhdf5-serial which in turn is used by several packages that i have installed...
It's either the serial or the openmpi version... not both.
Since this specific package from sid calls for this dependence, which way do i have to check that if i override dependency checking it wont overwrite anything along the way...?
All other dependencies can be met... except this particular one...
And i wont be using the functionality that calls for openmpi...
I try to write to a file "date > file" but Linux says 'cannot overwrite existing file'. I tried chmod 755 but still cannot write to the file. What should I do?
View 2 Replies View Relatedi have a duel boot of windows and ubuntu, but recently i got a virus, but this things is leach like in appearance. I tried reinstalling windows, then reformatting the drive and reinstalling windows but i still have this same virus? This is dead creepy for me because windows cant read any of the other partitions, which are all formatted for linux, in formats which windows does not have the capability to read. So i dont understand how this could have happened. There are many things that i am still to try -- including completely overwriting the MBR with a GRUB in case the virus somehow resides in there?? But i have decided to give up on windows from now, because, despite all the actions i have taken, it has failed me repeatedly. But having had these viruses 3 times, i have noticed something, the first time i had a virus was my fault, because i left my computer insecure.
After i formatted my HDD following that virus, i noticed i had 10gb of space robbed from me, disk utility believed i had a 160gb drive, but Gparted and everything else told me that i only had 149.7gb of space??? now after this virus - which logically couldn't have happened without someone directly attempting to tunnel my computer as i had so much extra security - i lost 6gb of space from my HDD?? Sounds odd?
THE QUERY: So i want to know if (from ubuntu) it is possible to do a secure format (similar to with a mac - were it completely overwrites everything, instead of just deleting the links) although, possibly i am not going back to windows, ever.
I've been trying for a long while to figure out why aptitude overwrites /etc/sudoers ? Each time I run
$ sudo aptitude safe-upgrade
my /etc/sudoers is reset. This is really annoying because I have it setup so that mythtv can shutdown and restart automatically. The line in /etc/sudoers that gets deleted is:
%mythtv ALL = NOPASSWD: /usr/bin/mythshutdown, /bin/sh, /usr/bin/setwakeup.sh, /
sbin/reboot, /sbin/shutdown
When the line is missing my Ubuntu 10.04 does not shut down at all because of missing rights to do so. Does anyone have a clue why this is happening? I thought /etc-files were sacred for others than root, but it seems I'm wrong. Of course I have edited sudoers with visudo.