[SOLVED] Terminal command nor responding to CAT command
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Okay Here I go. I'm new to Linux. I installed a OS on my lap top and a VMware Virtualization copy on my desk top. When I use the CAT command from the terminal I get the message: No such file or directory. I have a file on my desktop named story that I want to read. At my prompt I typed cat desktop/story. this should display the content of story. But instead it gives the message: (No such file or directory). It does the same on both the OS(desktop) and Desktop (virtualization)
linux/unix is case sensitive, so probably you need to type DESKTOP instead of desktop.
Furthermore you need to learn about the directory structure on linux to be able to find a directory (like DESKTOP in your case) or a file (like story).
Whay kind of OS did you install?
It would help if you told us which of the many Linux desktops you are using (or if you don't know, at least the name of your distribution) because different desktops handle their shortcuts in different ways. But usually the desktop directory is called Desktop, not desktop. Linux is case-sensitive.
@Pan64: I don't think it's likely to be DESKTOP. I've never seen a directory with a name like that.
Yes, please mark it as solved. Probably offtopic, but I have an additonal remark:
Quote:
Terminal command nor responding to CAT command
Is not really correct: the terminal did respond (definitely), but the response was not what you want. Next time (and in general) please try to understand that message (this time: No such file or directory). Actually this was the correct response to the command you entered.
the terminal did respond (definitely), but the response was not what you want. Next time (and in general) please try to understand that message (this time: No such file or directory). Actually this was the correct response to the command you entered.
That's quite a difficult concept for a newbie to understand. Because Windows error messages are usually not very informative, users get accustomed to the idea that an error message simply means that something or other went wrong.
@Family. Linux error messages are usually very informative indeed, so it is worth reading the message carefully. In most cases it will tell you exactly what you did wrong; some error messages even tell you what to do to put it right. In this case, the message made it clear that it was either the filename or the directory name that did not correspond to anything the cat command could find. That usually means the name was wrongly spelled.
If the command had been wrong, it would have said "cat: command not found".
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.