В
Все
Х
Химия
В
Видео-ответы
А
Алгебра
Г
Геометрия
О
ОБЖ
Д
Другие предметы
У
Українська література
Р
Русский язык
Б
Беларуская мова
У
Українська мова
Э
Экономика
Ф
Физика
М
Математика
Ф
Французский язык
Г
География
И
Информатика
М
МХК
О
Окружающий мир
П
Психология
Н
Немецкий язык
О
Обществознание
П
Право
И
История
М
Музыка
Л
Литература
Қ
Қазақ тiлi
Б
Биология
А
Английский язык
pechenkinaolga5
pechenkinaolga5
30.06.2022 15:02 •  Информатика

Два на линукс.

1. create empty file and check the access time using ls command with proper option. update the access time to the current time. update access time to the beginning of the day.

2. create empty file testfile and directory testdir. try to remove both file and directory with one command. make sure that there will be error when directory will be removed and that removal of the file will result in text output. redirect successful deletion message to one file and error message to another file. repeat this actions but redirect both stdout and stderr channels to the same file.

Ответ:
sayferbil
sayferbil
03.10.2020 06:48

A)

1) touch emptyfile

2) ls -g

3) cat emptyfile

4) touch -a -m -t 203710141103.24 emptyfile

B)

1) touch testFile

2) mkdir testDir

3) rm ./* 1> ./stdout.txt 2>./stderr.txt

4) rm ./* &> ./stdouterr.txt

0,0(0 оценок)
Популярные вопросы: Информатика
Полный доступ
Позволит учиться лучше и быстрее. Неограниченный доступ к базе и ответам от экспертов и ai-bota Оформи подписку
logo
Начни делиться знаниями
Вход Регистрация
Что ты хочешь узнать?