1
vote
2answers
783 views

What does the command “chmod a=w g+x alpha” do?

I was asked this question but didn't know what it does. I know chmod and its usages but what does this exactly do ?
0
votes
1answer
29 views

how to display I/O file on shell

I am writing shell script and I need to display my output at the same time however it doesn't work with 2> somefile.txt and if I do | tee -a somefilel it will not overwrite which I need to . <> ...
0
votes
2answers
3k views

Making a directory on unix readable,writeable,executable by me and no one else?

What is the proper way to make a directory that I created and all of its contents readable/writeable/executable only by me, and no one else? Is this sufficient: chmod g-rx mydir/ this should make ...
146
votes
6answers
93k views

How to chmod 755 all directories but no file (recursively)?

How to chmod 755 all directories but no file (recursively) ? Inversely, how to chmod only files (recursively) but no directory ?