Go Job Hunting at the LQ Job Marketplace
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-12-2005, 01:43 AM   #1
Registered: Aug 2004
Location: CANADA
Distribution: Fedora core4
Posts: 60

Rep: Reputation: 15
shortcut for typing long names

hello everyone
i was wondering if there is a shortcut or short key way to type in long names in the shell i mean sometimes the file names with their versions are too long that we make so many mistakes typing them is there any way that shell can guess the rest if the file name if we type some of the words in the file
Old 01-12-2005, 02:02 AM   #2
Mega Man X
LQ Guru
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 64
yes, use TAB key. Type a few characters, then TAB. It will complete the hole path/File name for you. If more then one file is found (e.g you,ve typed "cd /home/user/doc + TAB") and you have multiples files which starts with doc (e.g, docs, documents) it will show you a list. It's pretty neat, try it
Old 01-12-2005, 02:03 PM   #3
Registered: Aug 2003
Location: Akron, OH
Distribution: Fedora Core 3
Posts: 185

Rep: Reputation: 30
and don't forget to make liberal use of the mouse. if you're like me, the first thing you do after cd'ing to a directory is "ls" to list the files, so the file that you want is right there on the screen. just double-click on the file name so that it hi-lites (which puts it into the paste-buffer) and then middle-mouse to paste it on the command line.
Old 01-12-2005, 02:54 PM   #4
Registered: Dec 2004
Location: Malta
Distribution: Debian Sid
Posts: 789

Rep: Reputation: 43
I never knew that. Fantastic!


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
long file names; fatso32 itzfritz Linux - General 7 11-14-2004 06:56 PM
long folder names opsraja Fedora 2 09-23-2004 01:56 PM
dosfs and long file names Ipolit Slackware 3 12-08-2003 01:36 PM
long pause after typing Startx & (Xfree86 4.3.0) bluester Linux - General 6 04-05-2003 08:14 PM
Long File Names Pwcca Linux - General 1 03-05-2003 05:15 AM

All times are GMT -5. The time now is 12:55 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration