LinuxQuestions.org
Register a domain and help support LQ
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 09-11-2004, 05:28 AM   #16
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370

Ok, Ciccio, calm down a little. Chinaman has a point (not to mention 1,500+ posts to his credit -> not a newbie).

The point he's trying to make is, if you use auto complete, you need to leave the shell with a single, unique command/file to match with.

On my system, "cat" is not the only executable that starts with "ca". So, typing ca and hitting tab causes the console to beep and do nothing. Typing ca and hitting tab twice in rapid succession gives:
Code:
$ ca
cadaver               capifax               case
cal                   capifaxrcvd           cat
calibrate_ppa         capiinfo              catchsegv
cancel                captoinfo
cancel.LPRng          card
$ ca
In this case, the user would have to type the full command name out, including the space. Without the space, the shell would still gripe about catchsegv. Similarly, using auto complete for /p won't work if there's another directory that starts with a 'p' in the root directory (like /projects for instance).

Those things need to be taken into consideration when giving commands (especially to new users). A specialized command for a specific system won't help the newbie with a general system. If it did, I would beat you all by creating an alias:
Code:
$ alias a='cat /proc/version'
$ a
Linux version 2.4.18-14 (bhcompile@stripples.devel.redhat.com) (gcc version 3.2
20020903 (Red Hat Linux 8.0 3.2-7)) #1 Wed Sep 4 13:35:50 EDT 2002
$
 
Old 09-11-2004, 05:30 PM   #17
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally posted by Dark_Helmet

Code:
$ alias a='cat /proc/version'
$ a
Linux version 2.4.18-14 (bhcompile@stripples.devel.redhat.com) (gcc version 3.2
20020903 (Red Hat Linux 8.0 3.2-7)) #1 Wed Sep 4 13:35:50 EDT 2002
$
:D
Code:
$ alias a='uname -a'
$ a
Linux diggn 2.4.26-lck1 #2 Fri Aug 27 09:31:19 NZST 2004 i686 unknown unknown GNU/Linux
$

:D

Cheers,
Tink
 
Old 09-11-2004, 07:40 PM   #18
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Show-off!
 
Old 09-11-2004, 08:45 PM   #19
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL
Distribution: Funtoo
Posts: 6,926

Rep: Reputation: 128Reputation: 128
Quote:
Originally posted by Dark_Helmet
Ok, Ciccio, calm down a little. Chinaman has a point (not to mention 1,500+ posts to his credit -> not a newbie).

The point he's trying to make is, if you use auto complete, you need to leave the shell with a single, unique command/file to match with.

:D
Thanks. I didn't think it was necessary to explain all that to a writer of open
source documentation. The original poster started with, "I'm new to Linux,"
which should be a clue for us not to assume anything, but if we really want
to help them, either spoon-feed them or start them on the right path and
link them to 'properly written documentation' if available.

I'm on a crusade for documentation that is not esoteric!

mingdao@paul:~$ ca[tab][tab]
cabextract cacaball cacafire cacaplas cacaxine callbootd cancel-cups captoinfo case catalogmanager
caca-config cacademo cacamoir cacaview cal cancel cancel-lprng card cat catchsegv
 
  


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
Is there a single command to list all hardware installed (command line)? davee Linux - Hardware 6 02-28-2009 08:19 PM
Require Linux/Perl equivalent command for windows Command alix123 Programming 7 08-19-2005 03:23 AM
Key stroke/command to shut down x and go into the command prompt screen? Fear58 Linux - General 1 07-14-2004 08:14 PM
Command to display whole filestructure hierarchy f/ command line? mjewell Linux - Newbie 10 01-19-2004 11:48 AM
Where is Command line utility for Cups and command tutorial mossy Linux - Software 8 01-16-2004 01:24 AM


All times are GMT -5. The time now is 02:27 AM.

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