Skip to content

Commit

Permalink
markdown source builds
Browse files Browse the repository at this point in the history
Auto-generated via {sandpaper}
Source  : 47a6ca4
Branch  : main
Author  : vhmcck <114887733+vhmcck@users.noreply.github.com>
Time    : 2024-04-17 09:02:26 +0000
Message : Merge pull request datacarpentry#355 from datacarpentry/fix/permissions-example

Fix file permission flags in example
  • Loading branch information
actions-user committed Apr 17, 2024
1 parent 0de50bd commit eaade5b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions 05-writing-scripts.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ $ ls -l bad-reads-script.sh
```

```output
-rw-rw-r-- 1 dcuser dcuser 0 Oct 25 21:46 bad-reads-script.sh
-rw-r--r-- 1 dcuser dcuser 0 Oct 25 21:46 bad-reads-script.sh
```

We see that it says `-rw-r--r--`. This shows that the file can be read by any user and written to by the file owner (you). We want to change these permissions so that the file can be executed as a program. We use the command `chmod` like we did earlier when we removed write permissions. Here we are adding (`+`) executable permissions (`+x`).
Expand All @@ -224,7 +224,7 @@ $ ls -l bad-reads-script.sh
```

```output
-rwxrwxr-x 1 dcuser dcuser 0 Oct 25 21:46 bad-reads-script.sh
-rwxr-xr-x 1 dcuser dcuser 0 Oct 25 21:46 bad-reads-script.sh
```

Now we see that it says `-rwxr-xr-x`. The `x`'s that are there now tell us we can run it as a program. So, let's try it! We'll need to put `./` at the beginning so the computer knows to look here in this directory for the program.
Expand Down
2 changes: 1 addition & 1 deletion md5sum.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"episodes/02-the-filesystem.md" "70b53ce6f53a88f931e492d876c60fa1" "site/built/02-the-filesystem.md" "2023-05-08"
"episodes/03-working-with-files.md" "6989deaa6d2a3b387212bff8b5d104f0" "site/built/03-working-with-files.md" "2023-05-08"
"episodes/04-redirection.md" "3f71f2fad3303b1be957191c95bae2f7" "site/built/04-redirection.md" "2024-03-14"
"episodes/05-writing-scripts.md" "85cf7d8acf684226c36a982fe3c23b08" "site/built/05-writing-scripts.md" "2023-11-01"
"episodes/05-writing-scripts.md" "648b54fd474490d69a6177a239be29d3" "site/built/05-writing-scripts.md" "2024-04-17"
"episodes/06-organization.md" "6a657fb25cd386f2088145a440f2acc3" "site/built/06-organization.md" "2023-05-08"
"instructors/Extra_lesson.md" "e60e20421674d8dc399eefce404e27f9" "site/built/Extra_lesson.md" "2023-05-08"
"instructors/etherpad_template.md" "71213aa1bf287539fdc7c27b9831a22b" "site/built/etherpad_template.md" "2024-03-14"
Expand Down

0 comments on commit eaade5b

Please sign in to comment.