Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 6th October 2009, 09:58 PM
asian_al Offline
Registered User
 
Join Date: Oct 2009
Posts: 1
linuxubuntufirefox
Basic commands?

Using terminal, how would you find the source code of the cd command? I didn't think you could....

Is there any way to add a new service system to and set it up to start up only if the system is in run level two or five? I believe you can somewhere in the service config GUI?
Reply With Quote
  #2  
Old 6th October 2009, 10:14 PM
Simian Man's Avatar
Simian Man Offline
Registered User
 
Join Date: Sep 2008
Location: Tallahassee
Age: 28
Posts: 336
linuxfirefox
Quote:
Originally Posted by asian_al View Post
Using terminal, how would you find the source code of the cd command? I didn't think you could....
The cd command is actually built into the shell, there is no "cd" binary program as there is for ls and almost all others. TO find the source of cd, you'd have to look in the source of bash itself (or another shell).

As to your other question, I have no idea.
Reply With Quote
  #3  
Old 6th October 2009, 10:40 PM
scottro's Avatar
scottro Offline
Retired Community Manager -- Banned from Texas by popular demand.
 
Join Date: Sep 2007
Location: NYC
Posts: 8,142
linuxkonqueror
You mean, for example, have the cups service only start if you boot into runlevel 2 and 5? Sure, take a look at the man page for chkconfig

man chkconfig

See if that makes it clear, if not, post again.
__________________
--
http://home.roadrunner.com/~computertaijutsu

Do NOT PM forum members with requests for technical support. Ask your questions on the forum.


"I don't know why there is the constant push to break any semblance of compatibility" --anon
Reply With Quote
  #4  
Old 7th October 2009, 01:28 AM
Gödel's Avatar
Gödel Offline
Registered User
 
Join Date: Jul 2009
Location: London,England
Posts: 1,095
linuxfedorafirefox
Bash source for cd:

Code:
$ yumdownloader --source bash
$ rpm -ihv bash-4.0-8.fc11.src.rpm 
$ sudo yum-builddep bash-4.0-8.fc11.src.rpm 
$ rpmbuild -bp ~/rpmbuild/SPECS/bash.spec 
$ vi ~/rpmbuild/BUILD/bash-4.0/builtins/cd.def
chkconfig or system-config-services gui enable/disable services at required runlevels. You can create your own service, eg http://forums.fedoraforum.org/showthread.php?t=220213
Reply With Quote
Reply

Tags
basic, commands

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
basic commands debajyoti123 Using Fedora 11 9th May 2008 05:49 AM
Basic Networking Commands LT72884 Servers & Networking 5 6th February 2008 09:11 PM
Basic gpg help Ullrich Using Fedora 21 11th April 2007 11:41 AM
Basic Java console commands -help needed Balinsky Programming & Packaging 4 31st January 2007 12:52 AM
Basic Help haroldjclements Using Fedora 8 14th June 2006 08:57 PM


Current GMT-time: 02:13 (Wednesday, 22-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat