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 104725
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T01:19:36+00:00 2026-05-11T01:19:36+00:00

Problem: Customer X is a Windows user who wants to be able to trigger

  • 0

Problem: Customer X is a Windows user who wants to be able to trigger pre-packaged bash commands by using mnemonic keywords or ‘tag hints’ when she is logged in to her RedHat box via shell.

Example: Customer X logs into host using ssh and wants to do some routine file operations. She wants to be able to type

copy file 

and get back a listing of pre-fab fill-in-the-blank bash commands to choose from

cp <@source@> <@dest@>               ### simple copy cp -R <@startdir@>  <@destdir@>      ### recursive copy 

she then wants to be able to select one of these items, fill in the blank(s) and just hit enter to run the command.

Customer X is willing to specify ahead of time what commands she is likely to want to use (in windows-speak) and then hire the developer to translate those into bash commands, and then put them together in a script that allows her to talk windows-speak to bash and get back the list of commands.

NOTE: Customer X doesn’t like apropos because it assumes familiarity with terms used in bash, as opposed to windows-speak. For example:

 apropos shortcut 

doesn’t give her anything about creating symlinks (even though that is exactly what she wants) because she doesn’t know what windows shortcuts are called in linux. Obviously, windows concepts don’t carry over 100% so she will have to learn eventually, but she’s a busy person and is asking for this as a way to ‘ease’ her into linux understanding.

Question: What is the best way to get started on something like this? Is there a perl, python, ruby script out there that does something like this already? Is there something in bash that can simulate this kind of feature request?

  • 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. 2026-05-11T01:19:37+00:00Added an answer on May 11, 2026 at 1:19 am

    What you probably want is to override bash’s command-not-found handler. Here’s the section in /etc/bash.bashrc in a standard Ubuntu install that installs the handler:

    ... # if the command-not-found package is installed, use it if [ -x /usr/lib/command-not-found ]; then         function command_not_found_handle {                 # check because c-n-f could've been removed in the meantime                 if [ -x /usr/lib/command-not-found ]; then                    /usr/bin/python /usr/lib/command-not-found -- $1                    return $?                 else                    return 127                 fi         } fi ... 

    In effect, if a command is not found, a user specified program is executed with that command as a parameter. In the case of Ubuntu, it’s a Python program that checks to see if the command the user typed is a valid application that can be installed, and if it is, informs the user that he/she can install it.

    What you probably want to do is compare it to you hashref of commands and usage strings and display the appropriate one if there’s a match.

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

Sidebar

Ask A Question

Stats

  • Questions 62k
  • Answers 62k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer Try just WHERE C_CredCardSSN LIKE @sp1 or WHERE C_CredCardSSN LIKE… May 11, 2026 at 10:04 am
  • added an answer This works great, other then my stupid, stupid typo This:… May 11, 2026 at 10:04 am
  • added an answer Since you never use 'root', the compiler may have been… May 11, 2026 at 10:04 am

Related Questions

Problem: Customer X is a Windows user who wants to be able to trigger
Problem: Customer X is (considering) porting one of his formerly Windows only shareware applications
Problem: Customer X has requested that pages using XML DataBinding and Databound tables in
I'm helping a customer who has a problem with a flash app. The flash
I'm currently having a problem with a ShoppingCart for my customer. He wants to
Problem: I have an address field from an Access database which has been converted
Problem: I have two spreadsheets that each serve different purposes but contain one particular
Problem (simplified to make things clearer): 1. there is one statically-linked static.lib that has
Problem: Ajax suggest-search on [ n ] ingredients in recipes. That is: match recipes
Problem: Given a list of strings, find the substring which, if subtracted from the

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.