Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7557403
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T12:07:19+00:00 2026-05-30T12:07:19+00:00

In Bash , if I press the tab key twice, then I see: Display

  • 0

In Bash, if I press the tab key twice, then I see:

Display all 1092 possibilities? (y or n)

Snippet:

!         diff              ifconfig      mount.fuse        rcsdiff       tiff2pdf
./        diff3             ifdown        mount.ntfs-3g     rcsmerge      tiff2ps
:         diffutils-cmp     ifenslave     mount.ntfs-fuse   rdisc         tiff2rgba
GET       diffutils-diff    iftop         mountpoint        rdjpgcom      tiffcmp
HEAD      diffutils-diff3   ifup          msgattrib         read          tiffcp
MAKEDEV   diffutils-sdiff   ifup-local    msgcat            readelf       tiffdiff
POST      dig               igawk         msgcmp            readlink      tiffdither
[         dir               igd-client    msgcomm           readonly      tiffdump
--More--

I thought that if I searched for all the executable files in the directories in my $PATH environment variable, then that would produce a single column list matching the data that more displays.

Here’s my first attempt:

echo $PATH | sed -e 's/:/ /g' -e "s/^/find / " | sh > commandlist.txt
wc -l commandlist.txt
1114 commandlist.txt

So I added -xtype f and -perm /u=x but still don’t get 1092:

echo $PATH | sed -e 's/:/ /g' -e "s/^/find / " -e "s/$/ -xtype f -perm \/u=x/" | sh | wc -l
1107

How does double tab key press in Bash generate its total ‘possibilities’ value?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T12:07:21+00:00Added an answer on May 30, 2026 at 12:07 pm

    this seems to work:

    compgen -cab | sort | uniq | wc -l
    

    on my machine it shows the same number as the tab complete thing.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

On bash or Window's Command Prompt, we can press the up arrow on keyboard
In Bash, when I am typing a command, I press Ctrl + U ,
If I use export variable method, the next bash shell can ignore eof(press ^D
I'm aware that much like a bash prompt in Vim you can press :
Press alt + numeric in bash and you get (arg [numeric]) what is that?
How can I check in Bash if the Enter key has been pressed? I'm
Bash how do you capture stderr to a variable? I would like to do
bash shell: ./mimic_cmd startDaemon() Corresponding Ant code: <exec failonerror=true executable=/bin/mimic_cmd> <arg value='startDaemon()' /> </exec>
#!/bin/bash echo SCRIPT: $0 echo Enter Customer Order Ref (e.g. 100018) read P_CUST_ORDER_REF echo
Setup: Bash Ruby 1.9.2 highline (1.6.13) Description: I'm fairly used to highline with some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.