ebook download | ebook requests | shared ebooks | ebook blog | member login - register

Home » Tutorial Linux » GNU Linux Command Line Conventions

GNU Linux Command Line Conventions

Category : » Tutorial Linux

Content Summary :

Command-Line Arguments Systems Programming Page: 1/2 Compiled & Edited by Muhammad Nadeem Khokhar http://www.brain.com.pk/~mnk/ For Digital Research Labs, Islamabad www.drl.com.pk SZABIST, Islamabad www.szabist-isb.edu.pk GIKI, Topi www.giki.edu.pk You run a program from a shell prompt by typing the name of the program. Optionally, you can supply additional information to the program by typing one or more words after the program name, separated by spaces. These are called command-line arguments. You can also include an argument that contains a space, by enclosing the argument in quotes. More generally, this is referred to as the program’s argument list because it need not originate from a shell command line.

When a program is invoked from the shell, the argument list contains the entire command line, including the name of the program and any command-line arguments that may have been provided. Suppose, for example, that you invoke the ls command in your shell to display the contents of the root directory and corresponding file sizes with the command line ls -s /. The argument list that the ls program receives has three elements. The first one is the name of the program itself, as specified on the command line, namely ls. The second and third elements of the argument list are the two command-line arguments, -s and /. The main function of your program can access the argument list via the argc and argv parameters to main. The first parameter, argc, is an integer that is set to the number of items in the argument list. The second parameter, argv, is an array of character pointers. The size of the array is argc, and the array elements point to the elements of the argument list, as NUL-terminated character strings.

Source : brain.com.pk | Download Link : brain.com.pk

More on Free PDF eBooks Download Tutorial Linux

Support us to spread the knowledges for all through good free ebooks in pdf file format by recommending this topic

Favorite Tutorial Linux PDF File

The Linux Installation HowTo

category Tutorial » Tutorial Linux

Linux distributions are available both via anonymous FTP and via mail order on diskette, tape, and CD−ROM. There are many checklists and comparative reviews of Linux distributions out there. The Linux Weekly News site, in addition to being an excellent general source of news and information, carries a weekly report.... more.

Linux Installation and Getting Started

category Tutorial » Tutorial Linux

This book is an installation and new-user guide for the Linux system, meant for UNIX novices and gurus alike. Contained herein is information on how to obtain Linux, installation of the software, a beginning tutorial for new UNIX users, and an introduction to system administration. It is meant to be.... more.

Andy Melton XAMPP Server Installation Tutorial

category Tutorial » Tutorial Linux

Normally, to set up a web server you'd have to install each of those individually. With XAMPP, you install one application and you have a fully functional server. Now, you're probably thinking, “Well, if it's that easy then why is this blog entry HUGE!?” Well. The reason this is a.... more.

Linux HA Release 2 Tutorial

category Tutorial » Tutorial Linux

HA Principles, Installing Linux-HA, Basic Linux-HA configuration, Configuring Linux-HA, Sample HA Configurations, Testing Clusters, Advanced features .... more.

Linux Installation and Getting Started Guide

category Tutorial » Tutorial Linux

This book is meant for UNIX novices and gurus alike. It contains information on, how to obtain Linux, software installation, a tutorial for new Linux users, and an, introduction to system administration. It is meant to be general enough to be appli-, cable to any distribution of Linux. .... more.

eBook PDF Free Download | Copy Right © 2007-20013

Privacy Policy eBook PDF Search Terms | Recent eBook PDF Downloads

Find latest added pdf files and updates : 1 2 3 4 5 6 7 8 9 and more...

All PDF files listed in this site are found through legal search procedures. If you find your PDF file or copyright in the file that you don't want to share, please let us know by sending email via admin account from the site where you put your files. We list good pdf file so our visitors can download free PDF. Download files for tutorials, manuals, and references in PDF file format.