CSC209H5 Chapter Notes - Chapter 1: Exit Status, Sticky Bit, Symbolic Link

35 views6 pages

Document Summary

Csc209h5s - software programming and tools (winter 2018) Bash guide for beginners (the following is made for macos using emacs) Example (in script) if [ -f /var/ log /messages ] echo accepted then fi. > if [ -f /var/ log /messages ]; then echo ; echo accepted ; echo ; fi. Use this command to not run the script but see the contents of the script cat script_name. sh. True if file exists and is a block-special file. True if file exists and is a character-special file. True if file exists and is a directory. True if file exists and is a regular file. True if file exists and its sgid bit is set. True if file exists and its sticky bit is set. True if file exists and is a named pipe (fifo). True if file exists and has a size greater than zero. True if file descriptor fd is open and refers to a terminal.

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