πŸ”
πŸ“œ

Make Shell Scripts Executable

Get the chmod command to make a script runnable while keeping it secure.

Nid oes angen mewngofnodi
ReadWriteExecuteValue
owner7
group5
other5
Octal (editable)
rwxr-xr-x
Symbolic
Command
$ chmod 755 filename

Common presets

Scripts tips

πŸ“œ

To run a script directly (./script.sh), it needs the execute bit. 755 makes it executable by everyone; 700 keeps it private to you.

πŸ’‘

For scripts in a shared bin directory, 755 is standard. For personal scripts with sensitive logic, use 700.

🎯

After making it executable, verify with the symbolic output here β€” you want an "x" in the owner triad at minimum.

Sut Mae'n Gweithio

1
Ewch i mewn
Enter your data into the tool above. Everything stays local to your browser.
2
Proses
The tool processes your data instantly in your browser using JavaScript. No server, no waiting.
3
Lawrlwythwch
Get your result instantly. Nothing is stored after you leave the page β€” complete privacy.

Pam defnyddio ein un ni?

βœ“Hollol rhad ac am ddim - dim costau cudd, byth
βœ“Nid oes angen cyfrif, e-bost na mewngofnodi
βœ“Nid yw ffeiliau byth yn gadael eich dyfais
βœ“Dim cyfyngiadau maint ffeil o gwbl
βœ“Dim dyfrnodau ar unrhyw allbwn

Also check out…

Cwestiynau Cyffredin