Teaching:
FeedbackThis is an old revision of the document!
3 | # press Ctrl+At+F2 … # press Ctrl+At+F7 |
5 | cat --help bat --help |
6 | man timeout |
7 | whatis time |
8 | man 1 man man 7 man |
9 | man bash # inside man: /printf /dirs N N … |
13 | ls /usr/share/zoneinfo/ ls ../../../../../bin |
14 | ls -a ls -a ~ |
16 | pwd |
17 | cd .config ls |
18 | cd /var/log |
20 | cd /usr/bin ls *cat |
21 | ls /usr/bin/*cat |
22 | ls /usr/bin/?? cd /usr/bin/ ls ?? |
23 | ls /usr/share/zoneinfo/* |
24 | ls /usr/share/zoneinfo/*/UTC |
25 | ls /usr/share/zoneinfo/*/L* |
26 | ls /usr/share/zoneinfo/*/[FH]* |
27 | # bash expanded ls* to "ls lsattr lsblk lscpu …" # and then executed "ls" with arguments "lsattr lsblk lscpu …" |
28 | mkdir foo mkdir foo/baz … |
mkdir -p foo/baz/bar foo/bar foobaz/bar | |
29 | rmdir foo/baz/bar rmdir foo/baz |
30 | echo "foo" > file1 ln file1 file2 echo "bar" > file2 cat file1 |
31 | cd \\ln -s /tmp TMP cd TMP pwd |
32 | # second column of "ls -l" results |
ln -s /tmp ~/TMP cd ~/TMP pwd |
|
33 | cd ln -s . loop cd loop cd loop pwd |
34 | ln -s /nonexistent/path brokenSymlink ls -l |
35 | cp /etc/os-release /etc/SUSE-brand . |
37 | cp -a someDir newDir |
38 | mv newDir someDir |
39 | mv someDir anotherDir |
40 | cp -al anotherDir yetAnotherDir echo "modified" > yetAnotherDir/file2 tree -D --timefmt=%H:%M:%S anotherDir yetAnotherDir # fileów anotherDir/file2 i yetAnotherDir/file2 |
41 | cd /tmp touch example scp example student@lab-sec-1:example |
cd /tmp touch example scp example student@lab-sec-1: |
|
42 | scp /tmp/example student@lab-sec-1:/tmp |
43 | cd /tmp sftp student@lab-sec-1 sftp> cd /tmp sftp> put example |
sftp student@lab-sec-1 sftp> cd /tmp sftp> put /tmp/example |
|
sftp student@lab-sec-1 sftp> cd /tmp sftp> lcd /tmp sftp> put example |
|
44 | touch file_{a..z} rm file_? touch file_{a..z} rm -f file_? … |
45 | rm file_? rm -f file_? |
46 | mkdir someDir rm -r someDir |