macosx terminal crashcourse
This is an open discussion with 5 replies, filed under Installation.
Search
You can just use the chmod
command directly: chmod -R 755 workspace
.
There's no real "proper" way, but the simplest is probably:
cd /to/your/directory chmod -R 755 *
-R
for recursive, 755
for the permission, *
for all files and folders.
And if you don't know the full path (or a relative path) type the cd
and drag the directory from your Finder into Terminal and it'll add the full path for you.
Thanks for the tips
Is there also a command to run update the tables in the database if you want to install the default workspace after an installation? Say you have installed without workspace, made your own, and then want to revert to the default one anyway. Easy to pull it in with git, but then the install.sql file to create the pages and such in the db isn't run...
But making everything 755 makes all files executable, which shouldn't be necessary? As newnomad showed, you can do (from your public html directory):
find [file] -type d -exec chmod 755 {} ; find [file] -type f -exec chmod 644 {} ;
This, of course, works with the wonderful open source Linux, too.
Create an account or sign in to comment.
Ofcourse one can set write all permissions in the finder, and apply enclosed items.(check with ls-l) But what exactly is the proper way to do this in terminal?
find . -type d -exec chmod 755 {} ;
I am sure there are other terminal tips and tricks specific for macosx and symphony?