- make
- ./a.out
To exit from the shell, use the command quit
it changes the directory
the commands implemented are:
cd
cd ..
cd .
cd ~
cd <directory>
cd - (this changes into the previous working directory)
it gives the present working directory
it prints the message on the terminal
it lists the contents of the directory
the commands implemented are:
ls
ls .
ls ..
ls -l
ls -a
ls -al
ls -la
ls <directory>
ls ~
runs a process specified by & in background.
runs a process in foreground.
prints process info of current shell if no arguments and prints the process info of process with the argument as pid.
setenv :to set the environment variable to a given value
unsetenv:to destroy the variable
changes a stopped background job to a running background job
brings a running or a stopped background job with given job number to foreground
prints a list of all background processes
takes the job id of a running job and sends a signal value to that process
kills all background processes at once
one or more commands can be piped.pipe also can be combined with redirection
output can be redirected to another file and input can be taken from a given file.
CTRL_C:sends SIGINT to the foreground processes of shell
CTRL_Z:send SIGINT and SIGTSTP to foreground process and makes it background process