how to save and submit bash shell script in blackboard

by Carlos Raynor IV 3 min read

Just add the rsync command to the script that you want to use: #!/bin/bash # rsync script rsync -avh --exclude="*.bak" /home/user/Documents/ /media/diskid/user_backup/Documents/ Save your file, and then make sure that it’s set executable.

Full Answer

Can you write scripts in bash script?

Oct 17, 2021 · Help Submitting Assignments Using Blackboard. https://w3.cs.jmu.edu/bernstdh/web/common/help/blackboard_assignment-submission.php. Click on Save and Submit. Note: If you have problems attaching a file from a machine running Linux, create a directory/folder named bb:attach using and …. 4.

How do I run a bash script from a specific location?

After you have your script typed in, press : on the keyboard to open a prompt for vi. Once you have the : (colon) prompt at the bottom of the screen, enter wq for write/quit. This will save myScript.sh to the directory you started in. You should then be able to …

How to run a shell script in Linux terminal?

Under Bash Lab 1 on Blackboard, submit the URL for your repo as a text comment, and one PDF file containing the questions throughout the lab with your answers (include the questions with your answers), and at leasgt one screenshot showing your …

How to print hello world from a shell script?

Nov 30, 2021 · From the Terminal. The most common way to run Bash scripts is using the terminal. All you have to do is grant execute permissions to the script file using the chmod command. sudo chmod +x script.sh. Now, to execute the script, run: ./script.sh. The output will display your username and the string "Hello World," as specified in the script file.

How long does it take to write a script?

If you know how to run commands at the command line, you can learn to write simple scripts in just 10 minutes. All you need is a text editor and an idea of what you want to do. Start small and use scripts to automate small tasks. Over time you can build on what you know and wind up doing more and more with scripts.

Is the above script hard coded?

The above script is useful, but it has hard-coded paths. That might not be a problem, but if you want to write longer scripts that reference paths often, you probably want to utilize variables. Here’s a quick sample: