Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 02-17-2004, 03:08 AM   #1
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.

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?


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

Rep: Reputation: 30
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, 07:11 AM   #3
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.


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 04:05 PM
V4L: "cat /dev/video0: no such device"; to be sure not supported? jago25_98 Linux - Hardware 1 01-27-2005 04:04 PM
bash redirection "$ cat << EOF > file" (how does this work) ninmonkeys Linux - General 1 11-09-2004 03:37 PM
Compromised? Files "/usr/lib.hwm", "/usr/lib.pwd", "/usr/lib.pwi" Klaus Pforte Linux - Security 4 09-28-2004 11:33 PM
Dual boot "merge" from existing 98 & existing Linux atsmith Linux - Newbie 4 07-13-2003 03:46 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:44 AM.

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
Open Source Consulting | Domain Registration