I missed some lessons and I have no idea how to do my homework. Can someone help me with this task?
Task 2: Terminal master
Write a shell (terminal or cmd script) which:
displays the "Hello world" message
creates new folder named "create_me"
renames the "create_me" folder to "delete_me"
deletes the "delete_me" folder
displays the username which is currently logged in on the computer
displays the internet stats menu
exits the shell
This one is a little bit more hardcore. You're going to need some additional materials.
In order to make make the script you will need text editor to write the commands in a file. And what about saving it?
Windows users should save it with ".cmd" extension
Linux users don't need to add a specific extension. But when the file is saved they have to open the terminal, get to the folder where the file is being stored and do as follows (assuming that the file is name "script"):
chmod 700 script
This will make the script an executable file and now we can start it by typing the next command in the terminal: