Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
hai..
i created one virtual console for my linux platform.what ever command i'm entering in that virtual console i'm executing and storing in side a file for my work .the problem is that"WHEN EVER I TYPE HALF THE COMMAND (eg:'l' for 'ls' command) AND PRESS TAB IT IS NOT LISTING THE WHOLE COMMAND.INSTEAD THE CURSOR IS MOVING ACCORDING TO THE TAB PRESSING..is there any solution for that????
thanking you aparna.
hello sir..
thanks for your reply.what i meant by virtual console is that i created a c program in which i'm creating a console by my own with home directory and current directory and with a # symbol.i'm using this to find whether the entered person is an intruder or not.
so i have to get the same functionality which is used by all shells to display all commands starting with that letter when we press tab after that particular letter.can you help me
thanking you ...aparna
Hello Aparna,
I guess U can use 'grep' command to grab all the executable commands from bin or sbin folder and associate them with thehalf typed command and the tab sequence.
I hope it may work fine. Though am not a serous C programmer. But I have learned C and currently using linux like anything. Working on getting samba up and running with the shares on linux box. Anyway.
Hope it solves your problem. all the best
Rajesh.
i used grep to list all the commands .it's working .but the problem is that whem i press the tab the cursor is moving.so it's not giving the real console appearence.in the real console when we press tab it listing commands with out moving the cursor .
how can set that property in my virtual console..
help me plaese....thank you
aparna
that is a function of bash, in order to have that in ut program i would suspect u would either somehow integrate bash into it, or write the function yourself.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.