Skip to content

view-logs-interactive

tail -f /path/to/file

view-long-file

less /path/to/file
(press h for help)

find-command

control + r in terminal

redirection

> is used to redirect output.

$ echo "hello" > file.txt

< is used to redirect input.

$ cat < file.txt

Output:

hello

>> is used to append output to the end of the file.

$ echo "world!" >> file.txt

Output:

hello
world!

<< (called "here document") is a file literal or input stream literal.

$ cat << EOF >> file.txt

Output:

>

Here you can type whatever you want and it can be multi-line. It ends when you type EOF. (We used EOF in our example but you can use something else instead.)

> linux
> is
> EOF

Output:

hello
world!
linux
is

<<< (called "here string") is the same as << but takes only one "word" (i.e., string).

$ cat <<< great! >> file.txt

Output:

hello
world!
linux
is
great!

Процес у Linux — це запущений екземпляр програми, який має власний простір пам’яті, системні ресурси та стан виконання. Можна також згадати, що процеси можуть спілкуватися один з одним через механізми міжпроцесного зв'язку. Крім того, було б корисно згадати, що процеси можуть створюватися, керуватися та завершуватися операційною системою.