Sponsored Content
Full Discussion: Friendly command script
Top Forums Shell Programming and Scripting Friendly command script Post 101527 by Lakis on Thursday 9th of March 2006 09:58:27 AM
Old 03-09-2006
Friendly command script

Hi,

I need a unix script to help my students using unix and will make it more friedly with them.

The script will do something like that, when a user writes a letter, then it will be apeared to the screen the available commands or files that fit to the spesific letter that the user gives.

For a example,

when you write the letter `m`, the result will apear to the screen is all the commands that start with letter m. make makdir,mv and etc. Or the files in the spesific folder that start with letter īmī.

If you have anything that will help with this tell me pls.

Thank you
 

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Most Neewbie friendly distribution

Hi! I guess the title says it all. I'm thinking about installing unix on a computer because that's the system they use in school so I'm just wondering which distribution I should download, which is most suitable for me. I have use a unix computer 3 times in school. I have had Windows for quite... (8 Replies)
Discussion started by: Rayben
8 Replies

2. UNIX for Dummies Questions & Answers

Friendly hello

To all whom belong to the UNIX forums - I just came across your web-site from a google search, wanted to say that I am looking forward to posting with you all and trying to learn as much as I can about Unix. I currently run a small version of linux on an obsolete laptop, I have been using... (0 Replies)
Discussion started by: Cheesedinverts
0 Replies

3. Shell Programming and Scripting

User friendly

Hello, As a newbie: I know that ls -l list files in a directory.Can i get a Bash script that prints the same information as ls -l but ib a user friendly way? Thank you. (3 Replies)
Discussion started by: debut
3 Replies

4. Programming

How to Write Linux Friendly Async Socket I/O

I am presently refactoring a windows deamon with an eye towards porting it to linux someday. Presently the application uses a single background thread and asynchronous socket I/O to implement FTP and HTTP clients in a single switch statement (2000 lines and 100 cases just for the switch... (3 Replies)
Discussion started by: siegfried
3 Replies

5. Filesystems, Disks and Memory

Help finding a Unix friendly RAID 1 backup

First time poster and a very new Unix user, so I'll just pre-apologize for stupid questions now. Does anybody know of a good RAID 1 hard drive backup that is Unix friendly? I want to avoid any hardcore programming. Can you recommend both NAS and non-NAS options? I need to do nightly backups... (31 Replies)
Discussion started by: c.wakeman
31 Replies

6. Red Hat

Mulitpath user-friendly name is correct

We have device mapper multipath configured. multipath -ll is showing things correctly. But when ever we are executing lvm related command, say pvs, it is showing /dev/mpath/<wwid> number instead of expected /dev/mpath/mpathX as follows - /dev/mpath/360060e801603c800000103c800002b22 Here,... (0 Replies)
Discussion started by: atanubanerji
0 Replies

7. What is on Your Mind?

Mobile Friendly Version of UNIX.COM

Hello, I have noticed some problems with Google complaining our site is not "https://search.google.com/www.usearch-console/mobile-friendly" using only Tapatalk. So, after a lot of work, I have re-enabled our legacy mobile style and make some improvements and Google has declared us "mobile... (2 Replies)
Discussion started by: Neo
2 Replies
rc2(8)							      System Manager's Manual							    rc2(8)

NAME
rc2 - Run command script executed when entering a multiuser run level SYNOPSIS
rc2 DESCRIPTION
The rc2 script contains run commands that enable initialization of the system to a multiuser state; run level 2. In addition to commands listed within the script itself, rc2 contains instructions to run certain commands found in the /sbin/rc2.d directory. The script defines the conditions under which the commands execute; some commands run if the system is booting, other commands execute if the system is chang- ing run levels. By convention, files in the /sbin/rc2.d directory begin with either the letter "K" or the letter "S" and are followed by a two-digit number and a filename; for example: K00lpd S00savecore S25uucp In general, the system starts commands that begin with the letter "S" and stops commands that begin with the letter "K." Commands that begin with the letter "K" run only when the system is changing run levels from a higher to a lower level. Commands that begin with the letter "S" run in all cases. The numbering of commands in the /sbin/rc2.d directory is important since the numbers are sorted and the com- mands are run in ascending order. Files in the /sbin/rc2.d directory are normally links to files in the /etc/init.d directory. An entry in the inittab file causes the system to execute the rc2 run commands, for example: s2:23:wait:/sbin/rc2 < /dev/console > /dev/console 2>&1 The following operations are typical of those that result from executing the rc2 script and the commands located in the /sbin/rc2.d direc- tory. The operation depends on which state the system is entering or exiting. Setting the time zone Checking the current run level Stop- ping network services and daemons Starting (or stopping) system services and daemons Starting the cron daemon Setting up paging and dump facilities Setting up uucp files Setting the TIMEZONE variable is one of the first operations completed by the rc2 script. This action provides the default time zone for subsequent commands. FILES
Specifies the command path Specifies the directory of commands that correspond to the run level RELATED INFORMATION
Commands: init(8), rc0(8), rc3(8) delim off rc2(8)
All times are GMT -4. The time now is 09:06 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy