Pavel Straňák
stranak@ufal.mff.cuni.cz
Friday 12:30–14:00
Palachovo nám. 2, room C131
17. 2. 2023
man
(where to find help)perldoc perlrun
(meaning of command-line switches like
-e, -E, -0
, etc.)ssh
in the terminal
+ sshd
echo $SHELL
– other shells too, but bash)/, $HOME (~), . , ..
command -p [--optional] --switch argument another_argument
ls (-l -a -R)
- cd [path]
- pwd
- mv
- cp (-r -i -u)
- rm (-r -f)
mkdir, rmdir
cat, head, tail
less
for viewing filesPI="3,14159"
echo $PI
, >, >>, <
head
and
tail
to manage the size)less -M
shows a nice status line with line numbersg
… go to the line number
(1
if not specified)G
… go to the end of the fileman less
for many more options. Do not use “v”, because
you will not know how to get out of there.less
head
(and man head
) to get only the
metadata of the file (the lines with some text before the line “MATKA”).
Save this text into a separate file.tail
to save only the final list of Capek’s works
(including the header “První vydání knih Karla Čapka”) and save this
into another fileSpace or Right Arrow to move to next slide, click help below for more details