Teaching:
FeedbackThis is an old revision of the document!
1 | cat /etc/motd cat /etc/SUSE-brand /etc/os-release |
2 | cat foo baz # press Ctrl+d |
3 | cat /usr/share/doc/mpich/user.pdf cat -v /usr/share/doc/mpich/user.pdf |
4 | paste /etc/os-release /etc/os-release |
5 | hexdump -C /usr/share/themes/Breeze/assets/line-h.png |
11 | date > file |
12 | date >> file |
13 | cat /etc/motd /etc/shadow 2> file |
14 | find /var/spool/ 2> /dev/null |
15 | find /var/spool/ > out 2> err |
16 | find /var/spool/ &> out_and_err |
17 | echo 'print("hello " + __file__)' > file python < file # compare with python file |
18 | hexdump -C << EOF foo baz bar€and®foobar EOF |
19 | bc sqrt(2.0000) quit bc <<< 'sqrt(2.0000)' |
20 | bc <<< 'sqrt(2.0000)' > file |
21 | cat /etc/motd >&- find /var/spool/ 2>&- |
22 | cp /etc/services . hexdump <>services 1>&0 # hexdump reads a chunk of data, outputs (in the middle of the file) the hex dump, # and repeats this until it processes whole file. |
23 | cat /etc/motd /etc/shadow 3>&1 1>&2 2>&3 | rev |
25 | echo 'some text' | xxd |
26 | ls | cat ls | cat -n |
27 | ps -eF | fold |
28 | Work in progress... | |
29 | | |
30 | | |
31 | | |
32 | | |
33 | | |
34 | | |
35 | | |
36 | | |
37 | | |
38 | | |
39 | | |
40 | | |
41 | | |
42 | | |
43 | | |
44 | | |
45 | | |
46 | | |
47 | | |