Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1.
- bartek@lapmap:~$ mkdir 152133
- bartek@lapmap:~$ ls
- 152133 examples.desktop Obrazy Publiczny Szablony
- Dokumenty Muzyka Pobrane Pulpit Wideo
- 2.
- bartek@lapmap:~$ cd 152133
- bartek@lapmap:~/152133$ touch test1.txt
- bartek@lapmap:~/152133$ chmod u-w test1.txt
- bbartek@lapmap:~/152133$ cat > test1.txt
- bash: test1.txt: Brak dostępu
- bartek@lapmap:~/152133$ ls -l test1.txt
- -r--r--r-- 1 bartek bartek 11 lis 7 23:06 test1.txt
- 3.
- bartek@lapmap:~/152133$ rm test1.txt
- rm: usunąć zabezpieczony przed zapisem zwykły plik 'test1.txt'?
- bartek@lapmap:~/152133$ chmod u+w test1.txt
- bartek@lapmap:~/152133$ rm test1.txt
- bartek@lapmap:~/152133$ ls
- bartek@lapmap:~/152133$
- 4.
- bartek@lapmap:~/152133$ touch test2.txt
- bartek@lapmap:~/152133$ touch test3.txt
- bartek@lapmap:~/152133$ cat > test2.txt
- tresc test2^Z
- [7]+ Zatrzymano cat > test2.txt
- bartek@lapmap:~/152133$ cat > test3.txt
- tresc test2^Z
- [8]+ Zatrzymano cat > test3.txt
- bartek@lapmap:~/152133$ ls -l test2.txt
- -rw-r--r-- 1 bartek bartek 0 lis 7 23:13 test2.txt
- bartek@lapmap:~/152133$ ls -l test3.txt
- -rw-r--r-- 1 bartek bartek 0 lis 7 23:13 test3.txt
- a) bartek@lapmap:~/152133$ chmod a-r test2.txt
- bartek@lapmap:~/152133$ chmod a-w test2.txt
- bartek@lapmap:~/152133$ ls -l test2.txt
- ---------- 1 bartek bartek 0 lis 7 23:14 test2.txt
- b) bartek@lapmap:~/152133$ chmod a-r test3.txt
- bartek@lapmap:~/152133$ chmod a-x test3.txt
- bartek@lapmap:~/152133$ ls -l test3.txt
- --w------- 1 bartek bartek 0 lis 7 23:15 test3.txt
Advertisement
Add Comment
Please, Sign In to add comment