CSC209H5 Chapter Notes - Chapter 1: Emacs, Chmod, Cron

37 views3 pages

Document Summary

Csc209h5s - software programming and tools (winter 2018) Bash guide for beginners (the following is made for macos using emacs) Shell script - sequence of commands for which you have a repeated use. Entering name of script on the command line or, Use scripts to automate tasks using cron facility. Add the directory to the contents of the path variable (emacs): export path= " :~/scripts" List script in the folder (terminal) ls -1 script1. sh. Set permissions for script (terminal) chmod u+x script1. sh. Execute only if the file is a directory (or already has execute permission for some user) Save program text on swap device letter r w x. The permissions that the user who owns the file currently has for it. The permissions that other users in the file"s group have for it. Permissions that other users not in the file"s group have for it u g. Example test script export path= " :~/scripts" clear echo "hello world"

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents