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. |
breaksw | Use this to Break from a switch command the running commandresumes after the endsw command. |
fg | Brings a job in the foreground. |
chdir | Changes directory, same as cd. |
cd | Changes directory. |
nice | Changes the priority of commands run in the shell. |
case | Conditionally performs a command |
goto | Continues execution after the specified label. |
alias | Create an alias. |
unsetenv | Deletes variables of environment. |
unset | Deletes variables of shell. |
unhash | Disables the internal hash table. |
hashstat | Displays the statistics of hash table. |
set | Displays or set the value of a shell variable. |
@ | Displays or set the values of all the shell variables. |
history | Displays the history list. |
dirs | Displays the list of directories in a stack. |
time | Displays the time used to execute commands. |
eval | Evaluates a command. |
pushd | Exchanges the top two elements of the directory stack. |
if | Executes a command if condition met. |
exec | Executes the command in the current shell. |
while ...end | Executes the commands while matching end statements repeatedly. |
exit | Exits the shell. |
nohup | Ignores the hangup signal. |
jobs | Lists active jobs. |
login | Logs on. |
logout | Logs out. |
notify | Notifies the user about changes in job status. |
popd | Pops the top directory off the directory stack and changes to the new top directory. |
rehash | Re-computes the hash table from the contents of the directories in the path shell variable. |
source | Reads commands from a script. |
unalias | Removes command alias. |
unlimit | Removes limitations on system Resource. |
repeat | Repeats the execution of a command. |
continue | Resume the next iteration of a loop or continues after loop |
break | Resumes execution after the loop. |
kill | Sends a signal to a process. term (terminate) is the default signal. |
bg | Sends the job to background. |
setenv | Sets environment variables. |
limit | Sets or list system resource limits. |
shift | Shifts shell arguments. |
umask | Shows or set file permissions. |
foreach | Specifies a looping control statement and execute a sequence of commands until reaching an end command. |
default | Specifies the default case in a switch. |
switch | Starts a switch. |
stop | Stops a background job. |
suspend | Stops the current shell. |
onintr | Tells the shell what to do on interrupt. |
wait | Waits for background jobs to complete. |
glob | Writes arguments to the standard output of the shell, like the echo command, but without the new line. |
echo | Writes arguments to the standard output of the shell. |
Comments
Post a Comment