Last active
December 12, 2015 03:09
-
-
Save RWJMurphy/4704937 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
reedm@www:~/tmp $ ls -ld . | |
drwx------ 2 reedm reedm 4096 Feb 4 14:54 ./ | |
reedm@www:~/tmp $ cat > foo | |
This is a file | |
reedm@www:~/tmp $ chmod -w foo | |
reedm@www:~/tmp $ mv foo bar | |
reedm@www:~/tmp $ ls -la | |
total 12 | |
drwx------ 2 reedm reedm 4096 Feb 4 14:54 ./ | |
drwx-----x 54 reedm reedm 4096 Feb 4 10:18 ../ | |
-r--r--r-- 1 reedm reedm 15 Feb 4 14:54 bar | |
reedm@www:~/tmp $ cat bar | |
This is a file | |
reedm@www:~/tmp $ rm -f bar | |
reedm@www:~/tmp $ ls | |
reedm@www:~/tmp $ cat > foo | |
This is a file | |
reedm@www:~/tmp $ chmod -w foo | |
reedm@www:~/tmp $ chmod -w . | |
reedm@www:~/tmp $ rm -f foo | |
rm: cannot remove `foo': Permission denied | |
reedm@www:~/tmp $ mv foo bar | |
mv: cannot move `foo' to `bar': Permission denied | |
reedm@www:~/tmp $ ls -la | |
total 12 | |
dr-x------ 2 reedm reedm 4096 Feb 4 14:55 ./ | |
drwx-----x 54 reedm reedm 4096 Feb 4 10:18 ../ | |
-r--r--r-- 1 reedm reedm 15 Feb 4 14:55 foo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment