Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
is there a command utility that the options is not explored yet by the command??
that were not explored by the command yet, then
enhance the command by reinventing its name and adding this option
to its current options.
You may combine related commands into one script also.
copyormovefile (-c -m) filename/s
copyormovefile is the name of the utility
(-c -m) are options that will do the following:
-c for copying filename/s
-m for moving filename/s
I think you are talking about aliases - where you assign a command to an alias to reduce typing. Alternatively, you may be talking about writing a script to invoke a particular command (or series of commands) in a manner (or manners) specific to your requirements.
I'm with Tinkster on this, I'm not entirely sure what you are asking.
OK - your question is probably a much bigger question than you realise. Using scripts you can customise almost anything, but you have to know how to do that. I recommend that you do some reading first to learn the basics. We can help you better when you understand what you are doing. Start here: http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html
The script I posted as an example was one I'd written myself (and not a particularly good script example if I'm honest). It was intended to show you what a script looks like and how, by using scripts, you can simplify commands or, by combining different commands, you can create new ones to perform your own custom actions as you have suggested. For example, each of the commands `cut` and `paste` exist in linux, but there is no `cutorpaste` command. By writing a script you could combine the functionality of the two commands into a single script, which you would call 'cutorpaste', and you would design the script in such a way that it uses the commands in the way that you want.
As I said, though, bash scripting is a very big subject, and you should ideally learn the basics first.