- bg
- fg
- jobs
- kill
- &
- > < >>
- |
- test
- cd
- umask
- time
- env environ
- clear clr
- set
- unset
- exec
- help
- exit
- continue
- shift
- echo
- myshell batchfile
- $
- other external command
explain about background : the process can run in background while the shell can receive user I/O normally.
bg %id OR bg id
fg %id OR fg id
jobs
kill %id OR kill pid
COMMAND &
explain redirect : by redirect, user can send the output of command into files or capture input from files.
COMMAND1 > FILE
COMMAND2 >> FILE
COMMAND3 < FILE
COMMAND1 | COMMAND2
COMMAND1 | COMMAND2 | COMMAND3
test -b FILE
test -c FILE
test -e FILE
test -f FILE
test -h FILE
test -l FILE
test -p FILE
test -r FILE
test -w FILE
test -x FILE
test INTEGER1 -eq INTEGER2
test INTEGER1 -ge INTEGER2
test INTEGER1 -gt INTEGER2
test INTEGER1 -le INTEGER2
test INTEGER1 -lt INTEGER2
test INTEGER1 -ne INTEGER2
cd
cd /home/usr
umask
umask 0666
time
env OR environ
clear OR clr
set VAR
set VAR VALUE
unset VAR
exec ls
help
exit
continue
shift OR shift n
$HOME
$PATH
$1
$?
myshell FILE