Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- koczurek@student:~$ id
- uid=28971(koczurek) gid=256(imirgrp) groups=256(imirgrp)
- koczurek@student:~$ echo "a" > file
- koczurek@student:~$ chmod u=rwx file
- koczurek@student:~$ chmod g+rw file
- koczurek@student:~$ chmod o=r file
- koczurek@student:~$ chmod u+x file
- koczurek@student:~$ clear
- koczurek@student:~$ echo "a" > test
- koczurek@student:~$ chmod u=rwx test
- koczurek@student:~$ chmod g+rw test
- koczurek@student:~$ chmod o=r test
- koczurek@student:~$ chmod u+x test
- koczurek@student:~$ ls -la test
- -rwxrw-r-- 1 koczurek imirgrp 2 Oct 23 16:58 test*
- koczurek@student:~$ file test
- /etc/file/magic/animation, 42: Warning: Unparseable number `a \b C.S0050-0 V1. 0'
- /etc/file/magic/animation, 43: Warning: Unparseable number `b \b C.S0050-0-A V 1.0.0'
- /etc/file/magic/animation, 44: Warning: Unparseable number `c \b C.S0050-0-B V 1.0'
- /etc/file/magic/cafebabe, 50: Warning: Unparseable number `\b: '
- /etc/file/magic/msdos, 749: Warning: Overflow for numeric type `leshort' value 0x223e9f7 8
- test: ASCII text
- koczurek@student:~$ file test
- /etc/file/magic/animation, 42: Warning: Unparseable number `a \b C.S0050-0 V1.0'
- /etc/file/magic/animation, 43: Warning: Unparseable number `b \b C.S0050-0-A V1.0.0'
- /etc/file/magic/animation, 44: Warning: Unparseable number `c \b C.S0050-0-B V1.0'
- /etc/file/magic/cafebabe, 50: Warning: Unparseable number `\b: '
- /etc/file/magic/msdos, 749: Warning: Overflow for numeric type `leshort' value 0x223e9f78
- test: ASCII text
- koczurek@student:~$ less /etc/passwd
- koczurek@student:~$ cp /etc/passwd .
- koczurek@student:~$ echo "lllol" > text 1
- koczurek@student:~$ echo "lllol" > text
- koczurek@student:~$ echo "lllol" > text1
- koczurek@student:~$ ln -s text1 text1-symb
- koczurek@student:~$ mkdir dir1
- koczurek@student:~$ ln -s dir1 dir-symb
- koczurek@student:~$ echo xd > file
- koczurek@student:~$ mv file dir-symb/
- koczurek@student:~$ ls -a
- ./ .bash_history .local/ dir1/ passwd temp/ text1
- ../ .cache/ .pinerc excercise/ somefiles test* text1-symb@
- .addressbook .config/ dir-symb@ friends/ t text xdkatalog/
- koczurek@student:~$ ls -l
- total 1048
- lrwxrwxrwx 1 koczurek imirgrp 4 Oct 23 17:00 dir-symb -> dir1/
- drwxr-xr-x 2 koczurek imirgrp 4096 Oct 23 17:01 dir1/
- drwxr-xr-x 2 koczurek imirgrp 4096 Oct 18 18:37 excercise/
- drwxr-xr-x 2 koczurek imirgrp 4096 Oct 18 18:37 friends/
- -rw-r--r-- 1 koczurek imirgrp 1030550 Oct 23 17:00 passwd
- -rw-r--r-- 1 koczurek imirgrp 30 Oct 18 18:41 somefiles
- -rw-r--r-- 1 koczurek imirgrp 2 Oct 18 18:41 t
- drwxr-xr-x 2 koczurek imirgrp 4096 Oct 18 18:37 temp/
- -rwxrw-r-- 1 koczurek imirgrp 2 Oct 23 16:58 test*
- -rw-r--r-- 1 koczurek imirgrp 6 Oct 23 17:00 text
- -rw-r--r-- 1 koczurek imirgrp 6 Oct 23 17:00 text1
- lrwxrwxrwx 1 koczurek imirgrp 5 Oct 23 17:00 text1-symb -> text1
- drwxr-xr-x 2 koczurek imirgrp 4096 Oct 18 18:36 xdkatalog/
- koczurek@student:~$ ln test test2
- koczurek@student:~$ ls -l
- total 1052
- lrwxrwxrwx 1 koczurek imirgrp 4 Oct 23 17:00 dir-symb -> dir1/
- drwxr-xr-x 2 koczurek imirgrp 4096 Oct 23 17:01 dir1/
- drwxr-xr-x 2 koczurek imirgrp 4096 Oct 18 18:37 excercise/
- drwxr-xr-x 2 koczurek imirgrp 4096 Oct 18 18:37 friends/
- -rw-r--r-- 1 koczurek imirgrp 1030550 Oct 23 17:00 passwd
- -rw-r--r-- 1 koczurek imirgrp 30 Oct 18 18:41 somefiles
- -rw-r--r-- 1 koczurek imirgrp 2 Oct 18 18:41 t
- drwxr-xr-x 2 koczurek imirgrp 4096 Oct 18 18:37 temp/
- -rwxrw-r-- 2 koczurek imirgrp 2 Oct 23 16:58 test*
- -rwxrw-r-- 2 koczurek imirgrp 2 Oct 23 16:58 test2*
- -rw-r--r-- 1 koczurek imirgrp 6 Oct 23 17:00 text
- -rw-r--r-- 1 koczurek imirgrp 6 Oct 23 17:00 text1
- lrwxrwxrwx 1 koczurek imirgrp 5 Oct 23 17:00 text1-symb -> text1
- drwxr-xr-x 2 koczurek imirgrp 4096 Oct 18 18:36 xdkatalog/
- koczurek@student:~$ rm -f test2
- koczurek@student:~$ ls -l
- total 1048
- lrwxrwxrwx 1 koczurek imirgrp 4 Oct 23 17:00 dir-symb -> dir1/
- drwxr-xr-x 2 koczurek imirgrp 4096 Oct 23 17:01 dir1/
- drwxr-xr-x 2 koczurek imirgrp 4096 Oct 18 18:37 excercise/
- drwxr-xr-x 2 koczurek imirgrp 4096 Oct 18 18:37 friends/
- -rw-r--r-- 1 koczurek imirgrp 1030550 Oct 23 17:00 passwd
- -rw-r--r-- 1 koczurek imirgrp 30 Oct 18 18:41 somefiles
- -rw-r--r-- 1 koczurek imirgrp 2 Oct 18 18:41 t
- drwxr-xr-x 2 koczurek imirgrp 4096 Oct 18 18:37 temp/
- -rwxrw-r-- 1 koczurek imirgrp 2 Oct 23 16:58 test*
- -rw-r--r-- 1 koczurek imirgrp 6 Oct 23 17:00 text
- -rw-r--r-- 1 koczurek imirgrp 6 Oct 23 17:00 text1
- lrwxrwxrwx 1 koczurek imirgrp 5 Oct 23 17:00 text1-symb -> text1
- drwxr-xr-x 2 koczurek imirgrp 4096 Oct 18 18:36 xdkatalog/
- koczurek@student:~$ ln test test2
- koczurek@student:~$ echo 2 > test
- koczurek@student:~$ rm -f test
- koczurek@student:~$ cat test2
- 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement