Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 08-27-2010, 01:49 PM   #1
LQ Newbie
Registered: Aug 2010
Posts: 1

Rep: Reputation: 0
Overwrote the Wireless.h file By Mistake

Well here's another dumb newbie mistake. I tried to modify the wireless header file in order to install airpwn. When I tried to save the new wireless.h file, I realized that I hadn't changed the file permissions and went to chmod to allow me to save the modified file (as wireless.h). Without checking, I saved the wireless.h file -- only to find out later that I had apparently completely altered it. My first lesson was never screw around with system files at 2 am and second, if I forget the first, is drink a lot of caffeine.

Does anyone know how I can find/download/ or reimport the original wireless.h file? I'm using Ubuntu 10.04.

Feel free to ridicule me -- I'm feeling pretty stupid right now.

Thanks in advance for any help someone could offer.

Best regards,

Old 08-27-2010, 04:01 PM   #2
Senior Member
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
Have you checked to see if an automatic backup of the original exists?

I've posted the contents of the original file here:

Always backup files before editing.
Old 08-28-2010, 04:23 AM   #3
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2018 CentOS6.10 CentOS7.5 + 50+ other Linux OS, for test only.
Posts: 17,074

Rep: Reputation: 3475Reputation: 3475Reputation: 3475Reputation: 3475Reputation: 3475Reputation: 3475Reputation: 3475Reputation: 3475Reputation: 3475Reputation: 3475Reputation: 3475
Welcome to LQ. .. ..

Probably libiw-dev. ( > /usr/include/wireless.h )

When you have no file copy ( like the one provided by @{BBI}Nexus{BBI} )
you can just reinstall the package with "Synaptic".
And all files are "refreshed".


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
Important Folder deleted by mistake using the Gnome File Manager. chirucu Linux - General 4 03-08-2006 08:55 AM
samba file have been tempered by mistake... b0nd Slackware 2 12-22-2005 03:47 PM
help: accidentally overwrote on crontab auden Slackware 1 02-14-2005 06:40 AM
WinXP overwrote Grub JohnHawes Linux - Newbie 14 02-13-2004 08:23 PM
Overwrote a file mistake - what can i do? Bungle Linux - Newbie 4 11-10-2003 07:09 PM > Forums > Linux Forums > Linux - Newbie

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

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