Resources: Cheat Sheets: GNU: Bash Reference

Published  . 0 views
↓ Download
Resources: Cheat Sheets: GNU: Bash Reference
1 / 1
Resources: Cheat Sheets: GNU: Bash Reference - slide 1 of 2 Resources: Cheat Sheets: GNU: Bash Reference - slide 2 of 2
Description: Resources: Cheat Sheets: GNU: Bash Reference Manual AF: Bash Scripting JHU: UNIX Reference Card SSC: Bash Reference Card Topics: Unix Commands Bash Scripts Executable Permission !binsh Python Scripts C Programs Lecture 03: Linux

Related Topics

Download Presentation

"Resources: Cheat Sheets: GNU: Bash Reference" is the property of its rightful owner. Permission is granted to download and print the materials on this website for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.

Presentation Transcript

slide1. Resources:
Cheat Sheets: GNU: Bash Reference Manual AF: Bash Scripting JHU: UNIX Reference Card SSC: Bash Reference Card
Topics:
Unix Commands
Bash Scripts
Executable Permission
#!/bin/sh
Python Scripts
C Programs Lecture 03: Linux – Scripts vs. Programs<br>
slide2. Summary Executable Permission: To run scripts as commands, they must have executable permission.
”#!/bin/sh”: The so-called she-bang instructs Unix which program to run to interpret and execute your code.
Bash scripts can be executed by invoking the bash interpreter explicitly, or by using the shebang and making the file executable.
C/C++ programs are executed as ‘binaries’ – the executable file contains binary data that instructs the shell how to start and execute the program.
Python can be coded as a script, like Matlab, or a program, like C/C++.<br>