bartek27210

lnx2

Nov 7th, 2017
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. 1.
  2. bartek@lapmap:~$ mkdir 152133
  3. bartek@lapmap:~$ ls
  4. 152133 examples.desktop Obrazy Publiczny Szablony
  5. Dokumenty Muzyka Pobrane Pulpit Wideo
  6.  
  7. 2.
  8. bartek@lapmap:~$ cd 152133
  9. bartek@lapmap:~/152133$ touch test1.txt
  10. bartek@lapmap:~/152133$ chmod u-w test1.txt
  11. bbartek@lapmap:~/152133$ cat > test1.txt
  12. bash: test1.txt: Brak dostępu
  13. bartek@lapmap:~/152133$ ls -l test1.txt
  14. -r--r--r-- 1 bartek bartek 11 lis 7 23:06 test1.txt
  15.  
  16. 3.
  17. bartek@lapmap:~/152133$ rm test1.txt
  18. rm: usunąć zabezpieczony przed zapisem zwykły plik 'test1.txt'?
  19. bartek@lapmap:~/152133$ chmod u+w test1.txt
  20. bartek@lapmap:~/152133$ rm test1.txt
  21. bartek@lapmap:~/152133$ ls
  22. bartek@lapmap:~/152133$
  23.  
  24. 4.
  25. bartek@lapmap:~/152133$ touch test2.txt
  26. bartek@lapmap:~/152133$ touch test3.txt
  27. bartek@lapmap:~/152133$ cat > test2.txt
  28. tresc test2^Z
  29. [7]+ Zatrzymano cat > test2.txt
  30. bartek@lapmap:~/152133$ cat > test3.txt
  31. tresc test2^Z
  32. [8]+ Zatrzymano cat > test3.txt
  33. bartek@lapmap:~/152133$ ls -l test2.txt
  34. -rw-r--r-- 1 bartek bartek 0 lis 7 23:13 test2.txt
  35. bartek@lapmap:~/152133$ ls -l test3.txt
  36. -rw-r--r-- 1 bartek bartek 0 lis 7 23:13 test3.txt
  37. a) bartek@lapmap:~/152133$ chmod a-r test2.txt
  38. bartek@lapmap:~/152133$ chmod a-w test2.txt
  39. bartek@lapmap:~/152133$ ls -l test2.txt
  40. ---------- 1 bartek bartek 0 lis 7 23:14 test2.txt
  41. b) bartek@lapmap:~/152133$ chmod a-r test3.txt
  42. bartek@lapmap:~/152133$ chmod a-x test3.txt
  43. bartek@lapmap:~/152133$ ls -l test3.txt
  44. --w------- 1 bartek bartek 0 lis 7 23:15 test3.txt
Advertisement
Add Comment
Please, Sign In to add comment