Script AD-01
Script AD-01
Linux Batch Shell Scripting on AWS RHL Server with Engr. Kah Kissinger
===================================================================
Basics of Chmod and echo commands, including their syntax and usage examples
Examples:
1. chmod 777 file.txt # make a file executable for everyone.
2. chmod 600 directory #make a directory readable and writable only by the owner
3. chmod –R 444 directory #recursively make all files in a directory readable by everyone.
</> echo command
Examples:
1. echo “Hello, world!” # Print a message to the console
2. echo “This is a message” #Print a message with a newline
3. echo –n “No newline here” # Print a message without a newline
4. echo “Line 1\n Line 2\tTab” # Use escape sequences.