Solved

.\errorlogs - What is it?

Posted on 2004-08-06
2
288 Views
Last Modified: 2010-04-22
Hi,

I run a program in Linux and I found out that in the same directory, there is some entry as ".\errorlogs"
I try to find out what it is by using ls -alrt .\errorlogs
but I got: no such file or directory

If you know what it is and why such a things comes up inside the directory, please help,

Thanks,

Rfr1tz

0
Comment
Question by:rfr1tz
2 Comments
 
LVL 45

Assisted Solution

by:sunnycoder
sunnycoder earned 50 total points
ID: 11740174
Hi rfr1tz,

sounds like your application is maintaining a log of all the errors that it encountered
just do a
ls -al | grep error
in that directory to see the file/directory name and try to access it again

Sunnycoder
0
 
LVL 23

Accepted Solution

by:
brettmjohnson earned 200 total points
ID: 11741348
> I run a program in Linux and I found out that in the same directory, there is some entry as ".\errorlogs"
> I try to find out what it is by using ls -alrt .\errorlogs
> but I got: no such file or directory

It sounds like this program was originally written for MS-DOS (or Windows).
and sloppily ported to Linux.
The MS-DOS pathname separator is backslash (\) whereas the Unix pathname
separator is forward slash (/).  (The Microsoft engineer who chose backslash says
it is the biggest regret of his career.) The code is attempting to create a file called
"errorlogs" in the current directory.  However the backslash is not interpreted as
a pathname delimiter on Linux, so it is creating a file called ".\errorlog".

Now, the Unix shell interprets backslash as a "quote-next-character", so when
you say 'ls .\errorlogs", it thinks you are quoting the 'e' (which didn't really need
quoting, but you're the boss) so it gives you an error when it doesn't see ".errorlogs".
You can avoid the problem by escaping the backslash with ... another backslash:

ls -alrt  .\\errorlogs
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question