LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 02-17-2004, 04:08 AM   #1
linuxharsha
LQ Newbie
 
Registered: Dec 2003
Location: Bangalore,India
Distribution: Red Hat 7.3,8.0,9.0 United1.0 SuSE7
Posts: 22

Rep: Reputation: 15
Question An existing file in the PWD isn't displayed with "cat"..


Hi ,

This is some thing very strange. A file which is displayed with ls command isn't being displayed with the cat command. Even the editor vi couldn't open. It opened a new file with the same name.

#ls
man tt bb
ll voo file1

#cat voo
cat: voo: No such file or directory

I made sure that I was in the same dir.

My Hardware : HP Proliant ML350
My Distro : Red Hat 7.3

What could be the reason?

Regards,
Harsha.

 
Old 02-17-2004, 07:24 AM   #2
Lazarus
Member
 
Registered: Dec 2001
Location: Kent in UK
Distribution: Fedora 2
Posts: 170

Rep: Reputation: 30
try
ls -l voo
That will tell you what sort of file it is. It may for example be zero bytes long
 
Old 02-17-2004, 08:11 AM   #3
SylvainP
LQ Newbie
 
Registered: Feb 2004
Distribution: Suse, Knoppix, Slackware
Posts: 27

Rep: Reputation: 15
I don't know if that's possible in Linux, but in that other OS such a thing would happen if there were unprintable characters in the filename. Try cat *voo*, or cat *v*, or opening it with you favorite file manager.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"rm -rf /tmp", now Evolution shows "(no folder displayed" Ed-MtnBiker Linux - Software 7 04-10-2006 05:05 PM
V4L: "cat /dev/video0: no such device"; to be sure not supported? jago25_98 Linux - Hardware 1 01-27-2005 05:04 PM
bash redirection "$ cat << EOF > file" (how does this work) ninmonkeys Linux - General 1 11-09-2004 04:37 PM
Compromised? Files "/usr/lib.hwm", "/usr/lib.pwd", "/usr/lib.pwi" Klaus Pforte Linux - Security 4 09-29-2004 12:33 AM
Dual boot "merge" from existing 98 & existing Linux atsmith Linux - Newbie 4 07-13-2003 04:46 PM


All times are GMT -5. The time now is 03:36 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration