Unixshell
Unixshell
Shell Types:
In UNIX there are two major types of shells:
There are again various subcategories for Bourne Shell which are
listed as follows:
C shell ( csh)
TENEX/TOPS C shell ( tcsh)
Shell Prompt:
The prompt, $, which is called command prompt, is issued by the
shell. While the prompt is displayed, you can type a command.
The shell reads your input after you press Enter. It determines
the command you want executed by looking at the first word of
your input. A word is an unbroken set of characters. Spaces and
tabs separate words.
$date
Thu Jun 25 08:30:19 MST 2009
OS
8. cp : This ‘$ cp ‘ command stands for ‘copy’ and it simply copy/paste the file
wherever you want to.In the above example, we are copying a file ‘file.txt’ from the
directory harssh to a new directory new.
$ cp /home/harssh/file.txt /home/harssh/new/
9. mv : The ‘$ mv’ command stands for ‘move’ and it simply move a file from a
directory to another directory.In the above example a file named ‘file.txt’ is being
moved into a new directory ‘new’
$ mv /home/harssh/file.txt /home/harssh/new
10. rm : The ‘$ rm ‘ command for remove and the ‘-r’ simply recursively deletes