Skip to content

Update of command references #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 49 commits into from
Dec 22, 2022
Merged
Changes from 1 commit
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
921245c
Update 580-file-access.markdown
Joe7M Nov 30, 2022
76d1128
Update 581-data-append.markdown
Joe7M Dec 1, 2022
eed55a2
Update 611-graphics-arc.markdown
Joe7M Dec 1, 2022
ea3d609
Update 1432-data-array.markdown
Joe7M Dec 1, 2022
6eb753d
Update 771-string-asc.markdown
Joe7M Dec 1, 2022
e42e480
Update 521-console-at.markdown
Joe7M Dec 1, 2022
45ea467
Update 663-language-band.markdown
Joe7M Dec 1, 2022
0c96ef1
Update 1428-language-bg.markdown
Joe7M Dec 1, 2022
6638d0a
Update 773-string-bin.markdown
Joe7M Dec 1, 2022
9ca9b7f
Update 664-language-bor.markdown
Joe7M Dec 1, 2022
9bf4bc2
Update 639-language-byref.markdown
Joe7M Dec 3, 2022
828bf74
Update 637-language-call.markdown
Joe7M Dec 3, 2022
9ebf196
Update 1734-system-self.markdown
Joe7M Dec 3, 2022
493ac9c
Update 742-math-polycent.markdown
Joe7M Dec 4, 2022
ce8e782
Update 741-math-polyarea.markdown
Joe7M Dec 4, 2022
8032a37
Merge pull request #1 from Joe7M/patch-1
Joe7M Dec 4, 2022
d4ca8da
Merge pull request #2 from Joe7M/patch-2
Joe7M Dec 4, 2022
4b30050
Update 741-math-polyarea.markdown
Joe7M Dec 4, 2022
3ba7f29
Update 662-language-and.markdown
Joe7M Dec 13, 2022
26cf12e
Update 772-string-bcs.markdown
Joe7M Dec 17, 2022
ba3e59a
Update 774-string-cbs.markdown
Joe7M Dec 17, 2022
51fb41b
Update 602-file-bgetc.markdown
Joe7M Dec 17, 2022
a18465a
Update 583-file-bputc.markdown
Joe7M Dec 17, 2022
a348b73
Update 602-file-bgetc.markdown
Joe7M Dec 17, 2022
da0b24b
Update 655-language-select.markdown
Joe7M Dec 17, 2022
58b571e
Update 640-language-case.markdown
Joe7M Dec 17, 2022
c12903d
Update 538-console-cat.markdown
Joe7M Dec 17, 2022
6e39148
Update 1426-language-catch.markdown
Joe7M Dec 17, 2022
cad2c09
Update 1425-language-try.markdown
Joe7M Dec 17, 2022
1d9aa6c
Update 1439-system-chain.markdown
Joe7M Dec 17, 2022
393c602
Update 612-graphics-chart.markdown
Joe7M Dec 17, 2022
94a7ef5
Update 585-file-chdir.markdown
Joe7M Dec 17, 2022
bc73609
Update 586-file-chmod.markdown
Joe7M Dec 17, 2022
431eb2c
Update 775-string-chop.markdown
Joe7M Dec 18, 2022
2a9d779
Update 776-string-chr.markdown
Joe7M Dec 18, 2022
1acc266
Update 613-graphics-circle.markdown
Joe7M Dec 18, 2022
79eeaf9
Update 594-file-open.markdown
Joe7M Dec 18, 2022
039c839
Update 587-file-close.markdown
Joe7M Dec 18, 2022
0e33778
Update 524-console-cls.markdown
Joe7M Dec 18, 2022
7b9f394
Update 614-graphics-color.markdown
Joe7M Dec 18, 2022
dc68af2
Update 1521-system-command.markdown
Joe7M Dec 18, 2022
cd6fb45
Update 678-language-const.markdown
Joe7M Dec 18, 2022
ceb306f
Update 588-file-copy.markdown
Joe7M Dec 18, 2022
53a8923
Update 1522-system-cwd.markdown
Joe7M Dec 18, 2022
4ff91dc
Update escape.markdown
Joe7M Dec 20, 2022
9b363c5
Update 594-file-open.markdown
Joe7M Dec 20, 2022
171618d
Update guide.markdown
Joe7M Dec 22, 2022
ed30cb6
Update reference.json
Joe7M Dec 22, 2022
2ed2c3c
Create 1800-math-statstd.markdown
Joe7M Dec 22, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update 586-file-chmod.markdown
  • Loading branch information
Joe7M authored Dec 17, 2022
commit bc736090c02d679be1ce37f20e02c2f68bc334e5
24 changes: 23 additions & 1 deletion _build/reference/586-file-chmod.markdown
Original file line number Diff line number Diff line change
@@ -7,11 +7,33 @@ Change permissions of a file. See also ACCESS.
* file - A string expression that follows OS file naming conventions.
* mode - Compatible with system call chmod()'s 'mode' parameter.

Linux:

mode is a number best represented in octal: 0oUGO with U: User; G: Group; O: Other

U, G and O are each defined the following way:

| Value | Permission |
|:-----:|:-----------:|
| 0 | no |
| 1 | x (execute) |
| 2 | w (write) |
| 3 | w + x |
| 4 | r (read) |
| 5 | r + x |
| 6 | r + w |
| 7 | r + w + x |


```
' Make myfile available to anyone (read/write)
CHMOD "myfile.bas", 0o666
...

' Make myfile available to anyone (execute/read/write)
CHMOD "myfile.bas", 0o777

' Make myfile available to user (read/write)
' All others only read
CHMOD "myfile.bas", 0o644
```