Shell: Sub command list/display [closed] - shell

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I have written a shell script, it takes many commands. On pressing TAB key shell should list the commands. How to make it?
Br,
Praveen P B

It depends on the shell you're targeting. For bash, you'll want to read the chapters on programmable completion in the Bash Reference Manual.
Basically, you write a script for it and have users source it somewhere (usually by placing it in /etc/bash_completion.d/ or similar; examining existing scripts there is probably a good idea, too).

Related

Monitor a process for actions applied on a file [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I want to monitor a process in windows to check what actions it performs on a particular file including renaming it, or encrypt it. I want to generate events for these actions.
its easier to monitor the file than the process. Take a look at FileSystemWatcher class. http://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher.aspx

Linux equivalent of windows pipeline [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
First question is, what would pipeline (|) mean in windows cmd?
Second question is, what would be the linux equivalent of windows pipeline?
In Windows cmd, a | causes the output of one command to become the input of a second command:
command1 | command2
Linux shells use the same syntax, with the same meaning.

Console based menu in bash [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
can anyone tell me how can i build console based menu in which i can navigate by direction keys to select options. Code should be in bash or shell script.
Look at pdmenu. It is pretty simple to use.
Or in case you need go deeper there is whiptail tool. It also allow you to build dialog box and so on. But it is a little bit harder to use comparing to pdmenu.
What about the dialog command?

Algorithm to "learn" from user input [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
Like the 20Q, is there a published algorithm that allows a program to "learn" from user input?
Programs like junk mail filters learn from what you tell it and uses that information to make more insightful choices in the future when classifying an email as junk.
Mahout is one open source machine learning library. It has implementations of a few different algorithms

Algorithms for tar and dump [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I need to know how tar, dump, cpio works. what is the algorithm behind all these program. How does tar traverse a file system tree, etc. Where can I get the details?
Thanks
If you want to know in detail how they work, you can download the source code of GNU tar, GNU cpio and ext2 dump.
If you have specific, more high-level question about one of them, you can ask a new question about that.

Resources