Skip to main content

52 C Shell Commands And Their Function!



Ready to try your hands on the C Shell? These commands may come in handy!


The C shell (csh), which is the improved version of tcsh, is a Unix shell (on majority of platforms), which was created by Bill Joy when he was graduating in University of California, Berkeley in the late 1970s. Introduced in the 2BSD release of the BSD Unix system, the C shell has gained popularity and is now spread far and wide. So, if you have decided to try your hands on this popular shell, here are 52 commands and their functions to help you through.Please note that Shell commands differ in usage and syntax from one type of shell to another and the commands mentioned here are listed for general references. You can always refer to the man command to see how the command will work in a particular shell.



#Marks a command.
breakswUse this to Break from a switch command the running commandresumes after the endsw command.
fgBrings a job in the foreground.
chdirChanges directory, same as cd.
cdChanges directory.
niceChanges the priority of commands run in the shell.
caseConditionally performs a command
gotoContinues execution after the specified label.
aliasCreate an alias.
unsetenvDeletes variables of environment.
unsetDeletes variables of shell.
unhashDisables the internal hash table.
hashstatDisplays the statistics of hash table.
setDisplays or set the value of a shell variable.
@Displays or set the values of all the shell variables.
historyDisplays the history list.
dirsDisplays the list of directories in a stack.
timeDisplays the time used to execute commands.
evalEvaluates a command.
pushdExchanges the top two elements of the directory stack.
ifExecutes a command if condition met.
execExecutes the command in the current shell.
while ...endExecutes the commands while matching end statements repeatedly.
exitExits the shell.
nohupIgnores the hangup signal.
jobsLists active jobs.
loginLogs on.
logoutLogs out.
notifyNotifies the user about changes in job status.
popdPops the top directory off the directory stack and changes to the new top directory.
rehashRe-computes the hash table from the contents of the directories in the path shell variable.
sourceReads commands from a script.
unaliasRemoves command alias.
unlimitRemoves limitations on system Resource.
repeatRepeats the execution of a command.
continueResume the next iteration of a loop or continues after loop
breakResumes execution after the loop.
killSends a signal to a process. term (terminate) is the default signal.
bgSends the job to background.
setenvSets environment variables.
limitSets or list system resource limits.
shiftShifts shell arguments.
umaskShows or set file permissions.
foreachSpecifies a looping control statement and execute a sequence of commands until reaching an end command.
defaultSpecifies the default case in a switch.
switchStarts a switch.
stopStops a background job.
suspendStops the current shell.
onintrTells the shell what to do on interrupt.
waitWaits for background jobs to complete.
globWrites arguments to the standard output of the shell, like the echo command, but without the new line.
echoWrites arguments to the standard output of the shell.


Comments

Popular posts from this blog

FAQ's Salesforce Lightning Platform Query Optimizer

This article comprises the FAQs related to salesforce internal platform Query Optimizer.and provides valuable information that will help understand how to improve the performance of SOQL queries. For more information, you may also check this Dreamforce Session . 1. Query Optimizer Q: Does Salesforce have its own SQL optimization logic instead of Oracle's built-in? A: Force.com is a multi-tenant platform. To consider multitenant statistics, the platform has its own SOQL query optimizer that determines optimal SQL to satisfy a specific tenant's request. Q: How frequently generated are the statistics used by the query optimizer? A: Statistics are gathered weekly. Where statistics are not calculated, the optimizer also performs dynamic pre-queries, whose results are cached for 1 hour Q: Is there any way to flush the cache when doing your performance testing so your results are not cached biased? A: Unfortunately not. Queries with selective filters will perform mor...

Javascript global variables

Question :  is there any difference between declaring a variable var a = 0 ; //1 and this way a = 0 ; //2 or window . a = 0 ; //3 in global scope? Soloution:      Yes, there are two differences, though in practical terms they're not usually big ones.  three statements explained var a = 0 ; ...creates a variable on the  variable object  for the global execution context, which is the global object, which on browsers is aliased as  window  (and is a DOM window object rather than just a generic object as it would be on non-browser implementations). The symbol  window  is, itself, actually a property of the global (window) object that it uses to point to itself. The upshot of all that is: It creates a property on  window  that you cannot delete. It's also defined before the first line of code runs (see "When  var  happens" below). Note that on IE8 and earlier, the property created on  ...

NoSQL Database (20 Best Free Open Source NoSQL Databses

  NoSQL databases are becoming popular day by day. I have come up with the list of best, free and open source NoSQL databases. MongoDB tops the list of Open Source NoSQL databases. This list of free and open source databases comprises of   MongoDB, Cassandra, CouchDB, Hypertable, Redis, Riak, Neo4j, HBASE, Couchbase, MemcacheDB, RevenDB and Voldemort.   These free and open source NoSQL databases are really highly scale-able, flexible and good for big data storage and processing. These open source NoSQL databases are far ahead in terms of performance as compared to traditional relational databases. However, these may not be always the best choice for you. Most of common applications can still be developed using traditional relational databases. NoSQL databases are still not the best option for a mission critical transaction needs. I have listed down a small description of all these best free and oper source NoSQL databases. Lets have a look.. 1. MongoDB MongoDB ...