Shell Command Librar1.docx

Document Sample
Shell Command Librar1.docx Powered By Docstoc
					Shell Command Library

Important Note: Shell commands may vary in syntax and usage from one type of shell to
another. The shell command library here is provided as general references. Use the man
command to see how a command is used in a particular shell.

C Shell Commands and What They Do
(Continued after the ads...)

The C shell provides the following built-in commands:

#          Marks a command.

alias      Displays alias.

bg         Resumes job in the background.

break      Resumes execution after the loop.

breaksw    Breaks from a switch command; resumes after the endsw command.

case       Defines a label in a switch command.

cd         Changes directory.

chdir      Changes directory, same as cd.

continue Continues a loop.

default    Specifies the default case in a switch.

dirs       Displays the directory stack.

echo       Writes arguments to the standard output of the shell.

eval       Evaluates a command.

exec       Executes the command in the current shell.

exit       Exits the shell.

fg         Brings a job in the foreground.

foreach    Specifies a looping control statement and execute a sequence of commands until
           reaching an end command.

glob       Writes arguments to the standard output of the shell, like the echo command,
           but without the new line.

goto       Continues execution after the specified label.

hashstat Displays hash table statistics.

history    Displays the history list.

if         Executes a command if condition met.
jobs       Lists active jobs.


Sponsored Links

Download QtBuild applications easily for many platforms with Qt.Qt.nokia.com

Free ZFS based NAS/iSCSIIn-line dedupe and compression End vendor lock-in, save
75%www.nexenta.com

GNU Bash Shell BasicsFree Bash Shell Tutorials For Users and
Adminsalonzofretwell.com/blog/cate

kill              Sends a signal to a process. term (terminate) is the default signal.

limit             Sets or list system resource limits.

login             Logs on.

logout            Logs out.

nice              Changes the priority of commands run in the shell.

nohup             Ignores the hangup signal.

notify            Notifies the user about changes in job status.

onintr            Tells the shell what to do on interrupt.

popd              Pops the top directory off the directory stack and changes to the new top
                  directory.

pushd             Exchanges the top two elements of the directory stack.

rehash            Re-computes the hash table of the contents of the directories in the path shell
                  variable.

repeat            Repeats the execution of a command.

set               Displays or set the value of a shell variable.

setenv            Sets environment variables.

shift             Shifts shell arguments.

source            Reads commands from a script.

stop              Stops a background job.

suspend           Stops the current shell.

switch            Starts a switch.

time              Displays the time used to execute commands.

umask             Shows or set file permissions.
unalias       Removes command alias.

unhash        Disables the internal hash table.

unlimit       Removes limitations on system Resource.

unset         Deletes shell variables.

unsetenv      Deletes environment variables.

wait          Waits for background jobs to complete.

while         Executes the commands between the while and matching end statements
…end          repeatedly.

@             Displays or set the values of all the shell variables.




Related Articles

       Linux Commands and Shell Commands Libraries
       Linux/Unix Commands and Shell Commands
       Introduction to Linux - Differing features
       Emacs Documentation - Single Shell
mayor
      Introduction to Linux - 2.2.3. Using Bash features




Juergen Haas




Linux Guide
      Sign up for my Newsletter




      My Blog
      My Forum

Sponsored Links

Total System InformationAsset Agent & Utility for Windows, AppleMac, UNIX/Linux -
GUI/CLI/APIwww.MagniComp.com/sysinfo

Indoor Research RobotAffordable, Capable, and Expandable Program in Linux or
Windowsrobotics.coroware.com/corobot

ARM9 BoardsARM9 Single Board Computers starts only $59, &ODM/OEM
Servicswww.armdesigner.com

NORIS Gold Leaf FactoryGermany's largest factory of Powder Silver and Shell
Silver.www.noris-blattgold.de

USB DUXLinux USB Data Acquisition The only Linux USB DAQ Availablewww.linux-usb-
daq.com

IRC Shell ProviderUse coupon sh3lls20off &get 20% off IRCd shell, irc shell vhost,
bncwww.sh3lls.net
                         18/1a9       http://linux.about.   http://linux.about.   +:gs::linux
Free Linux Newsletter!
 1               linux            0            1
                                                                                  Sign Up

Advertisement

Linux Ads
Shell RedHat Commands Linux Download Linux Support Linux Commands
Explore Linux
Must Reads

        Linux Desktop 101
        Linux Glossary
        Linux Commands
        Shell Commands
        Linux Games

Most Popular

find - Linux Command - Unix Commandftp - Linux Command - Unix Commandunzip - Linux
Command - Unix Commandzip - Linux Command - Unix Commandtop - Linux Command -
Unix Command

                         18/1gG       http://linux.about.   http://linux.about.   +:gs::linux
Free Linux Newsletter!
 1               linux            0            1
                                                                                  Sign Up
By Category

        Linux 101
        Glossaries
        Linux HowTos
        Linux / Shell Commands
        Linux Distributions
        Linux Documentation

        Linux Software
        Open Source Issues
        Embedded Linux
        Linux / Tech News
        Linux Online Courses

About.com Special Features
How to Buy a PC for Less

You don't have to break the bank on a new computer. Find out how to save on your next PC.
More
Find the Perfect Web Page Editor

This simple questionnaire will show you which Web design software tool is right for you. More



Linux

   1. Home
   2. Computing & Technology
   3. Linux

       Most Popular
       Latest Articles

Add to:

       iGoogle
       My Yahoo!
       RSS

       Advertising Info
       News & Events
       Work at About
       SiteMap
       All Topics
       Reprints
       Help

       User Agreement
       Ethics Policy
       Patent Info.
       Privacy Policy

       Our Story
       Write for About

©2010 About.com, a part of The New York Times Company.

All rights reserved.
Mayor

				
DOCUMENT INFO
Shared By:
Categories:
Stats:
views:15
posted:7/23/2010
language:English
pages:34
Description: Shell Command Librar1.docx