[SOLVED] what command would you use to find out cd
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.
Besides being in an incorrect forum, the question is very brief, as well as 100% fundamental.
Have you looked anything up? And what exactly what are you trying to find out, how to change directory, or how to determine what your current working directory is?
I mean what is the command I can use it to find located for cd when I tried to search it in Debian, I didn't get any result
Your other question is also verbatim homework. We aren't going to look commands up for you, nor do your homework for you. We are happy to help you if you're stuck or confused, but you have to show effort of your own. If you're taking this class, you have books and other resources to draw upon, where the answers are most probably given. Start there.
This is the question:
Where do each of the following commands reside (what command would you use to find out): ls, cd, echo
I put efforts and I can know how to solve it for both ls and echo
whereis ls
whereis echo
but for cd I didn't get result when I used whereis cd,
So, I use type cd and I got below result, Is it right?
cd is a shell bulitin
This is the question:
Where do each of the following commands reside (what command would you use to find out): ls, cd, echo
I put efforts and I can know how to solve it for both ls and echo
whereis ls
whereis echo
but for cd I didn't get result when I used whereis cd,
So, I use type cd and I got below result, Is it right?
cd is a shell bulitin
Again: **WE WILL NOT DO YOUR HOMEWORK FOR YOU**
You have found the answer already and posted it. Yes, that's right.
I mean what is the command I can use it to find located for cd
when I tried to search it in Debian, I didn't get any result
Quote:
Originally Posted by amal.elahmed@hotmail.com
This is the question:
Where do each of the following commands reside (what command would you use to find out): ls, cd, echo
I put efforts and I can know how to solve it for both ls and echo
whereis ls
whereis echo
but for cd I didn't get result when I used whereis cd,
So, I use type cd and I got below result, Is it right?
cd is a shell bulitin
If your instruction hasn't shown the class, then you all should be made familiar with the resources and capabilities to look things up, both on your system, as well as on the web:
Most, if not all, commands have manual pages, and one can type "man <command>" onto their terminal prompt and see the manual page for any given command.
One can also type "manpage for <command>" into your favorite web search engine and find a multitude of hits.
Most commands are also accessible using the info pages, where you type "info <command>" and get a similar summary with how it appears on the man pages.
Commands also support options you can type with them, two great options are --version and --help, which give you obvious results.
Try that stuff, and note to keep those suggestions as resources in your repertoire so that you understand how to look things up in the future. Also suggest you share these tips with your classmates and (if applicable) consider asking your instructor why they haven't summarized these available options already for the class.
@dugan, which doesn't normally work on built-in commands. They are correct about this when they stated it earlier. But also as I feel I've noted one post earlier, there are a variety of system and web resources which they could avail themselves of, the concern is that they haven't done this, or their supposed instructor hasn't provided any proper guidance, .... or someone may not have been listening/reading.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.