Miscellaneous and Shell Programing Commands
Unix :
Miscellaneous Commands :
date : Prints system date and time
cal : displays calendar
exit : cause process to terminate/ shell to exit
clear : clears the terminal screen
banner : banner command in Linux is used to print the ASCII character string in a large letters to standard output.
banner has a default capacity of 10 characters in a word. After that, you have to give space
Banner 1234567890
Shell Programing :
read : used to read a line from standard input/ read from file
expr : used to evaluate expressions and arguments as an expression
echo : displays line of text and arguments to standard output
sh : sh is a shell, which is command-line language interpreter
source : is a shell built-in command which is used to read and execute the content of a file(generally set of commands), passed as an argument in the current shell script.
To pass a path_name of a file as an argument where, /home/sc/sourcefolder/ is the file directory here. The content of the file is written
sleep : sleep command is used to create a dummy job. A dummy job helps in delaying the execution.
test - check file types and compare values
test 100 -gt 99 && echo "Yes, that's true." || echo "No, that's false."
test 100 -lt 99 && echo "Yes." || echo "No."
Comments
Post a Comment