Shell
user@astra:~$
user@astra:~$
user@astra:~$ su foo
Пароль:
foo@astra:/home/user$
foo@astra:/home/user$ cd ~
foo@astra:~$
foo@astra:~$
Shell
foo@astra:~$
foo@astra:~$ ps
PID TTY TIME CMD
8795 pts/0 00:00:00 bash
8812 pts/0 00:00:00 ps
foo@astra:~$
foo@astra:~$
а она pts/0. Хорошо, а сейчас я могу что-нибудь в неё писать/читать? (я сейчас user) Нет, не могу:
Shell
foo@astra:~$
foo@astra:~$ ls -l /dev/pts/0
crw------- 1 user tty 136, 0 нояб. 24 17:35 /dev/pts/0
foo@astra:~$
Shell
foo@astra:~$
foo@astra:~$ cat > foo.txt
cafebabe
foo@astra:~$
foo@astra:~$
foo@astra:~$ cat foo.txt
cafebabe
foo@astra:~$