LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-07-2003, 10:44 PM   #1
x2000koh
Member
 
Registered: Jul 2002
Location: singapore
Distribution: red had 7.2
Posts: 109

Rep: Reputation: 15
bash: ll: command not found


Hi Linux user,
at my console, I can type ls -l to view the files and directories listing. But when I type ll it appear the following message :

bash: ll:command not found

appreciate anyone can help. By the way, I am using debian 3

regards,
x2000koh
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 08-07-2003, 11:23 PM   #2
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
if you were reading a tips and tricks page about alias' and you are figuring that when people use the ll command that it does the same as ls -l without doing anything well then thats where you got tricked
you have to make an alias for "ll" if you want to use it as a command as it doesn't pre-exist...
so you could edit your .bashrc file in your home directory and type:
alias ll='ls -l'
and then when you type ll you will see the same output as ls -l.
 
2 members found this post helpful.
Old 08-07-2003, 11:42 PM   #3
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
--Never mind. Forgot to refresh the page (as I often do) so missed DrOzz' reply.


Why would you type 'll'? I mean, it's saying command not found, because it's not a command (that I know of). Do you mean you have aliased 'ls -l' to 'll'? Then it could be saying that because bash isn't sourcing the file where you made the change in certain contexts. Otherwise, 'ls' is what you want.

Or am I completely missing something?

Last edited by slakmagik; 08-07-2003 at 11:44 PM.
 
Old 08-08-2003, 05:11 AM   #4
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
well it's a pretty common alias that many distros set as a default. run "alias"... maybe you're set for it already...
 
1 members found this post helpful.
  


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
Bash: command not found! Adil_uk Linux - General 14 04-09-2012 01:04 AM
bash: pg: command not found Chomper Programming 2 02-05-2005 02:22 AM
-bash: cp: command not found johnlittlepeap Fedora 2 11-15-2004 08:52 AM
bash -command not found- K3V Linux - Newbie 7 09-30-2004 03:57 PM
bash: command not found jc80 Fedora 3 03-14-2004 03:11 PM

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

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