Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.85 KB | None | 0 0
  1. koczurek@student:~$ id
  2. uid=28971(koczurek) gid=256(imirgrp) groups=256(imirgrp)
  3. koczurek@student:~$ echo "a" > file
  4. koczurek@student:~$ chmod u=rwx file
  5. koczurek@student:~$ chmod g+rw file
  6. koczurek@student:~$ chmod o=r file
  7. koczurek@student:~$ chmod u+x file
  8. koczurek@student:~$ clear
  9. koczurek@student:~$ echo "a" > test
  10. koczurek@student:~$ chmod u=rwx test
  11. koczurek@student:~$ chmod g+rw test
  12. koczurek@student:~$ chmod o=r test
  13. koczurek@student:~$ chmod u+x test
  14. koczurek@student:~$ ls -la test
  15. -rwxrw-r-- 1 koczurek imirgrp 2 Oct 23 16:58 test*
  16. koczurek@student:~$ file test
  17. /etc/file/magic/animation, 42: Warning: Unparseable number `a \b C.S0050-0 V1. 0'
  18. /etc/file/magic/animation, 43: Warning: Unparseable number `b \b C.S0050-0-A V 1.0.0'
  19. /etc/file/magic/animation, 44: Warning: Unparseable number `c \b C.S0050-0-B V 1.0'
  20. /etc/file/magic/cafebabe, 50: Warning: Unparseable number `\b: '
  21. /etc/file/magic/msdos, 749: Warning: Overflow for numeric type `leshort' value 0x223e9f7 8
  22. test: ASCII text
  23. koczurek@student:~$ file test
  24. /etc/file/magic/animation, 42: Warning: Unparseable number `a \b C.S0050-0 V1.0'
  25. /etc/file/magic/animation, 43: Warning: Unparseable number `b \b C.S0050-0-A V1.0.0'
  26. /etc/file/magic/animation, 44: Warning: Unparseable number `c \b C.S0050-0-B V1.0'
  27. /etc/file/magic/cafebabe, 50: Warning: Unparseable number `\b: '
  28. /etc/file/magic/msdos, 749: Warning: Overflow for numeric type `leshort' value 0x223e9f78
  29. test: ASCII text
  30. koczurek@student:~$ less /etc/passwd
  31. koczurek@student:~$ cp /etc/passwd .
  32. koczurek@student:~$ echo "lllol" > text 1
  33. koczurek@student:~$ echo "lllol" > text
  34. koczurek@student:~$ echo "lllol" > text1
  35. koczurek@student:~$ ln -s text1 text1-symb
  36. koczurek@student:~$ mkdir dir1
  37. koczurek@student:~$ ln -s dir1 dir-symb
  38. koczurek@student:~$ echo xd > file
  39. koczurek@student:~$ mv file dir-symb/
  40. koczurek@student:~$ ls -a
  41. ./ .bash_history .local/ dir1/ passwd temp/ text1
  42. ../ .cache/ .pinerc excercise/ somefiles test* text1-symb@
  43. .addressbook .config/ dir-symb@ friends/ t text xdkatalog/
  44. koczurek@student:~$ ls -l
  45. total 1048
  46. lrwxrwxrwx 1 koczurek imirgrp 4 Oct 23 17:00 dir-symb -> dir1/
  47. drwxr-xr-x 2 koczurek imirgrp 4096 Oct 23 17:01 dir1/
  48. drwxr-xr-x 2 koczurek imirgrp 4096 Oct 18 18:37 excercise/
  49. drwxr-xr-x 2 koczurek imirgrp 4096 Oct 18 18:37 friends/
  50. -rw-r--r-- 1 koczurek imirgrp 1030550 Oct 23 17:00 passwd
  51. -rw-r--r-- 1 koczurek imirgrp 30 Oct 18 18:41 somefiles
  52. -rw-r--r-- 1 koczurek imirgrp 2 Oct 18 18:41 t
  53. drwxr-xr-x 2 koczurek imirgrp 4096 Oct 18 18:37 temp/
  54. -rwxrw-r-- 1 koczurek imirgrp 2 Oct 23 16:58 test*
  55. -rw-r--r-- 1 koczurek imirgrp 6 Oct 23 17:00 text
  56. -rw-r--r-- 1 koczurek imirgrp 6 Oct 23 17:00 text1
  57. lrwxrwxrwx 1 koczurek imirgrp 5 Oct 23 17:00 text1-symb -> text1
  58. drwxr-xr-x 2 koczurek imirgrp 4096 Oct 18 18:36 xdkatalog/
  59. koczurek@student:~$ ln test test2
  60. koczurek@student:~$ ls -l
  61. total 1052
  62. lrwxrwxrwx 1 koczurek imirgrp 4 Oct 23 17:00 dir-symb -> dir1/
  63. drwxr-xr-x 2 koczurek imirgrp 4096 Oct 23 17:01 dir1/
  64. drwxr-xr-x 2 koczurek imirgrp 4096 Oct 18 18:37 excercise/
  65. drwxr-xr-x 2 koczurek imirgrp 4096 Oct 18 18:37 friends/
  66. -rw-r--r-- 1 koczurek imirgrp 1030550 Oct 23 17:00 passwd
  67. -rw-r--r-- 1 koczurek imirgrp 30 Oct 18 18:41 somefiles
  68. -rw-r--r-- 1 koczurek imirgrp 2 Oct 18 18:41 t
  69. drwxr-xr-x 2 koczurek imirgrp 4096 Oct 18 18:37 temp/
  70. -rwxrw-r-- 2 koczurek imirgrp 2 Oct 23 16:58 test*
  71. -rwxrw-r-- 2 koczurek imirgrp 2 Oct 23 16:58 test2*
  72. -rw-r--r-- 1 koczurek imirgrp 6 Oct 23 17:00 text
  73. -rw-r--r-- 1 koczurek imirgrp 6 Oct 23 17:00 text1
  74. lrwxrwxrwx 1 koczurek imirgrp 5 Oct 23 17:00 text1-symb -> text1
  75. drwxr-xr-x 2 koczurek imirgrp 4096 Oct 18 18:36 xdkatalog/
  76. koczurek@student:~$ rm -f test2
  77. koczurek@student:~$ ls -l
  78. total 1048
  79. lrwxrwxrwx 1 koczurek imirgrp 4 Oct 23 17:00 dir-symb -> dir1/
  80. drwxr-xr-x 2 koczurek imirgrp 4096 Oct 23 17:01 dir1/
  81. drwxr-xr-x 2 koczurek imirgrp 4096 Oct 18 18:37 excercise/
  82. drwxr-xr-x 2 koczurek imirgrp 4096 Oct 18 18:37 friends/
  83. -rw-r--r-- 1 koczurek imirgrp 1030550 Oct 23 17:00 passwd
  84. -rw-r--r-- 1 koczurek imirgrp 30 Oct 18 18:41 somefiles
  85. -rw-r--r-- 1 koczurek imirgrp 2 Oct 18 18:41 t
  86. drwxr-xr-x 2 koczurek imirgrp 4096 Oct 18 18:37 temp/
  87. -rwxrw-r-- 1 koczurek imirgrp 2 Oct 23 16:58 test*
  88. -rw-r--r-- 1 koczurek imirgrp 6 Oct 23 17:00 text
  89. -rw-r--r-- 1 koczurek imirgrp 6 Oct 23 17:00 text1
  90. lrwxrwxrwx 1 koczurek imirgrp 5 Oct 23 17:00 text1-symb -> text1
  91. drwxr-xr-x 2 koczurek imirgrp 4096 Oct 18 18:36 xdkatalog/
  92. koczurek@student:~$ ln test test2
  93. koczurek@student:~$ echo 2 > test
  94. koczurek@student:~$ rm -f test
  95. koczurek@student:~$ cat test2
  96. 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement