LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 05-30-2011, 12:46 AM   #1
jaili
LQ Newbie
 
Registered: May 2011
Posts: 5

Rep: Reputation: Disabled
cd command not working in .cshrc file (bash shell SUSE Linux)


Hello Experts,

Just trying to execute cd command in a .cshrc file (bash shell in SUSE Linux). But it says."No such file or directory".
Do you see any reasons for this?
Appreciate your valuable inputs.

Thanks much,
Jaili
 
Old 05-30-2011, 01:31 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
Hi and welcome to LinuxQuestions! Indeed the syntax of cd is the same for both the shells. It would be useful if you posted the exact offending command (or eventually the whole .cshrc file) and the complete error message.
 
Old 05-30-2011, 05:02 AM   #3
jaili
LQ Newbie
 
Registered: May 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
Re: cd command not working in .cshrc file (bash shell SUSE Linux)

Hi,
Thanks very much for your reply.
Now I tried the cd command in .bashrc file instead of .cshrc and it is working fine.

Now it is clear that for bash shell we need to work only with .bashrc file.

Regards,
Jaili
 
Old 05-30-2011, 09:25 AM   #4
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
Mark the thread as solved.
 
  


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: Linux Command Sequences in the Bash Shell LXer Syndicated Linux News 1 12-06-2010 09:34 PM
why to commit .cshrc "source .cshrc" file in every new shell session simer_anand88 Mandriva 3 10-23-2009 10:44 AM
Bash Shell Programming with elinks command in linux madmatrix Programming 2 04-22-2009 09:09 PM
Read command in bash shell file doesn't work jh111451 Linux - Software 4 07-28-2008 09:35 PM
Linux command shell bash for pg backroger Linux - Software 4 07-27-2008 10:03 PM


All times are GMT -5. The time now is 10:04 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