LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 05-24-2005, 02:43 PM   #1
Xris718
Member
 
Registered: May 2003
Location: NYC
Distribution: CentOS
Posts: 261

Rep: Reputation: 30
no "cd" command present yet works


this is quiet a dilema i have. I can use "cd" command in FC2. Yet i cant trace it nore is it in my path nor do i have a binary of it.

I scanned my entire system and i cant locate "cd" command yet it works.

[root@lnx-yuri log]# find / -name 'cd' -print
/usr/share/screen/utf8encodings/cd
/usr/share/locale/l10n/cd
/lib/modules/2.6.10-1.8_FC2smp/build/include/config/cd
/lib/modules/2.6.5-1.358smp/build/include/config/cd
/lib/modules/2.6.8-1.521/build/include/config/cd
/lib/modules/2.6.8-1.521smp/build/include/config/cd
/lib/modules/2.6.5-1.358/build/include/config/cd

and

[root@lnx-yuri log]# strace cd /etc
strace: cd: command not found

[root@lnx-yuri log]# which cd
/usr/bin/which: no cd in (/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/sbin:/sbin:.)

SO weird... ANY ideas?
 
Old 05-24-2005, 02:46 PM   #2
Padma
Member
 
Registered: Aug 2003
Location: Omaha, NE, USA
Distribution: PCLinuxOS 2007
Posts: 808

Rep: Reputation: 30
"cd" is built into the shell. It doesn't *have* to be a stand-alone file.
 
Old 05-24-2005, 02:53 PM   #3
Xris718
Member
 
Registered: May 2003
Location: NYC
Distribution: CentOS
Posts: 261

Original Poster
Rep: Reputation: 30
what about "pwd" or "echo" binary in /bin, arent they also build in shells too?
 
Old 05-24-2005, 02:54 PM   #4
Padma
Member
 
Registered: Aug 2003
Location: Omaha, NE, USA
Distribution: PCLinuxOS 2007
Posts: 808

Rep: Reputation: 30
Actually, most shells use built-in versions of those, yes.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
echo "blabla" in a script present present in /etc/rc.d/rc5.d/S96dinesh murugesan Linux - Newbie 3 04-14-2009 10:53 PM
Shell Script: Find "Word" Run "Command" granatica Linux - Software 5 07-25-2007 07:42 AM
upgraded to 2.6.9, "less" command no longer works kersten78 Slackware 2 10-21-2004 06:45 PM
Tiny Sofa 2.0 - I thought "halt", "reboot" were only root command ?? sorcerer Linux - Distributions 1 08-21-2004 03:28 PM
"segmentation error" when issuing "useradd" command through terminal with RH 9.0 kaihuang Linux - General 0 10-21-2003 11:47 PM


All times are GMT -5. The time now is 10:14 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration