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.
I run Redhat 9.0 Linux everything was fine till i ran the command
cd /bin | ls > wc
i did it just to check what will happen... but after this when i use the ls command i dont see any file listing on the screen. It just executes and i get the prompt again. PLEASE HELP ME SET THIS RIGHT!!!!!!!!!
Originally posted by pony85
Thanks a lot i dint know that. I won mark it as URGENT unless it really is.
Ummm ... there is no such thing as "urgent". It may be something
that's quite important for you, but that's not OUR problem. The
people here help in their own good time, and because they want
to ... if you had a service-contract with anyone, you could
ask them for urgent solutions. On the net it's rude, full stop.
Quote:
But could u please tell me how i can get back the orginal from of ls
For starters your redirecting the output of ls into a file called wc. Did you want a file called wc or did you want to use wc to do a word count. Secondly your piping the output of the cd command to ls, which with a proper directory is nothing. Perhaps you meant one of the following:
cd /bin; ls | wc
cd /bin && ls | wc
Nop when i did /bin/ls it works same way as i have descirbed in the first post ie nothing happens i just get the prompt. When i use /usr/ls is says no such file or directory
well stickman actually i didnt mean anything. I just tried it as i read bout piping in a Unix book.. but can u please let me know how i can set it right.
nop just ls also does nothing visible on the terminal. I think the output of ls is getting redirected to somewhere else. and no restarting or logging out isnt helping either.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.