ls -l ~/z
cat /etc/passwd | head -2
sudo chown root ~/z
ls ~/z -l
sudo chown :root ~/z
ls -l ~/z
sudo chown milad:milad z
ls -l ~/z
touch a b c
ls -la a b c
chmod ugo+w [a-c]
ls -la [a-c]
stat -c "%a %n" [a-c]
chmod u+x,o-rw [a-c]
ls -la [a-c]
chmod 067 a
ls -la a
chmod u+rw,o-rwx a
ls -la a
The default permissions on
Files: 666 (Because we don't want files to have X by default) Directories: 777 (Because we need X to cd in)
umask
#files 664
#directories 775
mkdir test
stat -c "%a %n" test
ls -ld /tmp
ipynb
format: https://github.com/ravexina/linux-notes. html
exports of project available at: https://ravexina.github.io/linux-notes.Linux Notes by Milad As (Ravexina) is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.