Sei sulla pagina 1di 36

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.

continu Continues a loop.


e

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.

hashsta Displays hash table statistics.


t
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

VSAM ModernizationCut Costs & Move to Relational Db's VSAM to DB2, SQL Server or
Oraclewww.bphx.com

PetaLinux SDKThe only Embedded Linux purpose- built for FPGA-based


systems.www.petalogix.com/petalinux

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
 Introduction to Linux - 2.2.3. Using Bash features

Juergen Haas
Linux Guide

 Sign up for my Newsletter

 My Blog
 My Forum

Sponsored Links

Free ZFS based NAS/iSCSIIn-line dedupe and compression End vendor lock-in, save
75%www.nexenta.com
Linux from ScratchLinuxQuestions.org now has a dedicated Linux from Scratch
forum.LinuxQuestions.org

Your G. Loomis SuperstoreBest Fly Fishing Rods In Stock! Same Day


Shipping.AmericanLegacyFishing.com/gloomis

IMS to DB2 MigrationDL/2 provides automated migration without changes to application


codewww.circle-group.com

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

Indoor Research RobotAffordable, Capable, and Expandable Program in Linux or


Windowsrobotics.coroware.com/corobot

18/1a9 http://linux.about. http://linux.about. +:gs::linux


Free Linux Newsletter!
1 linux 0 1
Sign Up

Advertisement

Linux Ads
Linux Download Linux Commands RedHat Commands Linux Support Unix Course
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.


Mas
wawan
wedding
Mas
wawan
wedding
Mas
wawan
wedding
Mas
wawan
wedding
Mas
wawan
wedding

Potrebbero piacerti anche