Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
google site



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Closed Thread
English Japanese Spanish French German Portuguese Italian Powered by Powered by Google
 
Search this Thread
  #1  
Old 08-27-2002
Registered User
 

Join Date: Apr 2002
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Question Shell Problem.

Hello and Good day to all.
Im having a problem here and would like to know if there is any solution that could overcome my problem.

I have changed from bash to csh (c-shell) yesterday on my Linux 7.2. When i do $echo $SHELL i can see the output /bin/csh which means ihave succesfully landed on c-shell. my question is when i do ls -a i cant see any .cshrc or .logout or .login files in my Home directory. Any idea.

Another problem is the ll comand doesnt work in csh the only command works is ls -l or ls -a Any idea how to get the ll command work ? ll - long listing ?

Thank you for your responsd.
Appreciate it,

John.
Sponsored Links
  #2  
Old 08-27-2002
Registered User
 

Join Date: Aug 2002
Location: North Carolina, USA
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
hey John!

I can answer your first question but not the second one.
Actually you have to use following command to see all files startign with .(dot).
ls -al

after giving this command you can see the files start with dot(.)

-al swith tell shell to list(l) all files starting with including those files starting with .(a).

default is all files excluding .(dot) files.

Hope this will work.

Abid Malik
  #3  
Old 08-27-2002
Registered User
 

Join Date: Aug 2002
Location: Chicago,Illinois
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Tomato,

If i remember right a ls -l will give you the long listing in C shell. Also you could make an alias -->

% alias ll ls -l
% alias bye exit
% alias
ll ls -l
bye exit
% alias bye
exit

Please correct me if Im wrong!!!
  #4  
Old 08-27-2002
Registered User
 

Join Date: Nov 2001
Location: New Zealand
Posts: 333
Thanks: 0
Thanked 0 Times in 0 Posts
Alias is dead on.....it's the only way that ll wil produce the long listing. It's best added to your profile for the shell....(.kshrc).
  #5  
Old 08-28-2002
LivinFree's Avatar
Goober Extraordinaire
 

Join Date: Jul 2001
Location: Portland, OR, USA
Posts: 1,584
Thanks: 0
Thanked 1 Time in 1 Post
Well, by "Linux 7.2", I assume you mean Redhat 7.2...

Redhat installs several aliases with bash by default. One of them is ll. Some others include:
l.
which,
and actually, the "ls" command itself.
(It's aliased to "ls --color=tty" to give you the perty colors).

As far as the dot files, I don't believe Redhat ever installs them in /etc/skel, which is where the "master" copies lie, and are copied over when a new user is created. Looks like you'll have to make your own...


BTW - why csh?
Sponsored Links
Closed Thread

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
problem with if in shell pradeep_script Shell Programming and Scripting 2 05-23-2008 01:49 PM
Shell Problem dhananjayk Shell Programming and Scripting 14 11-21-2006 08:02 AM
shell problem yeah016 UNIX for Dummies Questions & Answers 4 07-20-2006 10:10 AM
Shell Problem oss UNIX for Advanced & Expert Users 8 10-04-2005 03:00 PM
shell problem Lee UNIX for Dummies Questions & Answers 1 09-10-2001 10:18 AM



All times are GMT -4. The time now is 11:52 PM.