CSC231 Bash Tutorial 7

From dftwiki3
Revision as of 05:15, 31 March 2017 by Thiebaut (talk | contribs) (Created page with "--~~~~ ---- <br /> <br /> {| | style="width: 50%;" | __TOC__ | <bluebox>This lab deals with if-statements in bash scripts. If statements in Bash work the same way they work ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

--D. Thiebaut (talk) 06:15, 31 March 2017 (EDT)




This lab deals with if-statements in bash scripts. If statements in Bash work the same way they work in Python and Java: if somebooleanexpression then dothis else dothat.



Reference



Backing up your files


Just in case you mess up and erase files in your account by mistake, you will make an archive of all your files and save it in your instructor's account:

cd
tar -czvf backup2.tgz *
rsubmit backup backup2.tgz

That's it! An archive of all your file should now be saved and available in case of accident!