LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 03-24-2010, 09:27 AM   #1
linux_sj
Member
 
Registered: Mar 2010
Posts: 30

Rep: Reputation: 0
text editor vs notepad


re: lock file on an access database.

i can see an .ldb file fine with windows notepad but

cannot see the .ldb file in ubuntu's text editor. Its just messy text of symbols and letter.

is there a way to view these files from ubuntu ?
 
Old 03-24-2010, 09:55 AM   #2
nonamenobody
Member
 
Registered: Oct 2002
Posts: 138

Rep: Reputation: 22
According to Microsoft Knowledgebase
Quote:
Q: Can a user or programmer gain access to the information in the .LDB
file?

A: No. The information in the .LDB file is only used internally by
Microsoft Access and is not designed to be used by users or programmers.
If all you are seeing is a mess of symbols and numbers, it is most likely because that is what the file actually contains. I am surprised that it looks any different in MS-Notepad, but I suppose it could have some sort of filter. It would be nice to see a screenshot of both.

Are you sure you are using Notepad and not Notepad++?

The following may be of some use http://support.microsoft.com/kb/186304

Searches for ldb and linux, seem to mostly just bring up pages related to LDAP-DB
 
Old 03-24-2010, 09:57 AM   #3
rizhun
Member
 
Registered: Jun 2005
Location: England
Distribution: Ubuntu, SLES, AIX
Posts: 268

Rep: Reputation: 47
What is an LDB file?

EDIT: never-mind, nonamenobody's got it.
 
Old 03-24-2010, 09:58 AM   #4
linux_sj
Member
 
Registered: Mar 2010
Posts: 30

Original Poster
Rep: Reputation: 0
and ldb file is a ms access database lock file

i have the regular notepad through xp
 
Old 03-24-2010, 10:10 AM   #5
rizhun
Member
 
Registered: Jun 2005
Location: England
Distribution: Ubuntu, SLES, AIX
Posts: 268

Rep: Reputation: 47
And does it make sense when you look at it through 'regular notepad'?
 
Old 03-24-2010, 10:11 AM   #6
linux_sj
Member
 
Registered: Mar 2010
Posts: 30

Original Poster
Rep: Reputation: 0
^ yes, i can read it fine in regular xp notepad
 
Old 03-24-2010, 10:14 AM   #7
rizhun
Member
 
Registered: Jun 2005
Location: England
Distribution: Ubuntu, SLES, AIX
Posts: 268

Rep: Reputation: 47
Can you 'cat' from the command line?
Does it look better from there?

Code:
cat /path/to/file.ldb
Can you copy/paste the output here?
 
Old 03-24-2010, 10:27 AM   #8
linux_sj
Member
 
Registered: Mar 2010
Posts: 30

Original Poster
Rep: Reputation: 0
^ i get no such file or directory when using the cat command
 
Old 03-24-2010, 10:36 AM   #9
HasC
Member
 
Registered: Oct 2009
Location: South America - Paraguay
Distribution: Debian 5 - Slackware 13.1 - Arch - Some others linuxes/*BSDs through KVM and Xen
Posts: 329

Rep: Reputation: 55
Quote:
Originally Posted by rizhun View Post
Can you 'cat' from the command line?
Does it look better from there?

Code:
cat /path/to/file.ldb
Can you copy/paste the output here?
Better
Code:
cat -v /path/to/file.ldb
so you don't get your terminal messed up, if the file is binary
 
Old 03-24-2010, 10:39 AM   #10
linux_sj
Member
 
Registered: Mar 2010
Posts: 30

Original Poster
Rep: Reputation: 0
^ cat does work.. You rock ! thanks for the help..
 
Old 03-24-2010, 10:40 AM   #11
rizhun
Member
 
Registered: Jun 2005
Location: England
Distribution: Ubuntu, SLES, AIX
Posts: 268

Rep: Reputation: 47
Quote:
Originally Posted by linux_sj View Post
^ i get no such file or directory when using the cat command
You need to change /path/to/file.ldb to the actual full path to your file.

And HasC is right, use 'cat -v'.
 
Old 03-24-2010, 10:41 AM   #12
rizhun
Member
 
Registered: Jun 2005
Location: England
Distribution: Ubuntu, SLES, AIX
Posts: 268

Rep: Reputation: 47
Quote:
Originally Posted by linux_sj View Post
^ cat does work.. You rock ! thanks for the help..
Hehehe, no probs
 
Old 03-24-2010, 10:46 AM   #13
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
since ms-notepad and ms-access are both ms products its reasonable to assume that they perform some special formatting when reading .ldb's in notepad.

does strings file.ldb give you anything useful ?
perhaps hexedit will help you scrub some info from it.

since none of us seem to use windows much, can you provide a sample of the text you see in notepad versus what you see in gedit ?
 
Old 03-24-2010, 10:48 AM   #14
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
Quote:
Originally Posted by linux_sj View Post
^ cat does work.. You rock ! thanks for the help..
i still dont get how cat would print ascii text and gedit would display binary data ?
are you sure you were looking at the .ldb file and not .mdb ?
 
  


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
notepad compatible text editor manuleka Linux - Newbie 5 03-30-2009 02:55 PM
Linux Text File convert to Windows/Notepad Text File = Wrapped? backroger Linux - Software 4 01-18-2009 05:54 AM
Notepad++ or similar php coding/text editing tool for linux milasch Linux - Software 4 01-03-2008 01:41 PM
How can we copy the program code wriiten in notepad to linux vi editor? mayank027 Linux - General 2 10-25-2005 06:14 AM
text files that dont open with notepad the_imax General 6 02-16-2005 05:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:50 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
Open Source Consulting | Domain Registration