LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 06-29-2002, 07:54 AM   #1
Fluke
LQ Newbie
 
Registered: Jun 2002
Posts: 2

Rep: Reputation: 0
Question on .bashrc


I used Solaris for awhile and had my .cshrc customized with different paths, prompt, and short commands such as cd/ for cd /, cd.. for cd .. , lsl for ls -l | more, lsa for ls -a | more ... and so on.
Since then I totally forget exactly how to word them in the file.
Can anyone please post examples for your .bashrc, .cshrc, .xxrc files
 
Old 06-29-2002, 09:56 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
just use alias

alias ll='ls -l'

etc...
 
Old 06-29-2002, 01:40 PM   #3
sewer_monkey
Member
 
Registered: May 2002
Location: Toronto, ON, Canada
Distribution: Ubuntu, Debian, RedHat/CentOS
Posts: 624

Rep: Reputation: 31
The only difference on setting aliases in csh and bash, is this:

Bash: alias ls = 'ls -la | less'
Csh: alias ls 'ls -la | less'

Cshell simply does not require an equals sign between the alias name and the alias value.

P.S. If you like C Shell, you don't have to stick with bash... Just change your shell.
 
  


Reply



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
Where is .bashrc? Luantum Slackware 3 12-01-2003 12:29 AM
.bashrc roofy Slackware 7 05-06-2003 01:32 PM
bashrc nobu Slackware 6 03-21-2003 10:53 AM
.bashrc question aizkorri Programming 6 08-14-2002 06:41 AM
.bashrc help envirodug Linux - Newbie 2 06-14-2001 11:00 PM

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

All times are GMT -5. The time now is 02: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
Open Source Consulting | Domain Registration