Visit Our UNIX and Linux User Community


Shell Problem.


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Shell Problem.
# 1  
Old 08-27-2002
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.
This User Gave Thanks to ###1tomato For This Post:
# 2  
Old 08-27-2002
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
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-28-2002
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
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?
 

Previous Thread | Next Thread
Test Your Knowledge in Computers #333
Difficulty: Easy
Linux was first developed as an alternative to Windows XP.
True or False?

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

shell problem

this picture for print You didn't do the question. Go back. if $1 = 0 but until now it give me this message what i should be do ? http://img717.imageshack.us/img717/6137/eeevb.jpg (2 Replies)
Discussion started by: NeeZaaR
2 Replies

2. Shell Programming and Scripting

shell problem

problem: I give the source of a c program.. is required to indicate how many times is called each function defined in the program and line number there is a call. let's say i have lab2.c: float dist(int *a,int *b,int n){ int i=0; double d=0; for (i=1;i<=n;i++){ d+=pow((a-b),2); }... (4 Replies)
Discussion started by: sherpeledenis
4 Replies

3. Shell Programming and Scripting

Problem in shell script

hi...i create a script which reads data from file and compare that the data which is entered by me through keyboard...i can easily read first two contents of file..i am facing the problem to read other contents.. structure of my file is username:password:username1:password1.......and so on ... (1 Reply)
Discussion started by: shubhig15
1 Replies

4. Shell Programming and Scripting

shell problem

Hello! Can you please help me on a lab at school: I have to to write a shell program which reads all .C files from the current directory and prints for each file how many '#define' directives it has and for each macro defined how many times is it used in that file. Can you suggest how can i... (1 Reply)
Discussion started by: dark_knight
1 Replies

5. Shell Programming and Scripting

problem with if in shell

Hi, My sheel script has below statement: if; then When I run iam getting the below error: -bash: syntax error near unexpected token `then' What is wrong with that statement: Plz help me. (2 Replies)
Discussion started by: pradeep_script
2 Replies

6. Shell Programming and Scripting

Shell Problem

Hi all, until yesturday grep command was running in KSH .... I was executing this command ls -l | grep *.sh But today its not working at all ... Should I check any of the setting ... I am not getting whats the problem ... I have relogged to unix box but it didn't... (14 Replies)
Discussion started by: dhananjayk
14 Replies

7. Shell Programming and Scripting

Problem in shell

hi, can any one tell a solution for the following : I want to append 10 spaces and a string say "ok" to 12 digit number which is stored in a varialbe & display using shell script. (1 Reply)
Discussion started by: Sandeep Kale
1 Replies

8. UNIX for Dummies Questions & Answers

shell problem

What are the different type of shell available in UNIX and how to change the shell? just this 2 question pls help mi (4 Replies)
Discussion started by: yeah016
4 Replies

9. UNIX for Advanced & Expert Users

Shell Problem

Dear Members; I changed ,by mistake ,the root shell in /etc/passwd and logged out. Thereafter, I can no more have a prompt when trynig to log in as root. How to solve this pb ? Regards :confused: (8 Replies)
Discussion started by: oss
8 Replies

10. UNIX for Dummies Questions & Answers

shell problem

&& set -x && echo "enter tablespace_end_backup" >&2 Can you tell me what's mean above? thanx (1 Reply)
Discussion started by: Lee
1 Replies

Featured Tech Videos