LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 07-29-2019, 10:23 AM   #1
amal.elahmed@hotmail.com
LQ Newbie
 
Registered: Jul 2019
Posts: 4

Rep: Reputation: Disabled
what command would you use to find out cd


what command would you use to find out cd
 
Old 07-29-2019, 10:26 AM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: MA, USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 8,054
Blog Entries: 13

Rep: Reputation: 3501Reputation: 3501Reputation: 3501Reputation: 3501Reputation: 3501Reputation: 3501Reputation: 3501Reputation: 3501Reputation: 3501Reputation: 3501Reputation: 3501
Welcome to LQ.

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?

Seems like homework.

Please see the following LQ links:

Site FAQ
Site Rules
 
Old 07-29-2019, 10:29 AM   #3
amal.elahmed@hotmail.com
LQ Newbie
 
Registered: Jul 2019
Posts: 4

Original Poster
Rep: Reputation: Disabled
command located

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
 
Old 07-29-2019, 10:36 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 21,960

Rep: Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827
Quote:
Originally Posted by amal.elahmed@hotmail.com View Post
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.
 
Old 07-29-2019, 10:42 AM   #5
amal.elahmed@hotmail.com
LQ Newbie
 
Registered: Jul 2019
Posts: 4

Original Poster
Rep: Reputation: Disabled
cd is a shell builtin

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
 
Old 07-29-2019, 10:50 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 21,960

Rep: Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827Reputation: 5827
Quote:
Originally Posted by amal.elahmed@hotmail.com View Post
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.

Last edited by TB0ne; 07-29-2019 at 10:51 AM.
 
Old 07-29-2019, 11:30 AM   #7
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 9,155

Rep: Reputation: 3982Reputation: 3982Reputation: 3982Reputation: 3982Reputation: 3982Reputation: 3982Reputation: 3982Reputation: 3982Reputation: 3982Reputation: 3982Reputation: 3982
Code:
which cd
 
Old 07-29-2019, 11:37 AM   #8
rtmistler
Moderator
 
Registered: Mar 2011
Location: MA, USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 8,054
Blog Entries: 13

Rep: Reputation: 3501Reputation: 3501Reputation: 3501Reputation: 3501Reputation: 3501Reputation: 3501Reputation: 3501Reputation: 3501Reputation: 3501Reputation: 3501Reputation: 3501
Quote:
Originally Posted by amal.elahmed@hotmail.com View Post
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 View Post
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:
  1. 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.
  2. One can also type "manpage for <command>" into your favorite web search engine and find a multitude of hits.
  3. 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.
  4. 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.
 
Old 07-29-2019, 11:39 AM   #9
rtmistler
Moderator
 
Registered: Mar 2011
Location: MA, USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 8,054
Blog Entries: 13

Rep: Reputation: 3501Reputation: 3501Reputation: 3501Reputation: 3501Reputation: 3501Reputation: 3501Reputation: 3501Reputation: 3501Reputation: 3501Reputation: 3501Reputation: 3501
@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.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: If you were on a desert island, which license would you take with you? LXer Syndicated Linux News 0 07-20-2017 12:45 AM
Hi, I would like to find out which distro would be best for an old dell sammer47 Linux - Newbie 13 06-29-2014 03:07 AM
Would you still use linux today if you had to install packages by source KickAss General 14 10-15-2013 04:43 PM
What UNIX command do you use to find out the open ports? ayongying Linux - General 1 05-28-2010 07:46 AM
you would think i would have these... Vid Linux - Hardware 4 05-11-2004 01:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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